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]Restrict saved objects finding when workspace enabled #7182

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 1cb5956 from #7125.

* Limit data source saved objects finding and access when workspace enabled

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Remove options.workspaces drop behavior in conflict client wrapper

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Changeset file for PR #7125 created/updated

* Update src/plugins/workspace/server/saved_objects/workspace_saved_objects_client_wrapper.ts

Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: Lin Wang <wonglam@amazon.com>

* Update src/plugins/workspace/server/saved_objects/workspace_saved_objects_client_wrapper.ts

Co-authored-by: Yulong Ruan <ruanyu1@gmail.com>
Signed-off-by: Lin Wang <wonglam@amazon.com>

* Remove formatFindParams

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Fix code format

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Fix ACLSearchParams and empty workspaces

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Refactor workspace client wrapper find

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Remove global saved objects validation logic

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Update uts and its

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Changeset file for PR #7125 created/updated

* Remove no need changes and refactor

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Fix global saved objects not found

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Change saved object get to assert

Signed-off-by: Lin Wang <wonglam@amazon.com>

---------

Signed-off-by: Lin Wang <wonglam@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Yulong Ruan <ruanyl@amazon.com>
Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
Co-authored-by: Yulong Ruan <ruanyu1@gmail.com>
(cherry picked from commit 1cb5956)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Jul 5, 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 Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.60%. Comparing base (3ed43b2) to head (dc08f44).
Report is 1 commits behind head on 2.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #7182      +/-   ##
==========================================
- Coverage   67.60%   67.60%   -0.01%     
==========================================
  Files        3449     3449              
  Lines       68072    68061      -11     
  Branches    11056    11053       -3     
==========================================
- Hits        46022    46011      -11     
+ Misses      19382    19381       -1     
- Partials     2668     2669       +1     
Flag Coverage Δ
Linux_1 33.05% <61.11%> (-0.03%) ⬇️
Linux_2 55.33% <100.00%> (+<0.01%) ⬆️
Linux_3 45.11% <0.00%> (-0.01%) ⬇️
Linux_4 34.90% <0.00%> (-0.01%) ⬇️
Windows_1 33.07% <61.11%> (-0.03%) ⬇️
Windows_2 55.29% <100.00%> (+<0.01%) ⬆️
Windows_3 45.13% <0.00%> (-0.01%) ⬇️
Windows_4 34.91% <0.00%> (+<0.01%) ⬆️

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 e93688f into 2.x Jul 8, 2024
68 of 70 checks passed
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 v2.16.0 valued-contributor workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants