-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(server): user metadata #9650
Conversation
Deploying immich with Cloudflare Pages
|
fbd1e85
to
1509b1e
Compare
1509b1e
to
3af2ad3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the sql files, I think we want to join metadata
in all those queries, right?
server/src/services/user.service.ts
Outdated
key: UserMetadataKey.PREFERENCES, | ||
value: { memories: { enabled: false } }, | ||
}); | ||
delete dto.memoriesEnabled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you delete it from the dto?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it doesn't get passed to the database
8edfc67
to
72f8df3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall
Add support for user preferences via a generic user key/value store. User preferences without dedicated database columns makes it significantly easier to add settings, features, and preferences that should be stored per user. Maybe of the user settings in the web application are stored client-side, but could be migrated here in the future.
Additionally, the generic key/value store per user may come into play with plugins, who could get access to per user persistance/settings via this table as well.
Preferences included in this PR:
Preferences to be added in the future: