0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-06 22:40:28 -05:00
zot/pkg
LaurentiuNiculae 9cc990d7ca
feat(repodb): add user related information to repodb (#1317)
Initial code was contributed by Bogdan BIVOLARU <104334+bogdanbiv@users.noreply.github.com>
Moved implementation from a separate db to repodb by Andrei Aaron <aaaron@luxoft.com>

Not done yet:
- run/test dynamodb implementation, only boltdb was tested
- add additional coverage for existing functionality
- add web-based APIs to toggle the stars/bookmarks on/off

Initially graphql mutation was discussed for the missing API but
we decided REST endpoints would be better suited for configuration



feat(userdb): complete functionality for userdb integration

- dynamodb rollback changes to user starred repos in case increasing the total star count fails
- dynamodb increment/decrement repostars in repometa when user stars/unstars a repo
- dynamodb check anonymous user permissions are working as intendend
- common test handle anonymous users
- RepoMeta2RepoSummary set IsStarred and IsBookmarked



feat(userdb): rest api calls for toggling stars/bookmarks on/off



test(userdb): blackbox tests



test(userdb): move preferences tests in a different file with specific build tags



feat(repodb): add is-starred and is-bookmarked fields to repo-meta

- removed duplicated logic for determining if a repo is starred/bookmarked

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
Co-authored-by: Andrei Aaron <aaaron@luxoft.com>
2023-04-24 11:13:15 -07:00
..
api feat(repodb): add user related information to repodb (#1317) 2023-04-24 11:13:15 -07:00
cli refactor: remove pkg/extensions/search/common and move the code to the appropriate packages (#1358) 2023-04-18 11:07:47 -07:00
common feat(repodb): add user related information to repodb (#1317) 2023-04-24 11:13:15 -07:00
compliance feat(repodb): Multiarch Image support (#1147) 2023-02-27 11:23:18 -08:00
debug feat(ui): package zui within zot binary (#1161) 2023-02-10 14:52:54 -08:00
exporter refactor(cve): improve CVE test time by mocking trivy (#1184) 2023-02-09 21:04:52 -08:00
extensions feat(repodb): add user related information to repodb (#1317) 2023-04-24 11:13:15 -07:00
log test(refactor): cleanup/simplify testcases (#1124) 2023-01-20 10:01:52 -08:00
meta feat(repodb): add user related information to repodb (#1317) 2023-04-24 11:13:15 -07:00
regexp chore(trivy): update trivy version and enforce OCI compliant repo names in local image storage (#1068) 2023-01-18 08:24:44 -08:00
requestcontext feat(repodb): add user related information to repodb (#1317) 2023-04-24 11:13:15 -07:00
scheduler feat(storage): rebuild storage(s3/local) dedupe index when switching dedupe status (#1062) 2023-04-07 09:49:24 -07:00
storage refactor: remove pkg/extensions/search/common and move the code to the appropriate packages (#1358) 2023-04-18 11:07:47 -07:00
test feat(repodb): add user related information to repodb (#1317) 2023-04-24 11:13:15 -07:00