Skip to content

latestdoi badge link failing when latest record deleted #200

@ptamarit

Description

@ptamarit

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

  1. Integrate with a GitHub repository and release 2 versions
  2. Delete the latest record
  3. Go to /badge/latestdoi/{github_repo_id}
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Backlog 😴

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions