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

Add new 'user' namespace in Che plugin API #13518

Closed
evidolob opened this issue Jun 12, 2019 · 0 comments · Fixed by eclipse-che/che-theia#294
Closed

Add new 'user' namespace in Che plugin API #13518

evidolob opened this issue Jun 12, 2019 · 0 comments · Fixed by eclipse-che/che-theia#294
Assignees
Labels
kind/enhancement A feature request - must adhere to the feature request template.

Comments

@evidolob
Copy link
Contributor

evidolob commented Jun 12, 2019

Description

This namespace should contain methods which allow CRUD operations over Che user preferences. We already have this methods as Theia service, we need expose them to Che Plugin API.

This API is need for #13494

Proposed API:

  export namespace user {
       export function getUserPreferences(): Promise<Preferences>;
       export function getUserPreferences(filter: string | undefined): Promise<Preferences>;
       export function updateUserPreferences(update: Preferences): Promise<Preferences>;
       export function replaceUserPreferences(preferences: Preferences): Promise<Preferences>;
       export function deleteUserPreferences(): Promise<void>;
       export function deleteUserPreferences(list: string[] | undefined): Promise<void>;
  }

  export interface Preferences {
      [key: string]: string;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants