GetHotNewStuff can’t find items in the “Various KDE Stuff” category – probably because not all categories are listed by the store API
Closed, ResolvedPublic

Description

I’m trying to implement GHNS for a plasma widget called panon. Being new, it doesn’t have a category on the store and its shaders get uploaded to category 564, “Various KDE Stuff”.

The reason I suspect this is a store bug is that

  1. The category list on https://api.kde-look.org/ocs/v1/content/categories doesn’t contain that category
  2. If I change my code to use no tag and a category from the list, it works (but obviously shows results that I can’t use)
phils created this task.Jan 15 2020, 1:47 PM
phils renamed this task from GetHotNewStuff to GetHotNewStuff can’t find items in the “Various KDE Stuff” category – probably because not all categories are listed by the store API.Jan 15 2020, 1:54 PM
phils updated the task description. (Show Details)
leinir assigned this task to ronaldv.Jan 16 2020, 12:59 PM
leinir added a subscriber: leinir.

If you try and use a category that isn't exported through the API, then yeah, it's not likely to work - so... let's tag in someone who can fix that :)

Hi phils,
what is panon?
Any suggestion what Category name and items those would be if panon had its own category for it?

phils added a comment.EditedJan 17 2020, 8:55 AM

If you try and use a category that isn't exported through the API, then yeah, it's not likely to work - so... let's tag in someone who can fix that :)

It’s not that unlikely to work, as searching the API directly works: https://api.kde-look.org/ocs/v1/content/data?categories=564&tags=panon
It doesn’t though, so I assume Attica first checks if the category exists instead of just performing the search or so.

what is panon?

Hi starbuck, panon is an audio spectrum visualizer for plasma panels.
I’d like to implement GHNS support for downloading new visualizations, since once this bug here is fixed, it’s very very easy. Thank you all for the great design!

Any suggestion what Category name and items those would be if panon had its own category for it?

Panon itself calls them “shaders”, so maybe “Panon shaders”?

If you try and use a category that isn't exported through the API, then yeah, it's not likely to work - so... let's tag in someone who can fix that :)

It’s not that unlikely to work, as searching the API directly works: https://api.kde-look.org/ocs/v1/content/data?categories=564&tags=panon
It doesn’t though, so I assume Attica first checks if the category exists instead of just performing the search or so.

That was indeed what i was referring to when i suggested it was unlikely that it'd work. KNewStuff will limit searches to the categories you give it (since otherwise it would be searching through the entire store, which... is a bit much, there's a lot of stuff on there :D )

what is panon?

Hi starbuck, panon is an audio spectrum visualizer for plasma panels.

That sounds like a welcome addition, and going by the screenshots that's some shininess going on right there! :)

KNewStuff will limit searches to the categories you give it

You misunderstood: I said that it seens like it limits search to categories that it thinks exist. If it would simply try to use the ones I give it, it would work (as does the URL search I posted above).

That sounds like a welcome addition, and going by the screenshots that's some shininess going on right there! :)

Certainly, it’s super cool! And yeah, adding a category (and making sure it appears in https://api.kde-look.org/ocs/v1/content/categories) will of course work too.

Hi,

we added the new categoy 624: "Panon Shaders" under the category "KDE Extensions". It appears also in https://api.kde-look.org/ocs/v1/content/categories.

Regards
Ronald

phils added a comment.Jan 28 2020, 3:28 PM

Awesome, thank you so much!

All fixed now?

phils added a comment.Jan 28 2020, 4:53 PM

Yes, GHNS now works for panon (in my PR). Thanks again!

phils closed this task as Resolved.Jan 28 2020, 4:54 PM