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

Profiles: Review new StorageScope for application and profile scope #152679

Closed
67 tasks done
sandy081 opened this issue Jun 20, 2022 · 3 comments
Closed
67 tasks done

Profiles: Review new StorageScope for application and profile scope #152679

sandy081 opened this issue Jun 20, 2022 · 3 comments
Assignees
Labels
user-profiles User profile management workbench-state UI state across restarts
Milestone

Comments

@sandy081
Copy link
Member

sandy081 commented Jun 20, 2022

A Profile is a set of user's

  • State (Storage)
  • Settings
  • Extensions
  • Keyboard Shortcuts
  • Tasks
  • Snippets

With the introduction of Profiles, a user can now have multiple windows open with different profiles. This means the storage has to be scoped per profile. For eg., user can create a profile in which certain activitybar icons/statusbar icons/views are hidden. All windows opened using this profile shall retain this UI configuration and other windows shall have different UI configuration. At present this state is stored under newly introduced StorageScope.Profile scope and all state stored under this is scoped per profile. At the same time, some storage has to be scoped across application, for eg., the account used for settings sync or the workspace trust state. You can use the scope StorageScope.Application to store data that one can use across application. In brief, following are the storage scopes exists right now

  • StorageScope.Application - The stored data will be scoped to all workspaces across all profiles. For eg:
    • Cached data (account session info for settings sync)
    • Workspace Trust state
    • Survey's state
    • Any state that is associated to a application scope setting
  • StorageScope.Profile - The stored data will be scoped to all workspaces of the same profile. For eg:
    • UI layout
    • User preferences/choices
    • Input History (Search/Find etc.,)

With the introduction of StorageScope.Profile, please review your usage of StorageScope.Profile and use right scope.

Following are the usages of donotShowAgain option in INotificationService. By default Notification Service stores do not show again state in application scope. The service also added NeverShowAgainScope.Application scope. So, also review these usages and choose the right scope.

@sandy081 sandy081 added workbench-state UI state across restarts user-profiles User profile management labels Jun 20, 2022
@sandy081 sandy081 added this to the June 2022 milestone Jun 20, 2022
@bpasero bpasero changed the title Profiles: Adopt to new StorageScope.Application Profiles: Adopt to new StorageScope.Global Jun 21, 2022
@bpasero bpasero changed the title Profiles: Adopt to new StorageScope.Global Profiles: Review new StorageScope for application and profile scope Jun 21, 2022
bpasero added a commit that referenced this issue Jun 21, 2022
bpasero added a commit that referenced this issue Jun 21, 2022
* profiles - adopt new scopes (#152679)

* also change for download folder
Tyriar added a commit that referenced this issue Jun 21, 2022
@Tyriar Tyriar assigned connor4312 and unassigned Tyriar Jun 21, 2022
@connor4312 connor4312 removed their assignment Jun 21, 2022
@bpasero bpasero removed their assignment Jun 22, 2022
@joyceerhl joyceerhl removed their assignment Jun 22, 2022
@lszomoru lszomoru removed their assignment Jun 23, 2022
@alexr00 alexr00 removed their assignment Jun 24, 2022
@alexdima alexdima removed their assignment Jun 24, 2022
@sandy081
Copy link
Member Author

@sbatten Assigned those areas which were previously owned by Jackson to you. Can you please reassign them to the correct owners. Thanks a lot.

alexdima added a commit that referenced this issue Jun 27, 2022
alexdima added a commit that referenced this issue Jun 27, 2022
Adopt `StorageScope.Application` (#152679)
@lramos15 lramos15 removed their assignment Jun 27, 2022
@alexdima alexdima removed their assignment Jun 27, 2022
TylerLeonhardt added a commit that referenced this issue Jun 27, 2022
move to APPLICATION for all auth since auth is really done machine wide. ref #152679
@roblourens roblourens removed their assignment Jun 28, 2022
@rebornix rebornix removed their assignment Jun 28, 2022
@sandy081
Copy link
Member Author

@sbatten Just want to check if the last two usages can be reviewed and adopted so that we can close this.

Thanks

@sandy081
Copy link
Member Author

Thanks every one for reviewing and adopting.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
user-profiles User profile management workbench-state UI state across restarts
Projects
None yet
Development

No branches or pull requests