Skip to content
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

Merged
merged 6 commits into from
Sep 23, 2024
Merged

feat: package archiving #736

merged 6 commits into from
Sep 23, 2024

Conversation

crowlKats
Copy link
Collaborator

Closes #250

Copy link
Member

@lucacasonato lucacasonato left a 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/db/database.rs Show resolved Hide resolved
frontend/components/List.tsx Outdated Show resolved Hide resolved
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()
Copy link
Member

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.

Copy link
Collaborator Author

@crowlKats crowlKats Sep 23, 2024

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)

@crowlKats
Copy link
Collaborator Author

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.

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

Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, LGTM

@crowlKats crowlKats added this pull request to the merge queue Sep 23, 2024
Merged via the queue into main with commit e4a9f0a Sep 23, 2024
6 checks passed
@crowlKats crowlKats deleted the package-archiving branch September 23, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Yanking an entire package
2 participants