LearnNewsExamplesServices
Frontmatter
id7750
titleRefactor `addSubIssue` and `removeSubIssue` Mutations for Efficiency
stateClosed
labels
enhancementgood first issueai
assignees[]
createdAtNov 12, 2025, 8:59 AM
updatedAtNov 12, 2025, 3:27 PM
githubUrlhttps://github.com/neomjs/neo/issues/7750
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 12, 2025, 3:27 PM

Refactor addSubIssue and removeSubIssue Mutations for Efficiency

Closed v11.2.0 enhancementgood first issueai
tobiu
tobiu commented on Nov 12, 2025, 8:59 AM

The ADD_SUB_ISSUE and REMOVE_SUB_ISSUE GraphQL mutations, introduced in PR #7741, currently fetch the parent issue's complete list of sub-issues (first: 100) in their return payload. This is unnecessary and inefficient for an operation that only modifies a single relationship.

Acceptance Criteria:

  1. Modify the ADD_SUB_ISSUE and REMOVE_SUB_ISSUE mutations in mutations.mjs.
  2. The return payload of these mutations should be minimal, confirming only the parent and the specific child issue that was added or removed.
  3. The subIssues field should be removed from the mutation's response to reduce the payload size and improve performance.
tobiu added the enhancement label on Nov 12, 2025, 8:59 AM
tobiu added the good first issue label on Nov 12, 2025, 8:59 AM
tobiu added the ai label on Nov 12, 2025, 8:59 AM
tobiu cross-referenced by PR #7741 on Nov 12, 2025, 9:14 AM
MannXo cross-referenced by PR #7754 on Nov 12, 2025, 11:26 AM
tobiu closed this issue on Nov 12, 2025, 3:27 PM