codecov-api icon indicating copy to clipboard operation
codecov-api copied to clipboard

feat: Dump GraphQL schema in pre-commit hook

Open scott-codecov opened this issue 1 year ago • 2 comments

Purpose/Motivation

We'd like a clear way to determine when the GraphQL schema is changed. By making sure the full schema is part of every commit it will become clear in every commit what the schema diff is.

Links to relevant tickets

N/A

What does this PR do?

Adds a new Django management command to dump the GraphQL schema into a text file (graphql_api/schema.graphql). This command is run as part of the pre-commit.

scott-codecov avatar Oct 11 '23 12:10 scott-codecov

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (84a31da) 95.61% compared to head (ca27847) 95.61%. Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #185   +/-   ##
=======================================
  Coverage   95.61%   95.61%           
=======================================
  Files         600      600           
  Lines       15223    15224    +1     
=======================================
+ Hits        14556    14557    +1     
  Misses        667      667           
Flag Coverage Δ
unit 95.61% <100.00%> (+<0.01%) :arrow_up:
unit-latest-uploader 95.61% <100.00%> (+<0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-qa[bot] avatar Oct 23 '23 15:10 codecov-qa[bot]

Codecov Report

Merging #185 (ca27847) into main (84a31da) will increase coverage by 0.00%. Report is 1 commits behind head on main. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #185   +/-   ##
=======================================
  Coverage   95.61%   95.61%           
=======================================
  Files         600      600           
  Lines       15223    15224    +1     
=======================================
+ Hits        14556    14557    +1     
  Misses        667      667           
Flag Coverage Δ
unit 95.61% <100.00%> (+<0.01%) :arrow_up:
unit-latest-uploader 95.61% <100.00%> (+<0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
codecov/commands/base.py 100.00% <100.00%> (ø)
codecov/commands/executor.py 100.00% <100.00%> (ø)
...commands/owner/interactors/save_terms_agreement.py 100.00% <100.00%> (ø)

Impacted file tree graph

codecov-public-qa[bot] avatar Oct 23 '23 15:10 codecov-public-qa[bot]