-
Notifications
You must be signed in to change notification settings - Fork 37
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
fix: check for register platform v2 mutation #277
fix: check for register platform v2 mutation #277
Conversation
@@ -20,6 +21,11 @@ func createVersion() cli.ActionFunc { | |||
|
|||
providerType := cliCtx.String(flagProviderType.Name) | |||
useRegisterPlatformV2 := cliCtx.Bool(flagUseRegisterPlatformV2.Name) |
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.
probably we can remove this flag, I think it wasnt released
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 vote on removing it in this PR
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.
Nice one - that's great because it gives us a way of doing this kind of thing in general.
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'm just wondering if we should cache the schema in memory in order to avoid calling multiples times the __schema
request against our backend.
Anyway, we only call this once.
I'm happy if we merge it as it, it's a more future proofing nit comment 😉
Introspection is used to determine whether we want to use the registerPlatformV2 mutation or not.
Follow up of this PR #273