Conversation
Co-authored-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Ryan Liang <jiallian@amazon.com> Co-authored-by: Yan Zeng <zengyan@amazon.com> Signed-off-by: Chang Liu <lc12251109@gmail.com>
* Add cypress CI for aggregation view Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: Chang Liu <lc12251109@gmail.com>
Signed-off-by: Chang Liu <lc12251109@gmail.com>
Signed-off-by: Ryan Liang <jiallian@amazon.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1146 +/- ##
==========================================
- Coverage 75.08% 73.90% -1.19%
==========================================
Files 86 86
Lines 1975 1901 -74
Branches 278 251 -27
==========================================
- Hits 1483 1405 -78
- Misses 432 439 +7
+ Partials 60 57 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Chang Liu <lc12251109@gmail.com>
peternied
left a comment
There was a problem hiding this comment.
The 1st milestone
I didn't seen milestones called out in opensearch-project/security#1869, is this Saved Objects Aggregated View the only consideration in scope?
DarshitChanpura
left a comment
There was a problem hiding this comment.
Looks good overall! Requested a few changes
public/apps/configuration/panels/role-edit/cluster-permission-panel.tsx
Outdated
Show resolved
Hide resolved
public/apps/configuration/panels/role-edit/index-permission-panel.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Ryan Liang <jiallian@amazon.com>
The PM, UX and Eng are working on figuring out milestones in detail. We have a direction that we are going towards, but the expected UX needs to be fleshed out to provide the following milestones. The issue that this PR is trying to resolve has been linked to the RFC. |
Signed-off-by: Chang Liu <lc12251109@gmail.com>
Co-authored-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Chang Liu <lc12251109@gmail.com>
Signed-off-by: Chang Liu <lc12251109@gmail.com>
…1157) Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: Chang Liu <lc12251109@gmail.com>
|
@peternied Thanks for reviewing! Sorry, I didn’t mean to re-request your review. I clicked the request review button on all reviewers by mistake. |
| FTR_PATH: 'ftr' | ||
| START_CMD: 'node ../scripts/opensearch_dashboards --dev --no-base-path --no-watch --opensearch_security.multitenancy.enable_aggregation_view=true' | ||
| OPENSEARCH_SNAPSHOT_CMD: 'node ../scripts/opensearch snapshot' | ||
| SPEC: 'cypress/integration/plugins/security-dashboards-plugin/aggregation_view.js,' |
There was a problem hiding this comment.
should this changed to a folder path? Could be done in future if we are planning to add and test more cypress tests.
| tenant = await fetchCurrentTenant(coreStart.http); | ||
| } catch (e) { | ||
| tenant = undefined; | ||
| console.log(e); |
There was a problem hiding this comment.
Do we need this console.log?
(cherry picked from commit 7c8ede6) Signed-off-by: Chang Liu <lc12251109@gmail.com> Signed-off-by: Ryan Liang <jiallian@amazon.com> Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Yan Zeng <zengyan@amazon.com> Co-authored-by: Ryan Liang <jiallian@amazon.com> Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com> Co-authored-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Yan Zeng <zengyan@amazon.com> Change version to 2.4 for backport Signed-off-by: Chang Liu <lc12251109@gmail.com>
(cherry picked from commit 7c8ede6) Signed-off-by: Chang Liu <lc12251109@gmail.com> Signed-off-by: Ryan Liang <jiallian@amazon.com> Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Yan Zeng <zengyan@amazon.com> Co-authored-by: Ryan Liang <jiallian@amazon.com> Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com> Co-authored-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Yan Zeng <zengyan@amazon.com>
* Saved Object Aggregation View (#1146) * Move tenant-related utils to common folder (#1184) * [Saved Object Aggregation View] Use namespace registry to add tenant filter (#1169) Signed-off-by: Chang Liu <lc12251109@gmail.com> Signed-off-by: Ryan Liang <jiallian@amazon.com> Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Yan Zeng <zengyan@amazon.com> Co-authored-by: Ryan Liang <jiallian@amazon.com> Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com> Co-authored-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Yan Zeng <zengyan@amazon.com>
* Saved Object Aggregation View (#1146) * Move tenant-related utils to common folder (#1184) * [Saved Object Aggregation View] Use namespace registry to add tenant filter (#1169) Signed-off-by: Chang Liu <lc12251109@gmail.com> Signed-off-by: Ryan Liang <jiallian@amazon.com> Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Yan Zeng <zengyan@amazon.com> Co-authored-by: Ryan Liang <jiallian@amazon.com> Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com> Co-authored-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Yan Zeng <zengyan@amazon.com>
Description
Enable saved object table to show saved objects across all permitted tenants on a single panel. This is the 1st milestone of the new saved object sharing experience.
Category
New feature
Why these changes are required?
The 1st milestone of the new saved object sharing experience.
What is the old behavior before changes and new behavior after changes?
(See the issue)
Current Behavior:
The Saved Object table shows only the saved objects in the selected tenants.
New Behavior:
The Saved Object table shows all the saved objects across all tenants that the logged in user has permissions to.
Issues Resolved
opensearch-project/OpenSearch-Dashboards#2249
Testing
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.