zot icon indicating copy to clipboard operation
zot copied to clipboard

ui: add a new API to store and retrieve user-specific metadata such as favorites

Open rchincha opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

zot UI intends to store and retrieve user-specific metadata such as favorites, stars, etc for repos and images.

Describe the solution you'd like

Design and implement an API. This can be under UI extension in the config.

rchincha avatar Jun 22 '22 18:06 rchincha

landing page

For favorites, call the new /username/favorites api
For recently updated packages, call the updated /imageListWithLatestTag api, and identify recently updated packages with new flag isRecentlyUpdated

explore page Add these properties in existing ImageListWithLatestTag

isRecentlyUpdated
isSigned
downloads
Rating (rank)
Stars (count)

Add these properties in existing expanded repo info api ExpandedRepoInfo At manifest level:

lastUpdated

At layer level:

OS/Arch

For Dependencies

New API to get list of dependencies for all versions

For Dependants

New API to get list of dependants for all versions

rchincha avatar Jun 22 '22 18:06 rchincha

TODO: write a document to design "State management in zot"

andaaron avatar Jul 06 '22 16:07 andaaron

In testing: https://github.com/project-zot/zot/pull/968/commits/0470527795de7a97c7fe765492af62a28cdbdc48

andaaron avatar Nov 09 '22 08:11 andaaron