-
Notifications
You must be signed in to change notification settings - Fork 2.8k
merge types with same structure in remote schema (fix #1112) #1145
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
Conversation
|
Review app for commit e73f8ee deployed to Heroku: https://hge-ci-pull-1145.herokuapp.com |
also fix merging subscription root from remote
|
Review app for commit eb4a787 deployed to Heroku: https://hge-ci-pull-1145.herokuapp.com |
| , fromSchemaDocQ | ||
| , TypeMap | ||
| , TypeLoc (..) | ||
| --, TyEq (..) |
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.
remove the comment
| type EqProps a | ||
| getEqProps :: a -> EqProps a | ||
|
|
||
| typeEq :: (Show (EqProps a), EquatableGType a, Eq (EqProps a)) => a -> a -> Bool |
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.
Why the Show constraint?
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.
I was debugging. Will remove it.
|
Review app for commit 9ee13e2 deployed to Heroku: https://hge-ci-pull-1145.herokuapp.com |
| , _iotiLoc :: !TypeLoc | ||
| } deriving (Show, Eq, TH.Lift) | ||
|
|
||
| instance EquatableGType InpObjTyInfo where |
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.
So we are comparing the descriptions of the fields in InpObjTyInfo?
|
Review app for commit e549b31 deployed to Heroku: https://hge-ci-pull-1145.herokuapp.com |
|
@ecthiender This also closes #1135? |
|
Review app https://hge-ci-pull-1145.herokuapp.com is deleted |
Description
If the remote schema has types with same structure and same name, they are merged now.
What component does this PR affect?
Requires changes from other components? If yes, please mark the components:
Related Issue
#1112
Solution and Design
We have a
TyEqtypeclass. Declared instances ofTyEqon variousTypeInfotypes, which compares the structure exceptnameandTypeLoc.ObjTyInfois compared by name and its fields.Type
Checklist: