akipta / freedomotic

Automatically exported from code.google.com/p/freedomotic
Other
0 stars 0 forks source link

Marketplace provider only list 10 plugins per category #215

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Run freedomotic with the jfrontend available
2. Select Plugins -> install from marketplace. Wait until all categories are 
loaded
3. Select Autmation Protocols.

What is the expected output? What do you see instead?
A list with all automation protocols, but only 10 are showed.

Please fill this info:

Freedomotic Version: 5.4.0
Java Version: 1.6
OS Name:Linux
OS Version: Ubuntu12.10

Please provide any additional information below.

NOTE: Remember you can attach the LOG FILE to this issue to help the defect
source identification.

Original issue reported on code.google.com by gabriel....@gmail.com on 9 Jan 2013 at 8:00

GoogleCodeExporter commented 9 years ago
According to this http://drupal.org/node/296632
The problem is with the service rest api for drupal 6 (it seems that is solved 
on the 7), as the selectNodes function used to retrieve all nodes for a 
taxonomy (category) limits the number of items returned to 10.
If the param "pager=false" is used on the post data using the idea from here: 
http://drupalcontrib.org/api/drupal/contributions%21services%21tests%21functiona
l%21ServicesResourceTaxonomyTests.test/function/ServicesResourceTaxonomyTests%3A
%3AtestTermSelectNodes/6
then the number of items returned is the value of the rss feed max items, that 
is adjusted here: http://www.freedomotic.com/admin/content/rss-publishing
There is no way to ask for "all the nodes" without some kind of paging using 
the rest.
So the patches are:

1) Update the drupal site to the version 7 that seems that have this issues 
resolved. Another choice is to apply some kind of patch to the current 6 
version that adds another parameter.
2) Setting the rss to the maximum value (30) and setting the pager to false on 
the call to api. The drawback is that if any category has more than 30 nodes, 
we will have the same problem.
3) It seems that we could add a parameter to the url to ask for an specific 
page using ?page=number. So the marketplace should recursively ask for all 
pages and attach them on the same array. The problem is that we need to find a 
way to know the number of pages BEFORE the selectNodes call.

I will try to develop the 3 but the 1 should be taked into account as the 
drupal 6 is getting old.

Original comment by gabriel....@gmail.com on 10 Jan 2013 at 12:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 796531feffaa.

Original comment by gabriel....@gmail.com on 10 Jan 2013 at 1:21

GoogleCodeExporter commented 9 years ago
The jfrontend is still only showing 10 plugins. It seems to be related with the 
MarketPlaceForm and the PropertiesPanel plugin.

Original comment by gabriel....@gmail.com on 10 Jan 2013 at 2:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision b80a208dccb9.

Original comment by enrico.n...@gmail.com on 14 Jan 2013 at 10:11

GoogleCodeExporter commented 9 years ago

Original comment by gabriel....@gmail.com on 14 Jan 2013 at 11:36

GoogleCodeExporter commented 9 years ago

Original comment by virtualc...@gmail.com on 26 Feb 2013 at 10:30