Skip to content

feat: add webhook v1 disable flag and default UI to v2-only creation - #4065

Open
alfespa17 wants to merge 2 commits into
feat/webhook-v2-bitbucketfrom
feat/webhook-v1-disable-flag
Open

alfespa17 wants to merge 2 commits into
feat/webhook-v2-bitbucketfrom
feat/webhook-v1-disable-flag

fix: guard only true->false migratedV2 transitions via field-level hook

7595632
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 30, 2026 in 1m 5s

Annotations

Check warning on line 48 in api/src/main/java/io/terrakube/api/rs/hooks/webhook/WebhookManageHook.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=AzBuilder_azb-server&issues=AaIn-WCJMoi91-tjwNFb&open=AaIn-WCJMoi91-tjwNFb&pullRequest=4065

Check warning on line 43 in api/src/main/java/io/terrakube/api/plugin/vcs/controller/WebHookController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=AzBuilder_azb-server&issues=AaIn-WCnMoi91-tjwNFc&open=AaIn-WCnMoi91-tjwNFc&pullRequest=4065

Check warning on line 25 in api/src/main/java/io/terrakube/api/rs/hooks/webhook/WebhookV1RevertGuardHook.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=AzBuilder_azb-server&issues=AaIs8-Tm6nBAYS79Rf0M&open=AaIs8-Tm6nBAYS79Rf0M&pullRequest=4065

Check warning on line 47 in api/src/test/java/io/terrakube/api/rs/hooks/webhook/WebhookV1RevertGuardHookTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=AzBuilder_azb-server&issues=AaIs8-aM6nBAYS79Rf0N&open=AaIs8-aM6nBAYS79Rf0N&pullRequest=4065