So to clarify a bit:
1. In simple search I'm using npm public api for searching, namely:
"
http://registry.npmjs.org/-/v1/search?text={search_query}&size={size}&a…={from}".
In the case of searching 'mathjs' the request path is following:
http://registry.npmjs.org/-/v1/search?text=mathjs&size=20&from=0
(click on this link and you may check the response)
2. 'mathjs' and 'MathJS' are different packages. See:
https://registry.npmjs.org/mathjs
https://registry.npmjs.org/MathJS
Why is the description of MathJS empty?
The text displayed below the name of extension in simple search result list
is simply the field "description" from the package json returned by search
api endpoint (above). Obviously among all packages deployed on NPM Registry
there are those mature and well maintained like 'mathjs' that have proper
description and a lot of immature and poorly-maintained experimental
libraries with often strange names and description set to nothing like
MathJS.
So far the extensions imported in XWiki were taken only from
extensions.xwiki.org where XWiki community makes sure that the description
of every extension is set properly. In other public repositories there's no
such supervision. That's why it may look strange for XWiki user to see
empty description field.
3. As regards npmtest-mathjs and npmdoc-mathjs - you're right they seem to
be tests and documentation for 'mathjs' package so they rather shouldn't
appear in simple search results. I haven't noticed them before. I'll try to
work out how to filter them out.
Ecaterina, Thomas - thanks for feedback!
Krzysztof
2017-08-24 13:35 GMT+02:00 Ecaterina Moraru (Valica) <valicac(a)gmail.com>om>:
Hi Krzysztof,
Great work.
The description looks a bit strange for the npmtest-mathjs and
npmdoc-mathjs. Do we really need those 'module'? Can we make a convention
and not display in EM the test and doc modules?
Also what is the difference between mathjs-3.16.2 and MathJS-1.0.0. Also
the description is empty for MathJS.
Thanks,
Caty
On Thu, Aug 24, 2017 at 2:18 PM, Krzysiek Płachno <
krzysiekplachno(a)gmail.com
wrote:
Hello XWiki team!
I just write to brag a bit about *Extension Repository Connector - NPM*
that I created in 3rd phase of GSoC ;)
You can read about it here:
http://extensions.xwiki.org/xwiki/bin/view/Extension/
Extension%20Repository%20Connector%20-%20NPM/
and
test it if you wish (there's an example to follow).
As before - any feedback highly appreciated :)
Have a nice day!
Best,
Krzysztof