-
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
Delete saved object when deleting workspace #84
Delete saved object when deleting workspace #84
Conversation
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Codecov Report
@@ Coverage Diff @@
## workspace #84 +/- ##
=============================================
- Coverage 65.75% 60.66% -5.10%
=============================================
Files 3336 2898 -438
Lines 64555 56652 -7903
Branches 10292 9084 -1208
=============================================
- Hits 42450 34366 -8084
- Misses 19523 20290 +767
+ Partials 2582 1996 -586
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 705 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: Hailong Cui <ihailong@amazon.com>
* entirely. This method and [`addToWorkspaces`]{@link SavedObjectsRepository.addToWorkspaces} are the only ways to change which workspace a | ||
* saved object is shared to. | ||
*/ | ||
async deleteFromWorkspaces( |
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.
It looks this function has not yet used, I guess we should always call this function when deleting object within a workspace, am I right?
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.
It's not used for now. when we should call this function that depends on the UX flow of share. The delete
method is used for all saved objects deletion and should works well before share is implemented.
…e_from_workspace Signed-off-by: Hailong Cui <ihailong@amazon.com>
9a578e4
to
24c2f91
Compare
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: Hailong Cui <ihailong@amazon.com>
* remove objects from workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * fix osd bootstrap issue Signed-off-by: Hailong Cui <ihailong@amazon.com> * add force option to delete saved objects when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * remove force delete option Signed-off-by: Hailong Cui <ihailong@amazon.com> * redirect only delete workspace successfuly Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * Add more unit test cases Signed-off-by: Hailong Cui <ihailong@amazon.com> --------- Signed-off-by: Hailong Cui <ihailong@amazon.com> (cherry picked from commit f465403) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* remove objects from workspace * delete saved object when deleting workspace * fix osd bootstrap issue * add force option to delete saved objects when deleting workspace * remove force delete option * redirect only delete workspace successfuly * delete saved object when deleting workspace * delete saved object when deleting workspace * Add more unit test cases --------- (cherry picked from commit f465403) 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>
* remove objects from workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * fix osd bootstrap issue Signed-off-by: Hailong Cui <ihailong@amazon.com> * add force option to delete saved objects when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * remove force delete option Signed-off-by: Hailong Cui <ihailong@amazon.com> * redirect only delete workspace successfuly Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * Add more unit test cases Signed-off-by: Hailong Cui <ihailong@amazon.com> --------- Signed-off-by: Hailong Cui <ihailong@amazon.com>
* remove objects from workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * fix osd bootstrap issue Signed-off-by: Hailong Cui <ihailong@amazon.com> * add force option to delete saved objects when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * remove force delete option Signed-off-by: Hailong Cui <ihailong@amazon.com> * redirect only delete workspace successfuly Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * delete saved object when deleting workspace Signed-off-by: Hailong Cui <ihailong@amazon.com> * Add more unit test cases Signed-off-by: Hailong Cui <ihailong@amazon.com> --------- Signed-off-by: Hailong Cui <ihailong@amazon.com>
Description
Issues Resolved
Screenshot
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr