Package version (if known): 3.0.1
Describe the bug
The latestdoi badge link is failing when then record linked to latest published release has been deleted
Steps to Reproduce
- Integrate with a GitHub repository and release 2 versions
- Delete the latest record
- Go to
/badge/latestdoi/{github_repo_id}
- The page fails with an internal error
Expected behavior
The page redirects to the latest non-deleted record (or at least to the tombstone of the latest deleted record?)
Screenshots (if applicable)
Additional context
Execution flow:
To be fixed in invenio-github and in upcoming invenio-vcs.
Package version (if known): 3.0.1
Describe the bug
The
latestdoibadge link is failing when then record linked to latest published release has been deletedSteps to Reproduce
/badge/latestdoi/{github_repo_id}Expected behavior
The page redirects to the latest non-deleted record (or at least to the tombstone of the latest deleted record?)
Screenshots (if applicable)
Additional context
Execution flow:
self.recordhere isNone, and accessing.dataraisesAttributeError: 'NoneType' object has no attribute 'data'.To be fixed in
invenio-githuband in upcominginvenio-vcs.