Skip to content
Snippets Groups Projects

Refactor parent issues resolver

Merged Mario Celi requested to merge 377514-refactor-issues-resolver into master
All threads resolved!

What does this MR do and why?

In !102348 (merged) I'll introduce a new issues query at the root level of the GraphQL API (more details on why at #377514 (closed)). In order to reuse resolver logic and all issue filters we first need to refactor the resolver's concern and split responsibilities so we can reuse most of it in the new resolver. Doing this in a separate MR to keep them smaller.

How to set up and validate locally

There should be no interface or spec changes as this is only a refactor. For verification you could make sure nothing has changed on the API definition and behavior around issue resolvers.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #377514 (closed)

Edited by Mario Celi

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Mario Celi changed the description

    changed the description

  • mentioned in issue #381093 (closed)

  • Mario Celi added 1 deleted label and removed pipeline:run-all-rspec label

    added 1 deleted label and removed pipeline:run-all-rspec label

  • Mario Celi added 1 commit

    added 1 commit

    • 63f26f6e - Prepend EE issue resolver arguments

    Compare with previous version

  • A deleted user added documentation label

    added documentation label

  • Mario Celi added 1 commit

    added 1 commit

    • 18b9f511 - Prepend EE issue resolver arguments

    Compare with previous version

  • Mario Celi added 1 commit

    added 1 commit

    • 053fe5e8 - Refactor project issues resolver

    Compare with previous version

  • 67 argument :not, Types::Issues::NegatedIssueFilterInputType,
    68 description: 'Negated arguments.',
    69 required: false
    70 argument :crm_contact_id, GraphQL::Types::String,
    71 required: false,
    72 description: 'ID of a contact assigned to the issues.'
    73 argument :crm_organization_id, GraphQL::Types::String,
    74 required: false,
    75 description: 'ID of an organization assigned to the issues.'
    76 end
    6 include SearchArguments
    77 7
    78 def resolve_with_lookahead(**args)
    79 return Issue.none if resource_parent.nil?
    8 included do
    9 IssueResolverArguments.argument_definition_blocks.each do |definition_block|
  • Mario Celi added 1 commit
  • Mario Celi changed the description

    changed the description

  • Mario Celi added 1 commit

    added 1 commit

    • 91a6aa63 - Refactor issues parent resolver

    Compare with previous version

  • Mario Celi
    • Author Maintainer
      Resolved by Terri Chu

      @egrieff could you please do the initial review on this one? I remember an MR you worked on related to the search arguments concern. Sorry it's a bit long but it's only refactoring and moving code around, splitting responsibilities of the concerns so they can be used separately in different resolvers. Necessary for !102348 (merged)

  • Mario Celi requested review from @egrieff

    requested review from @egrieff

  • Mario Celi changed title from Refactor project issues resolver to Refactor parent issues resolver

    changed title from Refactor project issues resolver to Refactor parent issues resolver

  • Eugenia Grieff
  • Eugenia Grieff
  • Eugenia Grieff approved this merge request

    approved this merge request

  • 👋 @egrieff, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.

    For more info, please refer to the following links:

  • mentioned in issue #381303 (closed)

  • Mario Celi added 1 commit

    added 1 commit

    • 078680a4 - Refactor issues parent resolver

    Compare with previous version

  • Mario Celi
  • Mario Celi requested review from @terrichu

    requested review from @terrichu

  • Mario Celi added 1 commit

    added 1 commit

    • af8181ac - Refactor issues parent resolver

    Compare with previous version

  • Mario Celi added 923 commits

    added 923 commits

    Compare with previous version

  • Mario Celi added 1 commit

    added 1 commit

    • 18087a7d - Refactor issues parent resolver

    Compare with previous version

  • Mario Celi mentioned in merge request !102806 (merged)

    mentioned in merge request !102806 (merged)

  • Mario Celi added 184 commits

    added 184 commits

    Compare with previous version

  • Terri Chu
  • Terri Chu
  • Terri Chu
  • Doing this in a separate MR to keep them smaller.

    praise:

  • Terri Chu removed review request for @terrichu

    removed review request for @terrichu

  • Mario Celi requested review from @terrichu

    requested review from @terrichu

  • Terri Chu approved this merge request

    approved this merge request

  • Terri Chu resolved all threads

    resolved all threads

  • Terri Chu enabled an automatic merge when the pipeline for 86d48f26 succeeds

    enabled an automatic merge when the pipeline for 86d48f26 succeeds

  • merged

  • Terri Chu mentioned in commit b24eea52

    mentioned in commit b24eea52

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading