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

fix: check for register platform v2 mutation #277

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

ilya-hontarau
Copy link
Contributor

@ilya-hontarau ilya-hontarau commented Dec 9, 2024

Introspection is used to determine whether we want to use the registerPlatformV2 mutation or not.
Follow up of this PR #273

@@ -20,6 +21,11 @@ func createVersion() cli.ActionFunc {

providerType := cliCtx.String(flagProviderType.Name)
useRegisterPlatformV2 := cliCtx.Bool(flagUseRegisterPlatformV2.Name)
Copy link
Contributor Author

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

Copy link
Collaborator

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

@ilya-hontarau ilya-hontarau requested a review from a team December 9, 2024 15:07
@ilya-hontarau ilya-hontarau marked this pull request as ready for review December 9, 2024 15:43
Copy link
Contributor

@adamconnelly adamconnelly left a 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.

Copy link
Member

@eliecharra eliecharra left a 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 😉

@ilya-hontarau ilya-hontarau merged commit 3270b0f into main Dec 9, 2024
9 checks passed
@ilya-hontarau ilya-hontarau deleted the feat-check-for-register-platform-v2-mutation branch December 9, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants