-
Notifications
You must be signed in to change notification settings - Fork 89
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
[Consignments] Reenable Convection Stitching #2221
Conversation
|
88cf857
to
c162a0d
Compare
@mzikherman / @jonallured - this is ready to go. |
c162a0d
to
0a13845
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Makes sense to me, thank you for annotating soon-to-be-deleted tests. Very very cool how much code we get to delete 🤩 The schema changes themselves appear to be backwards-compatible, but I agree that thorough testing on staging would be prudent.
To make sure we have adequate staging testing before promoting to prod, I'm going to assign this back to @damassi to merge at his discretion.
Related: artsy/convection#504
This unwires unstitched mutations related to creating / updating a consignments submission, in favor of stitching.
Now that convection PR has been merged, if one pulls down this PR and points Eigen at it, can create stitched submission at consignments staging. See https://convection-staging.artsy.net/admin/submissions/31121 for an example.
The schema conflicts below relate to old consignments
convection
schema, before it was modified to match MP, and can thus be ignored.This is a phased roll-out:
ENABLE_CONSIGNMENTS_STITCHING
on stagingThere are details in the PR up above, but the main change required was to match the types / schema in Convection to what was manually built using GraphQL loaders and the REST API. This was required so as to avoid breaking changes to our iOS app and enable a code-free transition on the Eigen side of things.
If everything goes smoothly we can follow-up and delete a bunch of consignments code from MP as it will be entirely replaced by stitching.
This flow has been tested by:
CONVECTION_API_BASE=http://localhost:5000/api
yarn sync-remote-schema
to sync Convection's localhost schemaHistory
Previously, we ran into issues stitching in Convection. I believe this was before we had a pattern for transforming / aliasing type names across services. The problems observed in this issue no longer seem to apply.