Deleted repository is accessible but not indexed in Woodpecker Web UI
Component
web-ui
Describe the bug
A project becomes annoying to access on Woodpecker CI web UI when the project has been deleted in the upstream VCS.
It disappears from the "Repositories" tab, but is still accessible directly via the URL if one knows the project ID.
Steps to reproduce
- Create a project on a forge (like codeberg.org)
- Add a repository to Woodpecker CI
- Get the project ID
- Delete the project from the forge
- Visit "Repositories" (observe that the project no longer appears here anymore)
- Visit
example.com/repos/:id(observe that this is still accessible)
Expected behavior
One of two things, with a strong preference towards the first:
1. Annotate Orphaned Projects
The repository should continue to be shown in the "Repositories" tab, with an icon / label indicating it's lost its connection to or has been orphaned from the upstream project.
I prefer this because I'm in the middle of migrating one of my private projects from codeberg.org to a self-hosted Forgejo instance, and think the server should preserve the settings, secrets, etc of the project so that it can be migrated before manual deletion.
I think an icon makes the most sense—it can be positioned where the "Project visibility: Private" currently goes, replacing it if the project was private before.
A quick mock up in DevTools (Inspector):
(The project wasn't actually deleted/orphaned. Just messed with the HTML.)
The icon in the mock up is FontAwesome's link-slash.
2. Delete it Thoroughly
Alternatively, if the intent is to delete projects from Woodpecker when they're deleted upstream, then I'd expect a direct URL to the project on Woodpecker to 404 as well. Right now it's inconsistent because it does not show up under "Repositories" but if one knows the ID, they can navigate to it directly.
System Info
{
"source": "https://github.com/woodpecker-ci/woodpecker",
"version": "next-fc3405d010"
}I've tested v3.18.0, v3.18.1, and next-fc3405d010, all of them exhibit the same behavior.
Additional context
No response
Validations
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Checked that the bug isn't fixed in the
nextversion already [https://woodpecker-ci.org/versions]
Source: woodpecker-ci/woodpecker