Skip to content

chore: Remove unused field in User for better implementation on iOS#175

Open
tevincent wants to merge 1 commit into
mainfrom
simplify-user-profile
Open

chore: Remove unused field in User for better implementation on iOS#175
tevincent wants to merge 1 commit into
mainfrom
simplify-user-profile

Conversation

@tevincent
Copy link
Copy Markdown
Contributor

@tevincent tevincent commented May 12, 2026

Copilot AI review requested due to automatic review settings May 12, 2026 07:54
@github-actions
Copy link
Copy Markdown
Contributor

This PR/issue depends on:

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 trims the Kotlin Multiplatform (migration) user preference models to remove fields that are no longer needed, simplifying the exported iOS surface and the Android↔shared model mapping.

Changes:

  • Remove many properties from SharedSecurity, keeping only score and dateLastChangedPassword.
  • Remove language, country, and timezone from migration Preferences.
  • Update MigrationUtils mappings accordingly (drop the removed preference/security conversions).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
multiplatform-lib/src/commonMain/kotlin/models/migration/user/preferences/security/SharedSecurity.kt Shrinks the exported migration security model to only the fields used by the authenticator.
multiplatform-lib/src/commonMain/kotlin/models/migration/user/preferences/Preferences.kt Removes unused preference fields from the exported migration preferences model.
app/src/main/kotlin/com/infomaniak/auth/utils/MigrationUtils.kt Aligns Android↔shared conversions with the reduced migration model schema.

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

@tevincent tevincent force-pushed the simplify-user-profile branch from dffe0ac to 4e5d11f Compare May 12, 2026 10:44
@sonarqubecloud
Copy link
Copy Markdown

@tevincent tevincent requested a review from LouisCAD May 12, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants