OKR for GitLab: Allow Undo removal of indirect children of Objective to prevent refetch
Summary
Currently, when you remove a direct child of an objective from the tree (via Remove
menu action), it is removed immediately with a Toast showing the confirmation of removal along with Undo
action. However, if we try to remove a child from one of the child objective, i.e. an indirect child at 1+ level depth, removal is handled by doing a refetch of that sub-tree and Toast is not shown to allow undoing the removal.
Proposal
As a follow-up to work done in !104808 (merged), we need to address the following two points:
- Use the same approach with cache manipulation for indirect child as in direct child
- Show Toast upon removal to allow the user to undo the removal.
Edited by Ihor Chernobai