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

Observation reference is lost when project is removed #16471

Open
miketheman opened this issue Aug 13, 2024 · 1 comment
Open

Observation reference is lost when project is removed #16471

miketheman opened this issue Aug 13, 2024 · 1 comment
Labels
admin Features needed for the Admin UI (people running the site) malware-detection Issues related to automated malware detection.

Comments

@miketheman
Copy link
Member

If an observation is created, and the underlying project is removed, the observation (intentionally) becomes orphaned. This was generally chosen for long-term persistence.

However, in the resulting email communication, the links lead to an effectively "empty" page for any reports for the given project, as the reference ID is no longer available.
If the project is then recreated/uploaded to PyPI, there's still a project, but it'll have a new ID.

I'm not sure how this should be fixed yet - it's now happened one time, so I wanted to capture it while it was fresh in mind.

@miketheman miketheman added admin Features needed for the Admin UI (people running the site) malware-detection Issues related to automated malware detection. labels Aug 13, 2024
@miketheman
Copy link
Member Author

Related: When trying to add an action/verdict to this kind of observation raises an AttributeError:
https://python-software-foundation.sentry.io/share/issue/d4149ee5cc434af588da743308ed08ae/

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) malware-detection Issues related to automated malware detection.
Projects
None yet
Development

No branches or pull requests

1 participant