Reorder epics in an epic
Follow-up to https://gitlab.com/gitlab-org/gitlab-ee/issues/8333, so that you can re-order the children epics in an epic.
API for this functionality should be done either here or https://gitlab.com/gitlab-org/gitlab-ee/issues/7326.
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.
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Victor Wu added GitLab Ultimate Plan [DEPRECATED] direction ~2779806 epics labels
added GitLab Ultimate Plan [DEPRECATED] direction ~2779806 epics labels
- Victor Wu added to epic &312 (closed)
added to epic &312 (closed)
- Victor Wu changed title from Reorder epics and issues in an epic to Reorder epics in an epic
changed title from Reorder epics and issues in an epic to Reorder epics in an epic
- Victor Wu changed the description
changed the description
- Victor Wu mentioned in issue #7326 (closed)
mentioned in issue #7326 (closed)
- 🤖 GitLab Bot 🤖 added [deprecated] Accepting merge requests label
added [deprecated] Accepting merge requests label
- Sean McGivern changed weight to 3
changed weight to 3
- Victor Wu changed the description
changed the description
- Victor Wu added Deliverable label
added Deliverable label
- Kushal Pandya assigned to @rajatgitlab
assigned to @rajatgitlab
- 🤖 GitLab Bot 🤖 removed [deprecated] Accepting merge requests label
removed [deprecated] Accepting merge requests label
- Victor Wu mentioned in issue #9121 (moved)
mentioned in issue #9121 (moved)
- Victor Wu mentioned in issue #9367 (closed)
mentioned in issue #9367 (closed)
- Victor Wu changed epic to &758 (closed)
changed epic to &758 (closed)
- Heinrich Lee Yu assigned to @engwan
assigned to @engwan
- Maintainer
I'll work on backend for this. API will also be done here since it can't be added in !9188 (merged) since backend support isn't available yet.
Edited by Heinrich Lee Yu - Heinrich Lee Yu mentioned in merge request !9283 (merged)
mentioned in merge request !9283 (merged)
- Heinrich Lee Yu created merge request !9283 (merged) to address this issue
created merge request !9283 (merged) to address this issue
- Heinrich Lee Yu added workflowin dev label
added workflowin dev label
- Contributor
Thank you, @engwan. Will pick up the Frontend work once your MR is in master.
- Maintainer
@rajatgitlab Do you prefer doing the frontend work in the same MR or in a separate one?
I've done the backend work in !9283 (merged) and I'll have it for review now.
For the frontend, it looks like not much needs to be changed since we're using the same component that's used for reordering issues.
I made this change locally and the ordering works in the UI. We'll have to add tests for this though, so let me know how you prefer to work on this.
diff --git a/ee/app/assets/javascripts/related_issues/components/related_issues_block.vue b/ee/app/assets/javascripts/related_issues/components/related_issues_block.vue index 2e9426a25e2..5b3a7fbba11 100644 --- a/ee/app/assets/javascripts/related_issues/components/related_issues_block.vue +++ b/ee/app/assets/javascripts/related_issues/components/related_issues_block.vue @@ -124,8 +124,8 @@ export default { const nextItemEl = itemEl.nextElementSibling; return { - beforeId: prevItemEl && parseInt(prevItemEl.dataset.epicIssueId, 0), - afterId: nextItemEl && parseInt(nextItemEl.dataset.epicIssueId, 0), + beforeId: prevItemEl && parseInt(prevItemEl.dataset.orderingId, 0), + afterId: nextItemEl && parseInt(nextItemEl.dataset.orderingId, 0), }; }, reordered(event) { @@ -231,7 +231,7 @@ export default { 'card-slim': canReorder, }" :data-key="issue.id" - :data-epic-issue-id="issue.epic_issue_id" + :data-ordering-id="issue.epic_issue_id || issue.id" class="js-related-issues-token-list-item list-item pt-0 pb-0" > <issue-item
- Heinrich Lee Yu removed workflowin dev label
removed workflowin dev label
- Heinrich Lee Yu added workflowin review label
added workflowin review label
- Contributor
@engwan Thank you! You simplified the FE work so much. Kudos for that.
I can create an MR against your branch since yours is already under review. Then from there we can either merge my changes to your branch or into master if your changes are merged. Sounds good?
- Maintainer
Sounds good to me
- Rajat Jain mentioned in merge request !9355 (merged)
mentioned in merge request !9355 (merged)
- Heinrich Lee Yu changed milestone to %11.9
changed milestone to %11.9
- Jason Yavorska added missed:11.8 label
added missed:11.8 label
A large customer would like to see this implemented. Zendesk ticket: https://gitlab.zendesk.com/agent/tickets/114400 (internal-only links)
- Maintainer
Re-ordering of epics from the web UI just got merged !9283 (merged)
Will work on the API for this
- Heinrich Lee Yu mentioned in merge request !9781 (merged)
mentioned in merge request !9781 (merged)
- Lin Jen-Shin closed via merge request !9781 (merged)
closed via merge request !9781 (merged)
- Lin Jen-Shin mentioned in commit 43bcc1bf
mentioned in commit 43bcc1bf
added [deprecated] Accepting merge requests release post item labels
- 🤖 GitLab Bot 🤖 mentioned in issue gl-retrospectives/plan#24 (closed)
mentioned in issue gl-retrospectives/plan#24 (closed)
- Victor Wu removed release post item label
removed release post item label
- 🤖 GitLab Bot 🤖 added devopsplan label
added devopsplan label
- 🤖 GitLab Bot 🤖 added Enterprise Edition label
added Enterprise Edition label
- 🤖 GitLab Bot 🤖 added Category:Portfolio Management label
added Category:Portfolio Management label
- 🤖 GitLab Bot 🤖 changed the description
Compare with previous version changed the description
- Coung Ngo removed Plan [DEPRECATED] label
removed Plan [DEPRECATED] label