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

[Manual Backport 2.x] [Workspace] Add user settings #8057

Merged

Conversation

Hailong-am
Copy link
Contributor

backport 569b70d from #7953

(cherry picked from commit 569b70d)
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Copy link
Contributor

github-actions bot commented Sep 6, 2024

❌ Invalid Changelog Heading

The '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax.

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 66.94561% with 79 lines in your changes missing coverage. Please review.

Project coverage is 60.67%. Comparing base (cc5f3cb) to head (9bf568d).
Report is 1 commits behind head on 2.x.

Files with missing lines Patch % Lines
src/plugins/workspace/server/utils.ts 5.55% 17 Missing ⚠️
src/core/server/ui_settings/ui_settings_client.ts 77.08% 4 Missing and 7 partials ⚠️
...rkspace/public/components/workspace_list/index.tsx 80.00% 7 Missing and 3 partials ⚠️
src/plugins/advanced_settings/public/plugin.ts 43.75% 8 Missing and 1 partial ⚠️
...d_settings/public/management_app/user_settings.tsx 64.28% 4 Missing and 1 partial ⚠️
src/plugins/workspace/server/routes/index.ts 0.00% 5 Missing ⚠️
...ntent_management/public/components/page_render.tsx 55.55% 2 Missing and 2 partials ⚠️
src/plugins/workspace/public/plugin.ts 50.00% 3 Missing and 1 partial ⚠️
...r/saved_objects/user_ui_settings_client_wrapper.ts 91.42% 1 Missing and 2 partials ⚠️
...ade_saved_config/create_or_upgrade_saved_config.ts 66.66% 1 Missing and 1 partial ⚠️
... and 6 more
Additional details and impacted files
@@           Coverage Diff            @@
##              2.x    #8057    +/-   ##
========================================
  Coverage   60.67%   60.67%            
========================================
  Files        3731     3737     +6     
  Lines       88452    88653   +201     
  Branches    13709    13770    +61     
========================================
+ Hits        53664    53790   +126     
- Misses      31526    31584    +58     
- Partials     3262     3279    +17     
Flag Coverage Δ
Linux_1 28.77% <34.73%> (+<0.01%) ⬆️
Linux_2 56.38% <70.14%> (+<0.01%) ⬆️
Linux_3 37.54% <42.95%> (+0.06%) ⬆️
Linux_4 29.73% <8.41%> (-0.04%) ⬇️
Windows_1 28.78% <34.73%> (+<0.01%) ⬆️
Windows_2 56.33% <70.14%> (+<0.01%) ⬆️
Windows_3 37.54% <42.95%> (+0.06%) ⬆️
Windows_4 29.73% <8.41%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Hailong-am
Copy link
Contributor Author

cypress failure is not related to this change.


export const CURRENT_USER_PLACEHOLDER = '<current_user>';

export const generateDocId = (id: string, scope?: UiSettingScope) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This function name is not inline with what it is actually doing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated to buildDocIdWithScope

@AMoo-Miki
Copy link
Collaborator

We should also mark this experimental in the config and changelog to allow for making changes to the API and functionality without causing a breaking change.

@Hailong-am
Copy link
Contributor Author

Hailong-am commented Sep 7, 2024

We should also mark this experimental in the config and changelog to allow for making changes to the API and functionality without causing a breaking change.

@AMoo-Miki thanks, it should be experimental. As this is backport PR I will have the quick follow up PR to address all your comments. have an issue to track #8072.

@Hailong-am
Copy link
Contributor Author

@AMoo-Miki @SuZhou-Joe @ruanyl comments are addressed, please add backport 2.17 label for this PR and close #8058 this one.

For main, i will have another PR to cherry pick the commit that will not need to backport.

Copy link
Collaborator

@AMoo-Miki AMoo-Miki left a comment

Choose a reason for hiding this comment

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

Thanks.

@SuZhou-Joe SuZhou-Joe merged commit eccf54f into opensearch-project:2.x Sep 7, 2024
65 of 67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 7, 2024
* [Workspace] Add User level setting (#7953)

(cherry picked from commit 569b70d)
Signed-off-by: Hailong Cui <ihailong@amazon.com>

* add experimental to user personal settings and support i18n

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit eccf54f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ruanyl pushed a commit that referenced this pull request Sep 9, 2024
* [Workspace] Add User level setting (#7953)

(cherry picked from commit 569b70d)


* add experimental to user personal settings and support i18n



---------


(cherry picked from commit eccf54f)

Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

4 participants