Skip to content

chore: Clean User class#764

Merged
tevincent merged 2 commits into
mainfrom
clean-user-object
May 12, 2026
Merged

chore: Clean User class#764
tevincent merged 2 commits into
mainfrom
clean-user-object

Conversation

@tevincent
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR simplifies the User/preferences model by removing unused preference fields (language/country/timezone and most security fields) and updates persistence + supporting code accordingly.

Changes:

  • Slim down Preferences and Security models (and update dummy/test user builders accordingly).
  • Add a Room auto-migration spec for DB v6 to drop removed User table columns; update the exported Room schema.
  • Simplify ApiRepositoryCore.getUserProfile() by removing the with* expansion flags and always calling the base profile route.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Ui/Compose/Preview/.../UserListPreviewParameterProvider.kt Update preview dummy user builder to match new Preferences signature.
Auth/src/test/.../BaseAccountUtilsTest.kt Update test helper user builder to match new Preferences signature.
Auth/src/main/.../room/UserMigration.kt Add UserV6Migration deleting removed preference/security columns from User.
Auth/src/main/.../room/UserDatabase.kt Wire the 5→6 auto-migration to UserV6Migration.
Auth/src/main/.../preferences/security/Security.kt Remove unused security fields from the model.
Auth/src/main/.../preferences/Preferences.kt Remove language/country/timezone from preferences; keep security + organization.
Auth/src/main/.../api/ApiRepositoryCore.kt Remove withEmails/withPhones/withSecurity params and corresponding URL query building.
Auth/schemas/.../6.json Update exported Room schema to reflect removed columns and new identity hash.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tevincent tevincent force-pushed the clean-user-object branch from 308e0bb to a1f5d96 Compare May 12, 2026 10:40
@tevincent tevincent requested a review from sirambd May 12, 2026 11:03
@tevincent tevincent enabled auto-merge May 12, 2026 11:44
@sonarqubecloud
Copy link
Copy Markdown

@tevincent tevincent merged commit fd6a579 into main May 12, 2026
7 checks passed
@tevincent tevincent deleted the clean-user-object branch May 12, 2026 14:43
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.

3 participants