-
Notifications
You must be signed in to change notification settings - Fork 0
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 workspace filter/column into saved objects page #211
Add workspace filter/column into saved objects page #211
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## workspace-pr-integr #211 +/- ##
=======================================================
- Coverage 66.99% 66.99% -0.01%
=======================================================
Files 3323 3325 +2
Lines 64460 64535 +75
Branches 10387 10406 +19
=======================================================
+ Hits 43188 43233 +45
- Misses 18744 18770 +26
- Partials 2528 2532 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
1996ecc
to
d5d3d4f
Compare
7de3949
to
25b62bd
Compare
...lugins/saved_objects_management/public/management_section/objects_table/components/table.tsx
Outdated
Show resolved
Hide resolved
...aved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx
Show resolved
Hide resolved
...ins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx
Outdated
Show resolved
Hide resolved
...ins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx
Outdated
Show resolved
Hide resolved
94627b0
to
2b0d341
Compare
8ff9e88
to
1a52b29
Compare
7ea5621
to
f54318b
Compare
2243734
to
6d473d8
Compare
Signed-off-by: Hailong Cui <[email protected]> fix failed test case Signed-off-by: Hailong Cui <[email protected]> move workspace column to its own folder Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: Hailong Cui <[email protected]> fix test case Signed-off-by: Hailong Cui <[email protected]> add test case Signed-off-by: Hailong Cui <[email protected]> remove hide import Signed-off-by: Hailong Cui <[email protected]>
448fdb2
to
023fa9b
Compare
import { WorkspaceObject } from 'opensearch-dashboards/public'; | ||
import { DEFAULT_WORKSPACE_ID } from '../../../../../core/public'; | ||
import { TableProps } from './components/table'; | ||
import { waitFor } from '@testing-library/dom'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines should be linted when commit(Absolute import should move before relative import), could you please take a look to see if the lint take effect when you do git commit?
@@ -8,3 +8,5 @@ export const WORKSPACE_TYPE = 'workspace'; | |||
export const WORKSPACE_PATH_PREFIX = '/w'; | |||
|
|||
export const PUBLIC_WORKSPACE_ID = 'public'; | |||
|
|||
export const DEFAULT_WORKSPACE_ID = 'default'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 2.13 I thought default workspace
is a virtual workspace? Could we add some comment on it as at first I thought it is a new physical workspace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, comments added.
@@ -9,6 +9,7 @@ import { applicationServiceMock, chromeServiceMock, coreMock } from '../../../co | |||
import { WorkspacePlugin } from './plugin'; | |||
import { WORKSPACE_FATAL_ERROR_APP_ID, WORKSPACE_OVERVIEW_APP_ID } from '../common/constants'; | |||
import { Observable, Subscriber } from 'rxjs'; | |||
import { savedObjectsManagementPluginMock } from 'src/plugins/saved_objects_management/public/mocks'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we need to change to a relative path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, changed to relative import.
Signed-off-by: Hailong Cui <[email protected]>
58f8ea4
into
ruanyl:workspace-pr-integr
* Add workspace column/filter into saved objects page Signed-off-by: Hailong Cui <[email protected]> fix failed test case Signed-off-by: Hailong Cui <[email protected]> move workspace column to its own folder Signed-off-by: Hailong Cui <[email protected]> * default workspace Signed-off-by: Hailong Cui <[email protected]> fix test case Signed-off-by: Hailong Cui <[email protected]> add test case Signed-off-by: Hailong Cui <[email protected]> remove hide import Signed-off-by: Hailong Cui <[email protected]> * address review comments Signed-off-by: Hailong Cui <[email protected]> --------- Signed-off-by: Hailong Cui <[email protected]>
…ensearch-project#6458) * Add workspace filter into saved objects page (#211) * Add workspace column/filter into saved objects page Signed-off-by: Hailong Cui <[email protected]> fix failed test case Signed-off-by: Hailong Cui <[email protected]> move workspace column to its own folder Signed-off-by: Hailong Cui <[email protected]> * default workspace Signed-off-by: Hailong Cui <[email protected]> fix test case Signed-off-by: Hailong Cui <[email protected]> add test case Signed-off-by: Hailong Cui <[email protected]> remove hide import Signed-off-by: Hailong Cui <[email protected]> * address review comments Signed-off-by: Hailong Cui <[email protected]> --------- Signed-off-by: Hailong Cui <[email protected]> * replace default workspace with public workspace (#322) Signed-off-by: Hailong Cui <[email protected]> * Add workspace filter Signed-off-by: Hailong Cui <[email protected]> * revert query params change Signed-off-by: Hailong Cui <[email protected]> * udpate test case name to more clear Signed-off-by: Hailong Cui <[email protected]> * support public workspace Signed-off-by: Hailong Cui <[email protected]> * Add changelog Signed-off-by: Hailong Cui <[email protected]> * update fetchExportByTypeAndSearch parameter Co-authored-by: SuZhou-Joe <[email protected]> Signed-off-by: Hailong Cui <[email protected]> * remove virtrual public workspace Signed-off-by: Hailong Cui <[email protected]> * update comments Signed-off-by: Hailong Cui <[email protected]> * fix public workspace query when permission is not enabled Signed-off-by: Hailong Cui <[email protected]> * home dashboards/listing page only show public workspace data Signed-off-by: Hailong Cui <[email protected]> * Add more test case Signed-off-by: Hailong Cui <[email protected]> --------- Signed-off-by: Hailong Cui <[email protected]> Signed-off-by: SuZhou-Joe <[email protected]> Co-authored-by: SuZhou-Joe <[email protected]>
…t page (#6… (#334) * [Workspace] Add Workspace filter to saved objects management page (opensearch-project#6458) * Add workspace filter into saved objects page (#211) * Add workspace column/filter into saved objects page Signed-off-by: Hailong Cui <[email protected]> fix failed test case Signed-off-by: Hailong Cui <[email protected]> move workspace column to its own folder Signed-off-by: Hailong Cui <[email protected]> * default workspace Signed-off-by: Hailong Cui <[email protected]> fix test case Signed-off-by: Hailong Cui <[email protected]> add test case Signed-off-by: Hailong Cui <[email protected]> remove hide import Signed-off-by: Hailong Cui <[email protected]> * address review comments Signed-off-by: Hailong Cui <[email protected]> --------- Signed-off-by: Hailong Cui <[email protected]> * replace default workspace with public workspace (#322) Signed-off-by: Hailong Cui <[email protected]> * Add workspace filter Signed-off-by: Hailong Cui <[email protected]> * revert query params change Signed-off-by: Hailong Cui <[email protected]> * udpate test case name to more clear Signed-off-by: Hailong Cui <[email protected]> * support public workspace Signed-off-by: Hailong Cui <[email protected]> * Add changelog Signed-off-by: Hailong Cui <[email protected]> * update fetchExportByTypeAndSearch parameter Co-authored-by: SuZhou-Joe <[email protected]> Signed-off-by: Hailong Cui <[email protected]> * remove virtrual public workspace Signed-off-by: Hailong Cui <[email protected]> * update comments Signed-off-by: Hailong Cui <[email protected]> * fix public workspace query when permission is not enabled Signed-off-by: Hailong Cui <[email protected]> * home dashboards/listing page only show public workspace data Signed-off-by: Hailong Cui <[email protected]> * Add more test case Signed-off-by: Hailong Cui <[email protected]> --------- Signed-off-by: Hailong Cui <[email protected]> Signed-off-by: SuZhou-Joe <[email protected]> Co-authored-by: SuZhou-Joe <[email protected]> * fix empty workspace Signed-off-by: Hailong Cui <[email protected]> --------- Signed-off-by: Hailong Cui <[email protected]> Signed-off-by: SuZhou-Joe <[email protected]> Co-authored-by: SuZhou-Joe <[email protected]>
…ensearch-project#6458) (opensearch-project#6580) * Add workspace filter into saved objects page (#211) * Add workspace column/filter into saved objects page Signed-off-by: Hailong Cui <[email protected]> fix failed test case Signed-off-by: Hailong Cui <[email protected]> move workspace column to its own folder Signed-off-by: Hailong Cui <[email protected]> * default workspace Signed-off-by: Hailong Cui <[email protected]> fix test case Signed-off-by: Hailong Cui <[email protected]> add test case Signed-off-by: Hailong Cui <[email protected]> remove hide import Signed-off-by: Hailong Cui <[email protected]> * address review comments Signed-off-by: Hailong Cui <[email protected]> --------- Signed-off-by: Hailong Cui <[email protected]> * replace default workspace with public workspace (#322) Signed-off-by: Hailong Cui <[email protected]> * Add workspace filter Signed-off-by: Hailong Cui <[email protected]> * revert query params change Signed-off-by: Hailong Cui <[email protected]> * udpate test case name to more clear Signed-off-by: Hailong Cui <[email protected]> * support public workspace Signed-off-by: Hailong Cui <[email protected]> * Add changelog Signed-off-by: Hailong Cui <[email protected]> * update fetchExportByTypeAndSearch parameter Co-authored-by: SuZhou-Joe <[email protected]> Signed-off-by: Hailong Cui <[email protected]> * remove virtrual public workspace Signed-off-by: Hailong Cui <[email protected]> * update comments Signed-off-by: Hailong Cui <[email protected]> * fix public workspace query when permission is not enabled Signed-off-by: Hailong Cui <[email protected]> * home dashboards/listing page only show public workspace data Signed-off-by: Hailong Cui <[email protected]> * Add more test case Signed-off-by: Hailong Cui <[email protected]> --------- Signed-off-by: Hailong Cui <[email protected]> Signed-off-by: SuZhou-Joe <[email protected]> Co-authored-by: SuZhou-Joe <[email protected]> (cherry picked from commit 9408e49) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
workspace column
workspace filter includes default workspace
Issues Resolved
Screenshot
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr