Skip to content

fix(azure)!: Add subscription_id to azure_authorization_provider_operations_metadata PK#7269

Merged
kodiakhq[bot] merged 4 commits into
mainfrom
fix/azure/pk/azure_authorization_provider_operations_metadata
Jan 27, 2023
Merged

fix(azure)!: Add subscription_id to azure_authorization_provider_operations_metadata PK#7269
kodiakhq[bot] merged 4 commits into
mainfrom
fix/azure/pk/azure_authorization_provider_operations_metadata

Conversation

@candiduslynx
Copy link
Copy Markdown
Contributor

@candiduslynx candiduslynx commented Jan 27, 2023

BEGIN_COMMIT_OVERRIDE
chore: PR was reverted
END_COMMIT_OVERRIDE

@candiduslynx candiduslynx added the automerge Automatically merge once required checks pass label Jan 27, 2023
@cq-bot cq-bot added the azure label Jan 27, 2023
@github-actions
Copy link
Copy Markdown

This PR has the following changes to source plugin(s) tables:

  • Table azure_authorization_provider_operations_metadata: primary key constraint added to column subscription_id

@candiduslynx candiduslynx requested a review from disq January 27, 2023 15:13
@kodiakhq kodiakhq Bot merged commit 4f801a3 into main Jan 27, 2023
@kodiakhq kodiakhq Bot deleted the fix/azure/pk/azure_authorization_provider_operations_metadata branch January 27, 2023 16:09
@erezrokah
Copy link
Copy Markdown
Member

I'm not sure this is the correct fix (though it does solve the issue).
This API does not require passing a subscription so the duplicate keys were probably due to us multiplexing over those.
I think the fix should be to drop the multiplexer and the subscription id column, see:

svc, err := armauthorization.NewProviderOperationsMetadataClient(cl.Creds, cl.Options)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants