Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 58C96200C41 for ; Fri, 24 Mar 2017 13:36:28 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 57455160B93; Fri, 24 Mar 2017 12:36:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 753AD160B82 for ; Fri, 24 Mar 2017 13:36:27 +0100 (CET) Received: (qmail 91765 invoked by uid 500); 24 Mar 2017 12:36:26 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 91753 invoked by uid 99); 24 Mar 2017 12:36:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2017 12:36:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 80F09182398 for ; Fri, 24 Mar 2017 12:36:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id P-463PSdQBHr for ; Fri, 24 Mar 2017 12:36:22 +0000 (UTC) Received: from mail-it0-f51.google.com (mail-it0-f51.google.com [209.85.214.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C41CA5FB72 for ; Fri, 24 Mar 2017 12:36:21 +0000 (UTC) Received: by mail-it0-f51.google.com with SMTP id 190so706762itm.0 for ; Fri, 24 Mar 2017 05:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=W9Zy4M37rHkA7bohmY3BcnrAXsYD13M1qmgNYmsgQZU=; b=ZrL176gFWi/3OFPcQg/5EODaWttDFGdqR9REE5bnnixiNgIwgpia0Bjyz+zjEw430u L91kUptrx7NjiV6jj30weq8fLlWZ9ex+Lzv3iqs4tLp2bSSOjyPEZiEX0uaxzlrziVtN MrqwRKvKLibLZJvB87BIBsf7WmPF7Rx8AXmfuQKex+2Ot50MoP7ztaKm/BXVkBZn1b7b x9nPxWu09/hxMz+Vg7uCmCxQbpREdlC9xyWLU8DJ+89jHMgSQjNNbScQ+A3S4veUdCcC UdLwdZyUbZMhsQwxFkSW7jFBQ9NiBipZZY+xbNpfrn1Mmz5BPP5E3TlfOwAvPK6v+G87 NthA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=W9Zy4M37rHkA7bohmY3BcnrAXsYD13M1qmgNYmsgQZU=; b=QPyssAecxsXnid/IVRh+12A0xtmqhz0awRWODm5v3WhXDpWj9lNZtKfVBiylNzPwU2 eRa0MScEG+3lwQTeIXPSgq/kCO0aQgtNq4nysNlzmP4rVWzNj/bT0Vx1Q7nA0K1eDJRt KwMAuFGy2gWhZgp7LuT3s/6xMCWrELmyZ/xB3XXNsUmUagCVtZLu+oxcq2QTFeaWr8kG XU911VE3MQqZTxuY5KFc48DmTrQn/LCmsSp4+BNXVHluMHfjSHdSAFxYoQKFwd440hsD IHGINmfZmNJVRxJz5ryV0EEaoYv5M0rBChgY8wCCPN4uF5NiFl4NQLDnUi3IzZtmsQsD +8ZA== X-Gm-Message-State: AFeK/H3SmLK8QXvMXGfQk3sGYSpXE77RdoPL+uwe3t5LeE+IChqQA+oMUcIKTKOWJ1Pl4Q== X-Received: by 10.36.204.137 with SMTP id x131mr2753008itf.35.1490358980465; Fri, 24 Mar 2017 05:36:20 -0700 (PDT) Received: from [192.168.0.16] ([24.100.134.74]) by smtp.gmail.com with ESMTPSA id w73sm1156005ioi.16.2017.03.24.05.36.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 05:36:19 -0700 (PDT) From: Kerri Shotts Content-Type: multipart/alternative; boundary="Apple-Mail=_0AF981DF-A04B-40E8-B0D0-2238B248C3A4" Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [DISCUSS] Plugin search is broken Date: Fri, 24 Mar 2017 07:36:18 -0500 References: To: dev@cordova.apache.org In-Reply-To: Message-Id: <191F4C9D-18F6-482E-9939-24C540A664C6@gmail.com> X-Mailer: Apple Mail (2.3259) archived-at: Fri, 24 Mar 2017 12:36:28 -0000 --Apple-Mail=_0AF981DF-A04B-40E8-B0D0-2238B248C3A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 +1 to moving off npmsearch. While I=E2=80=99m thinking of it =E2=80=94 where does the code for the = plugin search live? I found variations on it, but not sure I ever came = across the canonical version. ~ Kerri > On Mar 23, 2017, at 16:04, Shazron wrote: >=20 > I'm going to assume by lazy consensus that moving off npmsearch is a = 'go'. >=20 > Filed: https://issues.apache.org/jira/browse/CB-12602 >=20 > Currently our plugin search works after I filed those two issues in = their > repo and they were was fixed, thus fixing our search. >=20 > On Sun, Mar 19, 2017 at 4:36 PM, Shazron wrote: >=20 >> Consequently, found another bug and filed: https://issues.apache. >> org/jira/browse/CB-12585 >>=20 >> On Sun, Mar 19, 2017 at 4:04 PM, Shazron wrote: >>=20 >>> I filed https://github.com/nodesource/npmsearch/issues/54 earlier = and >>> the dev fixed it right away, yay! So currently our search is working = again, >>> but the original proposal stands regarding migration. >>>=20 >>> On Sun, Mar 19, 2017 at 1:50 PM, Shazron wrote: >>>=20 >>>> Ignore the last message ;) >>>>=20 >>>> This results in zero results. >>>> http://npmsearch.com/query/?fields=3Dname,keywords,license,des >>>> cription,author,modified,homepage,version,rating&q=3Dkeywords: >>>> %22ecosystem:cordova%22&sort=3Drating:desc >>>>=20 >>>> The same URL without the sort query param has results: >>>>=20 >>>> http://npmsearch.com/query/?fields=3Dname,keywords,license,des >>>> cription,author,modified,homepage,version,rating&q=3Dkeywords: >>>> %22ecosystem:cordova%22 >>>>=20 >>>>=20 >>>> On Sun, Mar 19, 2017 at 1:44 PM, Shazron = wrote: >>>>=20 >>>>> I believe the original problem lies in npmsearch.com erroring on a >>>>> query param "sort": >>>>> http://npmsearch.com/query/?sort=3Drating:desc&fields=3Dname,key >>>>> words,license,description,author,modified,homepage,version,r >>>>> ating&sort=3D&q=3Dkeywords:%22ecosystem:cordova%22 >>>>>=20 >>>>> The URL above is a query that we send to it. (a simple "sort=3D" = results >>>>> in the same error) >>>>>=20 >>>>> If "sort" is removed, it is fine: >>>>> http://npmsearch.com/query/?fields=3Dname,keywords,license,des >>>>> cription,author,modified,homepage,version,rating&sort=3D&q=3Dkey >>>>> words:%22ecosystem:cordova%22 >>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>> On Sun, Mar 19, 2017 at 1:25 PM, Shazron = wrote: >>>>>=20 >>>>>> The impetus for this is, users are reporting [1][2][3][4] that = they >>>>>> can't find plugins, and I don't think they know of a search = alternative. >>>>>>=20 >>>>>> In the near term, I think we should tweet how to search for = plugins >>>>>> using npmjs.com >>>>>>=20 >>>>>> [1] https://twitter.com/edeortuzar/status/843310576101146625 >>>>>> [2] https://twitter.com/kumakumadev/status/843149557127155712 >>>>>> [3] https://twitter.com/quangv/status/842925319254360064 >>>>>> [4] https://twitter.com/skumarSDsoft/status/842677001433497600 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> On Sun, Mar 19, 2017 at 1:19 PM, Shazron = wrote: >>>>>>=20 >>>>>>> ### PROBLEM >>>>>>>=20 >>>>>>> Plugin search is broken. >>>>>>>=20 >>>>>>> ### DESCRIPTION >>>>>>>=20 >>>>>>> Page: >>>>>>> http://cordova.apache.org/plugins/ >>>>>>>=20 >>>>>>> JIRA: >>>>>>> https://issues.apache.org/jira/browse/CB-12579 >>>>>>>=20 >>>>>>>=20 >>>>>>> Q: How does the plugin search work? >>>>>>>=20 >>>>>>> A: >>>>>>> Page Source: http://cordova.apache.org/plugins >>>>>>> and the source (this specific line): http://svn.apache.org/v >>>>>>> iewvc/cordova/site/public/plugins/index.html?view=3Dmarkup#l117 >>>>>>>=20 >>>>>>> which is added from here: >>>>>>> https://github.com/apache/cordova-docs/blob/master/www/plugi >>>>>>> ns/index.html >>>>>>>=20 >>>>>>> which is generated from this React code: >>>>>>> https://github.com/apache/cordova-docs/blob/a3589ce66336821f >>>>>>> 2fd714a1115125cfcfa9fd1b/www/static/plugins/app.js >>>>>>>=20 >>>>>>> Nothing shows up as errors in the Web Inspector, so it is hard = to >>>>>>> track down. >>>>>>>=20 >>>>>>> ### MY PROPOSAL >>>>>>>=20 >>>>>>> The era of needing npmsearch.com to populate this page is over. = We >>>>>>> could just redirect users to npmjs.com and add the >>>>>>> "ecosystem:cordova" token (i.e https://www.npmjs.com/sea >>>>>>> rch?q=3Decosystem%3Acordova) >>>>>>>=20 >>>>>>> The alternative is to use npm's Registry API: >>>>>>> = https://github.com/npm/registry/commits/master/docs/REGISTRY-API.md >>>>>>>=20 >>>>>>> The API was only documented earlier this year, if not we would = have >>>>>>> used it. >>>>>>>=20 >>>>>>>=20 >>>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20 --Apple-Mail=_0AF981DF-A04B-40E8-B0D0-2238B248C3A4--