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

feat(backend): create settings property in user profile #3770

Merged

Conversation

AntonioVentilii
Copy link
Collaborator

@AntonioVentilii AntonioVentilii commented Nov 27, 2024

Motivation

We add stored settings to the user profile. For now it will just include dApps Settings, that hold only the list of hidden dApps in the carousel.

Tests

Add small assertion in the profile creation test

@AntonioVentilii AntonioVentilii marked this pull request as ready for review November 29, 2024 08:51
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner November 29, 2024 08:51
@AntonioVentilii AntonioVentilii marked this pull request as draft November 29, 2024 08:57
@AntonioVentilii AntonioVentilii marked this pull request as ready for review November 29, 2024 13:16
Copy link
Member

@bitdivine bitdivine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with the caveat that default needs to be implemented and the backend needs to be deployed first.

@@ -219,6 +222,7 @@ type UserCredential = record {
type UserProfile = record {
credentials : vec UserCredential;
version : opt nat64;
settings : Settings;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be opt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline, I included #[serde(default)] ; would that be enough? WDYT?

@AntonioVentilii AntonioVentilii enabled auto-merge (squash) December 2, 2024 14:31
@AntonioVentilii AntonioVentilii merged commit bad907f into main Dec 2, 2024
25 checks passed
@AntonioVentilii AntonioVentilii deleted the feat(backend)/create-settings-property-in-user-profile branch December 2, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants