Work items Blocked Warning When Closing
Release Notes
You will now see a warning when trying to close a work item that has open, linked child items. This gives you awareness of blocked items before closing.
Problem to solve
Users should be aware of work item/epic links, i.e. there aren't any open child epics which are blocking the current epic from closing.
Proposal
When closing a work item that is blocked by another, we should display a warning as we do with issues.
Implementation Suggestion
Entire epic page is comprised of primarily three Vue apps;
-
ee/app/assets/javascripts/epic
: Base Epic app which shows the body containing title, description, child widgets (i.e. Child Issues and Epics with support for tree and roadmap), and sidebar. -
ee/app/assets/javascripts/linked_epics
: Wrapper app which usesapp/assets/javascripts/related_issues
internally to allow linking epics. -
app/assets/javascripts/notes
: The discussion (AKA notes) app which shows comments with the comment form.
All these apps are bootstrapped via ee/app/assets/javascripts/pages/groups/epics/show/index.js
.
Now, the linked_epics
app does contain information about which of the linked epics are blocking the current epic but the other two apps don't have that info. Also, a user can close an epic via 3 possible ways;
- Clicking on
Close epic
button from the header section - This button is part of Base Epic app. - Clicking on
Close epic
button from the comment form actions - This button is part of discussion app. - Using the quick action
/close
- This is a GFM behaviour that frontend doesn't have much control of.
It is possible to trigger an event when Close epic
button is clicked from either of the place and use shared event bus to use linked epic info and show modal dialog but if user chooses /close
action, there's know way to know about it on frontend, unless we intercept the submitted text (non-trivial).
Intended users
Feature Usage Metrics
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.