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 7BD90200C37 for ; Sun, 19 Mar 2017 21:51:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7A704160B7D; Sun, 19 Mar 2017 20:51:11 +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 C5096160B6D for ; Sun, 19 Mar 2017 21:51:10 +0100 (CET) Received: (qmail 53778 invoked by uid 500); 19 Mar 2017 20:51:09 -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 53767 invoked by uid 99); 19 Mar 2017 20:51:09 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2017 20:51:09 +0000 Received: from mail-it0-f45.google.com (mail-it0-f45.google.com [209.85.214.45]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 984901A06FA for ; Sun, 19 Mar 2017 20:51:09 +0000 (UTC) Received: by mail-it0-f45.google.com with SMTP id w124so70183269itb.1 for ; Sun, 19 Mar 2017 13:51:09 -0700 (PDT) X-Gm-Message-State: AFeK/H0XEi2ZCDz+Ngrq2TmSvIavwyhLhhtvKRKjJEpKhZkeKK/5WHaaRFNHPwnFAYwHf8AuWZk5yvVTJfiuBQ== X-Received: by 10.107.18.220 with SMTP id 89mr12037756ios.24.1489956669078; Sun, 19 Mar 2017 13:51:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.227.3 with HTTP; Sun, 19 Mar 2017 13:50:28 -0700 (PDT) In-Reply-To: References: From: Shazron Date: Sun, 19 Mar 2017 13:50:28 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [DISCUSS] Plugin search is broken To: Shazron Cc: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a113ecc0cfdc989054b1b91b0 archived-at: Sun, 19 Mar 2017 20:51:11 -0000 --001a113ecc0cfdc989054b1b91b0 Content-Type: text/plain; charset=UTF-8 Ignore the last message ;) This results in zero results. http://npmsearch.com/query/?fields=name,keywords,license,description,author,modified,homepage,version,rating&q=keywords:%22ecosystem:cordova%22&sort=rating:desc The same URL without the sort query param has results: http://npmsearch.com/query/?fields=name,keywords,license,description,author,modified,homepage,version,rating&q=keywords:%22ecosystem:cordova%22 On Sun, Mar 19, 2017 at 1:44 PM, Shazron wrote: > I believe the original problem lies in npmsearch.com erroring on a query > param "sort": > http://npmsearch.com/query/?sort=rating:desc&fields=name, > keywords,license,description,author,modified,homepage, > version,rating&sort=&q=keywords:%22ecosystem:cordova%22 > > The URL above is a query that we send to it. (a simple "sort=" results in > the same error) > > If "sort" is removed, it is fine: > http://npmsearch.com/query/?fields=name,keywords,license, > description,author,modified,homepage,version,rating&sort=& > q=keywords:%22ecosystem:cordova%22 > > > > > > > On Sun, Mar 19, 2017 at 1:25 PM, Shazron wrote: > >> 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. >> >> In the near term, I think we should tweet how to search for plugins using >> npmjs.com >> >> [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 >> >> >> >> >> On Sun, Mar 19, 2017 at 1:19 PM, Shazron wrote: >> >>> ### PROBLEM >>> >>> Plugin search is broken. >>> >>> ### DESCRIPTION >>> >>> Page: >>> http://cordova.apache.org/plugins/ >>> >>> JIRA: >>> https://issues.apache.org/jira/browse/CB-12579 >>> >>> >>> Q: How does the plugin search work? >>> >>> 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=markup#l117 >>> >>> which is added from here: >>> https://github.com/apache/cordova-docs/blob/master/www/plugi >>> ns/index.html >>> >>> which is generated from this React code: >>> https://github.com/apache/cordova-docs/blob/a3589ce66336821f >>> 2fd714a1115125cfcfa9fd1b/www/static/plugins/app.js >>> >>> Nothing shows up as errors in the Web Inspector, so it is hard to track >>> down. >>> >>> ### MY PROPOSAL >>> >>> 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/search?q=ecosystem%3Acordova) >>> >>> The alternative is to use npm's Registry API: https://github.com/npm/re >>> gistry/commits/master/docs/REGISTRY-API.md >>> >>> The API was only documented earlier this year, if not we would have used >>> it. >>> >>> >> > --001a113ecc0cfdc989054b1b91b0--