-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Tags in UI should be purely git-based #23569
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
Comments
Funny: Isn't there even the opposite issue somewhere here as well, where (I think) @lunny advocates for the opposite, even more database syncing? But yeah, I'm also not a fan of caching tags like that, that simply leads to errors for a minimal performance gain… |
I think reading tags from the database will help to resolve the problems listed here.
|
These are valid use cases I guess, but how can it be that the database store goes out of sync with git like seen in #23243 (comment)? Are force-pushes a problem? |
I think there are maybe some bugs, we just need to fix the bugs. Any push will trigger a new Tag sync checking with the function |
They are synced on push using gitea hook and I have not seen them going out of sync for years imho because if hook is not working than also access control is not working and many other things |
I guess then we may have a undetected bug in the linked case. I'll close the issue. I see the necessity to have tags in the DB for the mentioned performance reasons. |
Uh oh!
There was an error while loading. Please reload this page.
Feature Description
See discussion starting with #23243 (comment).
I'd like UI tags to be a pure snapshot of all tags in git, e.g. a combination of
git tag
andgit show <tag>
. Gitea seems to have some weird concept where a tag is "synced" into the database and as seen in that PR, that sync apparently misses some tags which show empty despitegit show <tag>
showing all metadata of the tag like:All this info is in git and does not need to be in the Gitea database.
Releases are a distinct concept from tags and have no relation to them except that a release can optionally point to a tag.
If it helps performance, tag data could be cached in redis etc, but care must be taken so that cache is properly invalidated.
The text was updated successfully, but these errors were encountered: