developers.italia.it
developers.italia.it copied to clipboard
Show more than 3 categories in software pages
Hello,
i would like to report a possible bug in the developers.italia.it product page generation or an internal cache processing in relation to the recent addition of the software category Whistleblowing
While the software, that is listed in this catecotry, correctly shows up in the software search by category, it seems that the product page generation is failing to add the tag Whistleblowing on the product page.
That's bizarre: looks like it has always shown at most 3 categories for a long time
On top of that, I'm not really sure where page.popularCategories
comes from :thinking:
Thank you for checking on this @bfabio
From our point of view putting this limit is fair, and safe.
Actually for our project as it exists now a specific software category for whistleblowing we will proceed just listing that one alone.
@evilaliv3 thanks
I think we should show more of them by default, and operate under the assumption then the order of appearance in the publiccode.yml is also a way to express what category fits the most.
Also, we should have a way to show all of them with a button or something, otherwise we are just removing information.
So, what's happening here is:
the crawler is exporting "popularCategories
" for each software (code).
What are "popularCategories
" of a software? Looks like they are 5 categories among the ones listed in publiccode.yml
, ordered by the frequency they appear in other software in the catalog. Then, as I mentioned above, the UI cuts them to 3
Pretty surprising and another example of why the crawler shouldn't create YAML files.
I kinda understand the reason behind it: to show the most relevant tags, but here "relevance" should be defined as "the categories better describing the SHOWN software".
That code needs to go.