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

[Backport 2.x] [Workspace] Add privacy levels to the workspace #9162

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 8d98654 from #8907.

* Add privacy selector UI at create page

Signed-off-by: Kapian1234 <[email protected]>

* Add privacy settings UI at collaborstors page

Signed-off-by: Kapian1234 <[email protected]>

* Changeset file for PR #8907 created/updated

* Add privacy settings panel at collaborstors page

Signed-off-by: Kapian1234 <[email protected]>

* Fix the height of cards at workspace create page

Signed-off-by: Kapian1234 <[email protected]>

* Refactor workspace creator form with privacyType and setPrivacyType

Signed-off-by: Lin Wang <[email protected]>

* Resolve some issues

Signed-off-by: Kapian1234 <[email protected]>

* Add privacy settings control at details page

Signed-off-by: Kapian1234 <[email protected]>

* Add single star user check for add collaborators modal

Signed-off-by: Lin Wang <[email protected]>

* Disable save button if the selected privay type remains unchanged at collaborators page

Signed-off-by: Kapian1234 <[email protected]>

* Fix workspace creator UT

Signed-off-by: Lin Wang <[email protected]>

* Fix failed snapshots

Signed-off-by: Lin Wang <[email protected]>

* Add missing UT for workspace form utils

Signed-off-by: Lin Wang <[email protected]>

* Update UT for useWorkspaceForm

Signed-off-by: Lin Wang <[email protected]>

* Add unit tests for privacy settings at workspace create and details

Signed-off-by: Kapian1234 <[email protected]>

* /

Signed-off-by: Kapian1234 <[email protected]>

* Fix redirect to workspace landing page

Signed-off-by: Lin Wang <[email protected]>

* Remove changes to configuration files

Signed-off-by: Kapian1234 <[email protected]>

* Remove changes to configuration files

Signed-off-by: Kapian1234 <[email protected]>

* Add unit test for notification toasts

Signed-off-by: Kapian1234 <[email protected]>

* Add test id for privacy setting selector

Signed-off-by: Lin Wang <[email protected]>

* Add unit test for Collaborators Link at workspace details

Signed-off-by: Kapian1234 <[email protected]>

* Use constant for collaborators link

Signed-off-by: Kapian1234 <[email protected]>

* Fix issues of spelling and importing path

Signed-off-by: Kapian1234 <[email protected]>

* Remove the validation for the existence of an owner in permission settings

Signed-off-by: Kapian1234 <[email protected]>

* Add test id for privacy setting button in collaborators page

Signed-off-by: Lin Wang <[email protected]>

* Fix the discard operation

Signed-off-by: Kapian1234 <[email protected]>

* Add workspace privacy to summary card

Signed-off-by: Kapian1234 <[email protected]>

* Add additional privacy description at workspace create page

Signed-off-by: Kapian1234 <[email protected]>

* Remove unit tests related to missing owner in permission settings

Signed-off-by: Kapian1234 <[email protected]>

* Add permissionEnabled check for summary card

Signed-off-by: Kapian1234 <[email protected]>

* Disallow * input for user groups

Signed-off-by: Kapian1234 <[email protected]>

* Rename the converter and move options outside the function

Signed-off-by: Kapian1234 <[email protected]>

* Add learn more flyout at collaborators page

Signed-off-by: Kapian1234 <[email protected]>

* Fix unit tests and update snapshots

Signed-off-by: Kapian1234 <[email protected]>

* Remove the scss file for WorkspacePrivacyFlyout

Signed-off-by: Kapian1234 <[email protected]>

* Address some issues

Signed-off-by: Kapian1234 <[email protected]>

---------

Signed-off-by: Kapian1234 <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Lin Wang <[email protected]>
Co-authored-by: SuZhou-Joe <[email protected]>
(cherry picked from commit 8d98654)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Jan 9, 2025

❌ 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 Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.95%. Comparing base (a508b52) to head (6c36bcb).
Report is 3 commits behind head on 2.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #9162      +/-   ##
==========================================
+ Coverage   60.92%   60.95%   +0.03%     
==========================================
  Files        3808     3811       +3     
  Lines       91206    91287      +81     
  Branches    14392    14412      +20     
==========================================
+ Hits        55563    55643      +80     
  Misses      32117    32117              
- Partials     3526     3527       +1     
Flag Coverage Δ
Linux_1 29.08% <100.00%> (+0.08%) ⬆️
Linux_2 56.59% <ø> (ø)
Linux_3 37.79% <ø> (ø)
Linux_4 30.04% <ø> (ø)
Windows_1 29.09% <100.00%> (+0.08%) ⬆️
Windows_2 56.54% <ø> (ø)
Windows_3 37.79% <ø> (ø)
Windows_4 30.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.

@SuZhou-Joe SuZhou-Joe merged commit 69800cb into 2.x Jan 9, 2025
69 of 73 checks passed
@github-actions github-actions bot deleted the backport/backport-8907-to-2.x branch January 9, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports failed changeset seasoned-contributor v2.19.0 workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants