Skip to content
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

Fix known groups/users label-related default key and typing #1337

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

LukasKalbertodt
Copy link
Member

Things I forgot in #1316. The reason for why I didn't notice is that the TranslatedLabel type was bad. In particular, Record<string, _> seems to behave differently than I assumed. It's very lenient. Now I made typing more strict in multiple places. In the backend, the translated string will also check the default field when loading from DB, in order to keep the API description guarantees.

This fixes the ACL editor being buggy or crashing when dealing with users.

Things I forgot in elan-ev#1316. The reason for why I didn't notice is that the
`TranslatedLabel` type was bad. In particular, `Record<string, _>` seems
to behave differently than I assumed. It's very lenient. Now I made
typing more strict in multiple places. In the backend, the translated
string will also check the default field when loading from DB, in order
to keep the API description guarantees.

This fixes the ACL editor being buggy or crashing when dealing with
users.
@LukasKalbertodt LukasKalbertodt added the changelog:nope Not worth mentioning in the changelog label Feb 5, 2025
@github-actions github-actions bot temporarily deployed to test-deployment-pr1337 February 5, 2025 12:44 Destroyed
@owi92 owi92 merged commit a793a66 into elan-ev:next Feb 5, 2025
4 checks passed
@LukasKalbertodt LukasKalbertodt deleted the fix-known-groups-label branch February 5, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:nope Not worth mentioning in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants