-
Notifications
You must be signed in to change notification settings - Fork 968
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(admin): Project Quarantine #16179
Merged
miketheman
merged 8 commits into
pypi:main
from
miketheman:miketheman/quarantine-project
Jul 8, 2024
Merged
feat(admin): Project Quarantine #16179
miketheman
merged 8 commits into
pypi:main
from
miketheman:miketheman/quarantine-project
Jul 8, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
miketheman
added
HTML
requires change to HTML files
admin
Features needed for the Admin UI (people running the site)
malware-detection
Issues related to automated malware detection.
labels
Jun 27, 2024
miketheman
force-pushed
the
miketheman/quarantine-project
branch
from
June 27, 2024 18:16
38055e2
to
b7ead57
Compare
ewdurbin
reviewed
Jun 27, 2024
warehouse/migrations/versions/c978a4eaa0f6_add_observation_related_name.py
Show resolved
Hide resolved
warehouse/migrations/versions/14ad61e054cf_add_project_lifecycle_status.py
Show resolved
Hide resolved
miketheman
force-pushed
the
miketheman/quarantine-project
branch
3 times, most recently
from
July 1, 2024 19:32
4ab2b82
to
acdd6bf
Compare
Signed-off-by: Mike Fiedler <[email protected]>
The migration ran in production in April. Using ORM objects in migrations is apparently dangerous for tests, since we run the entire migration stack from scratch, and **later** modifications to a model are not available at the point this migration is being executed. Signed-off-by: Mike Fiedler <[email protected]>
Signed-off-by: Mike Fiedler <[email protected]>
Signed-off-by: Mike Fiedler <[email protected]>
A button that re-uses the malware routes. We can create bespoke routes and views for quarantine manipulation if we find that using this feature leads to confusing redirects, but for now I'm opting for simpler implementation. Signed-off-by: Mike Fiedler <[email protected]>
miketheman
force-pushed
the
miketheman/quarantine-project
branch
from
July 2, 2024 15:00
c607f4a
to
5919087
Compare
ewdurbin
approved these changes
Jul 2, 2024
di
reviewed
Jul 5, 2024
woodruffw
reviewed
Jul 8, 2024
woodruffw
reviewed
Jul 8, 2024
woodruffw
reviewed
Jul 8, 2024
miketheman
added a commit
to miketheman/warehouse
that referenced
this pull request
Jul 8, 2024
4 seconds wasn't long enough to get the lock on `projects`. Refs: pypi#16179 Signed-off-by: Mike Fiedler <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
admin
Features needed for the Admin UI (people running the site)
HTML
requires change to HTML files
malware-detection
Issues related to automated malware detection.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This set of changes introduces a concept of Project Lifecycle Status, and specifically adding and removing projects from a quarantine status.
There are no end-user facing changes yet, and those will only be introduced after this PR is merged/deployed (so there's no race condition with ORM changes and columns not existing in time...)
The intent is to have a status that can convey that we are not certain if a project is good or bad yet - but it's concerning enough that we want to make in unavailable to installers or mirrors. Those changes will follow later.
This is mostly to get a feel for how it will work on the Project's model and how things enter and exit quarantine.
Admin Interface for Quarantine 👩💻 - Watch Video