You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: keep stored metadata when a project, group or user update does not set it #2030
When a project, group or user is updated, the whole metadata column is replaced with what the request sends. If a client leaves metadata out, the stored keys are wiped. #2019 fixed this for organizations. The other entities still have the bug.
Where it happens
Project: UpdateByID and UpdateByName in internal/store/postgres/project_repository.go, called from UpdateProject.
Group: UpdateByID in internal/store/postgres/group_repository.go, called from UpdateGroup.
User: UpdateByID and UpdateByEmail in internal/store/postgres/user_repository.go, called from UpdateUser and UpdateCurrentUser.
User UpdateByName is different. It skips metadata when the map is empty, so metadata can't be cleared on purpose.
Activity
rohilsurana commentedon Oct 27, 2026
We also need to make sure none of our UI components send
{}by mistake. Else it would clear it anyways even after the fix.