-
Notifications
You must be signed in to change notification settings - Fork 927
[PM-27120] cxp hide user account when remove individual export is enabled #6089
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
Changes from all commits
4930211
1c54be9
ccd86dc
a554471
73bfa25
50d054d
cb0728c
f5dc13a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -315,6 +315,15 @@ class VaultSyncManagerImpl( | |
| } | ||
| } | ||
|
|
||
| // Treat absent network policies as known empty data to | ||
| // distinguish between unknown null data. | ||
| // The user state update will trigger flows that depend on the latest policies. | ||
| // We must store the new policies first to prevent old data on UserState. | ||
| authDiskSource.storePolicies( | ||
| userId = userId, | ||
| policies = syncResponse.policies.orEmpty(), | ||
| ) | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a functional reason this was moved?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the UserState was being updated before the policies were updated, so the
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a comment explaining that order matters here |
||
| // Update user information with additional information from sync response | ||
| authDiskSource.userState = authDiskSource.userState?.toUpdatedUserStateJson( | ||
| syncResponse = syncResponse, | ||
|
|
@@ -323,12 +332,6 @@ class VaultSyncManagerImpl( | |
| unlockVaultForOrganizationsIfNecessary(syncResponse = syncResponse) | ||
| storeProfileData(syncResponse = syncResponse) | ||
|
|
||
| // Treat absent network policies as known empty data to | ||
| // distinguish between unknown null data. | ||
| authDiskSource.storePolicies( | ||
| userId = userId, | ||
| policies = syncResponse.policies.orEmpty(), | ||
| ) | ||
| settingsDiskSource.storeLastSyncTime( | ||
| userId = userId, | ||
| lastSyncTime = clock.instant(), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -297,6 +297,7 @@ fun RootNavScreen( | |
| navController.navigateToVerifyPassword( | ||
| userId = currentState.userId, | ||
| navOptions = rootNavOptions, | ||
| hasOtherAccounts = false, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this can never be true?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is on the |
||
| ) | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.