Move IssueType notes and discussions logic to resolvers
requested to merge 276491-follow-up-from-add-userdiscussionscount-to-issues-and-merge-requests-graphql into master
What does this MR do?
This MR adds a new resolver to move the user_notes_count
logic from app/graphql/types/issue_type.rb
. That way, this common code can be used by other GraphQL types. This MR resolves issue #276491 (closed).
Screenshots (strongly suggested)
N/A
Does this MR meet the acceptance criteria?
Conformity
- [-] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
- [-] Separation of EE specific content
Availability and Testing
- [-] Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
- [-] Tested in all supported browsers
- [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Edited by Jonathan Schafer