New category required
Closed, ResolvedPublic

Description

For providing app addon data for the alkimia library an additional category is required:

1st app add-ons
2nd KDE App Addons
The next two levels do not exist and need to be added

  1. alkimia (category name: Alkimia)
  2. online quotes ( category name: Alkimia Online Quotes)

see https://bugs.kde.org/show_bug.cgi?id=397957 for the initial request

habacker created this task.Feb 23 2019, 9:30 AM
habacker updated the task description. (Show Details)
habacker updated the task description. (Show Details)Feb 23 2019, 9:32 AM

Hi Ralf,

are there more potential resources for Alkamia in the near future or just
Online Quotes for now? Otherwise we could start with just Online quotes
without additional parent category and always change to a parent category
later without any drawbacks.

Added Alkimia Online Quotes category:
https://store.kde.org/browse/cat/560

Due to caching, it can take some time before it becomes visible under KDE App-Addons, but is fully functional for adding content already.

It also can take up to 24hours before the category is available over ocs api-server:
https://api.kde-look.org/ocs/v1/content/data?categories=560

If anything is needed or does not come up after 24 hours, just comment here.

Hi starbuck,

are there more potential resources for Alkamia in the near future or just
Online Quotes for now?

There are some ideas, but no implementation yet.

Otherwise we could start with just Online quotes
without additional parent category and always change to a parent category
later without any drawbacks.

I'm fine with this.

Added Alkimia Online Quotes category:
https://store.kde.org/browse/cat/560

Thanks

If anything is needed or does not come up after 24 hours, just comment here.

Is it possible to have a product below two different categories or do I need to duplicate the product below each category ?
I'm asking because moving the product to the new category now will break released versions of alkimia because the old category is in the distributed knsrc file, which can only be updated with the next release.

What is the exact name of the category that Alkimia is looking for?

Background: We already have a legacy mechanism that made it possible to
rename e.g. the 800x600 Wallpapers category to "Wallpapers KDE" or "Nature"
without breaking Qt4 based ocs installations.
So if we make the current Alkimia client work when you add an item, you can
change to the new category name in the future by looking for the new name
field (or the category ID, which should not change).
Lets first add an item, set name to current category so it works right now
and then see how to change new versions to follow a new scheme.

The currently used category is "Skrooge quote source" (see https://cgit.kde.org/alkimia.git/tree/src/alkimia-quotes.knsrc)

Renaming is probably no option because the original category is active and used by skrooge.

So Skrooge is renamed to Alkimia?
Because there is also a second category for Skrooge?

If anything is needed or does not come up after 24 hours, just comment here.

I added https://www.opendesktop.org/p/1291552/ 1 day ago, but it does not come up in the new category https://store.kde.org/browse/cat/560

So Skrooge is renamed to Alkimia?

no

Because there is also a second category for Skrooge?

no

May be it helps to show the history: While adding new stuff support to alkimia the category https://store.kde.org/browse/cat/339/ was used for testing because it already contained some quote sources.

Financial Times Fund
Morningstar Sweden

For further testing the following quote source has been added

Alphavantage.co
Yahoo.com 1.0

Now as alkimia is going to production, the requested store category "Alkimia Online Quotes" should get

Alphavantage.co
Yahoo.com 1.0

At present, this can only be done by duplicating the above citation source from https://store.kde.org/browse/cat/339/ in https://store.kde.org/browse/cat/560 .

In my opinion, a more intelligent approach would be to keep both products on https://store.kde.org/browse/cat/339/ (to be accessible for shared libraries), but also to make them visible in the https://store.kde.org/browse/cat/560 category. After the release of the new version, and after all users of the library have switched to the new version (and thus use the new category), the products could be removed from https://store.kde.org/browse/cat/339.

We can try the following: We move the items over to the new category and
set new category name to legacy name in the database and ocs-api server.
Then you do not need to have double entries and we can remove old Scrooge
group, since content in new group Alkimia has set legacy name to Scrooge it
can serve both old client and new one from the new category.

We need to talk to the Skrooge category supervisor if he is willing to transfer his category to alkimia.

Is it possible to have a product below two different categories or do I need to duplicate the product below each category ?

I just inspected a few installed knsrc sources on an opensuse system and found

/usr/share/kde4/config/khotnewstuff.knsrc
Categories=KDE Wallpaper 1920x1200,KDE Wallpaper 1600x1200

/usr/share/kde4/config/wallpaper.knsrc
Categories=KDE Wallpaper 800x600,KDE Wallpaper 1024x768,KDE Wallpaper 1280x1024,KDE Wallpaper 1440x900,KDE Wallpaper 1600x1200,KDE Wallpaper 1680x1050,KDE Wallpaper 1920x1200,KDE Wallpaper 2560x1600,KDE Wallpaper (other),KDE Wallpaper (SVG)

which let me think that another approach could be to use both categories 'Alkimina Online Quotes' and 'Skrooge Quote Sources' in one knsrc file. Later I found this https://techbase.kde.org/Development/Tutorials/Collaboration/HotNewStuff/Introduction#The_Configuration_File_.28.knsrc.29 which seems to confirm this.

Added Alkimia Online Quotes category:
https://store.kde.org/browse/cat/560

The category is not accessable by knewstuff, see T10538 for a bug report.

habacker closed this task as Resolved.Feb 28 2019, 9:44 PM
habacker claimed this task.

The category is not accessable by knewstuff, see T10538 for a bug report.

Is fixed now.