Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: begin adding shared types and consolidate check operations #652

Merged

Conversation

EverlastingBugstopper
Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper commented Jul 1, 2021

I got a little carried away with this commit, but it's a good thing I promise.

We've got lots of shared types now, I've got plans for a bunch more, and things are looking cleaner than ever.

graph::check and subgraph::check were the primary drivers here, but some other stuff was touched along the way, along with a rename of the query module to operations, since it contains both queries and operations

TODO:

  • finish hooking up the rover code to the new rover-client graph check code
  • In my digging I've found (I'm pretty darn sure anyways..) that subgraph check doesn't return the proper exit code or a proper error when the check response from studio says it breaks clients. composition errors will exit with code 1, but i'm fairly certain that it will print out the table of changes and not report any errors even if there are failure codes.

I've implemented the above, which consolidates the behavior of both graph check and subgraph check to print and behave exactly the same.

⚠️ I've added failures to subgraph check for when operation checks fail. This is likely a breaking change in that before stuff would work, and now it doesn't? Though really it was a bug beforehand because you want things to fail in this case. That.. that's kinda the whole point.

@EverlastingBugstopper EverlastingBugstopper changed the title chore: begin adding shared types [wip] chore: begin adding shared types Jul 1, 2021
@EverlastingBugstopper EverlastingBugstopper changed the title [wip] chore: begin adding shared types chore: begin adding shared types Jul 1, 2021
@EverlastingBugstopper EverlastingBugstopper changed the title chore: begin adding shared types chore: begin adding shared types and consolidate check operations Jul 2, 2021
I got a little carried away with this commit, but it's a good thing
I promise.

We've got lots of shared types now, I've got plans for a bunch more,
and things are looking cleaner than ever.

graph::check and subgraph::check were the primary drivers here,
but some other stuff was touched along the way.
@EverlastingBugstopper EverlastingBugstopper merged commit e29b87b into avery/refactor-subgraph-check Jul 6, 2021
@EverlastingBugstopper EverlastingBugstopper deleted the avery/start-shared-types branch July 6, 2021 20:00
EverlastingBugstopper added a commit that referenced this pull request Jul 26, 2021
* chore: refactor subgraph check

This commit does a lot of heavy lifting for the pending rebase.

1) Creates new input and output types in rover-client for subgraph check
2) Moves GitContext out of rover::utils to rover-client::utils
3) Creates error code E029 for composition errors
4) Styles cloud-composition errors like harmonizer

* chore: refactor subgraph fetch (#575)

* chore: refactor subgraph publish (#630)

* chore: refactor config whoami (#633)

* chore: refactor subgraph delete (#639)

* chore: refactor subgraph list (#640)

* chore: refactor subgraph introspect (#641)

* chore: refactor graph introspect (#643)

* chore: refactor release update checker (#646)

* chore: begin adding shared types and consolidate check operations (#652)

* chore: move GraphRef to rover-client (#664)

* chore: refactor the rest of rover-client (#675)

* chore: do not re-export queries

* chore: finish wiring OperationCheck error

* chore: adds graphql linter (#677)

* fix: graph_ref -> graphref

* feat: structured output (#676)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant