Skip to content

Conversation

william-valencia
Copy link
Contributor

@william-valencia william-valencia commented Aug 14, 2025

Overview

What is the feature?

Adding RestoreCitationRevision mutation to CMR-graphQL

What is the Solution?

Added restoreCitationRevision mutation and appropriate code to graphQL
Also adds collections associated to citation records

What areas of the application does this impact?

mutations for Citations

Testing

Reproduction steps

mutation RestoreCitationRevision($conceptId: String!, $revisionId: String!) {
  restoreCitationRevision(conceptId: $conceptId, revisionId: $revisionId) {
    conceptId
    revisionId
  }
}
query Query {
  citations {
    count
    items {
      conceptId
      name
      collections {
        count
        items {
          conceptId
          datasetId
        }
      }
    }
  }
}

Attachments

Please include relevant screenshots or files that would be helpful in reviewing and verifying this change.

Checklist

  • I have added automated tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Copy link

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5d82600) to head (757825f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #174   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          115       115           
  Lines         2666      2694   +28     
  Branches       324       328    +4     
=========================================
+ Hits          2666      2694   +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@eudoroolivares2016 eudoroolivares2016 changed the title GQL-125: Add RestoreCitationRevision mutation GQL-125: Add RestoreCitationRevision mutation and retrieving collections associated to the citation Aug 15, 2025
@eudoroolivares2016 eudoroolivares2016 changed the title GQL-125: Add RestoreCitationRevision mutation and retrieving collections associated to the citation GQL-125: Add RestoreCitationRevision mutation and retrieving collections associated to the citation records Aug 15, 2025
@eudoroolivares2016
Copy link
Contributor

Seems to be worked approving assuming the above are fixed as well

@william-valencia william-valencia merged commit c28bda3 into main Aug 18, 2025
9 checks passed
@william-valencia william-valencia deleted the GQL-125 branch August 18, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants