Skip to content

Conversation

@disq
Copy link
Member

@disq disq commented Jan 27, 2023

BEGIN_COMMIT_OVERRIDE
chore: PR was reverted
END_COMMIT_OVERRIDE

@github-actions
Copy link

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

  • Table azure_policy_data_policy_manifests: primary key constraint added to column subscription_id

@candiduslynx
Copy link
Contributor

@disq could you rebase (because of #7266)?

@candiduslynx candiduslynx changed the title fix(azure)!: Add subscription_id to azure_policy_data_policy_manifests PK fix(azure)!: Add subscription_id to azure_policy_data_policy_manifests PK Jan 27, 2023
@disq disq force-pushed the fix/azure_policy_data_policy_manifests_pk branch from 56df054 to 591ed0f Compare January 27, 2023 14:06
@disq disq added the automerge Automatically merge once required checks pass label Jan 27, 2023
@erezrokah
Copy link
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 := armpolicy.NewDataPolicyManifestsClient(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