-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: package archiving #736
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
We probably need to add a "packages" table in the admin dashboard now too then - because there will be packages that are not visible in the dashboard anymore.
Can you also update the api.yml file?
api/src/api/package.rs
Outdated
let (total, packages) = | ||
db.list_packages_by_scope(&scope, start, limit).await?; | ||
let iam = req.iam(); | ||
let (total, packages) = if iam.check_scope_admin_access(&scope).await.is_ok() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe or if the user is admin (with sudo enabled?). May not be needed if we add a package admin page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_scope_admin_access
already does that (when sudo is enabled)
Sure, we oculd do that, though If an admin has sudo enabled they can see the archived packages anyways, which i think is good enough |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, LGTM
Closes #250