Skip to content

Fix migration of Jira config property group name - #2660

Merged
nscuro merged 1 commit into
DependencyTrack:masterfrom
nscuro:fix-jira-property-migration
Apr 14, 2023
Merged

Fix migration of Jira config property group name#2660
nscuro merged 1 commit into
DependencyTrack:masterfrom
nscuro:fix-jira-property-migration

Conversation

@nscuro

@nscuro nscuro commented Apr 10, 2023

Copy link
Copy Markdown
Member

Description

This PR fixes an issue where existing config properties are not migrated correctly from the jira to the integrations namespace.

Addressed Issue

Additional Details

Upgrades are executed before ConfigProperty defaults are populated. The current upgrade logic attempts to UPDATE properties that don't exist yet when the upgrade is executed.

Tested on H2, Postgres 14, and MSSQL 2022

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

Upgrades are executed before ConfigProperty defaults are populated. The current upgrade logic attempts to `UPDATE` properties that don't exist yet when the upgrade is executed.

Tested on H2, Postgres 14, and MSSQL 2022

Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro added the defect Something isn't working label Apr 10, 2023
@nscuro nscuro added this to the 4.8 milestone Apr 10, 2023
@nscuro
nscuro merged commit 31bce65 into DependencyTrack:master Apr 14, 2023
@nscuro
nscuro deleted the fix-jira-property-migration branch April 14, 2023 20:42
nscuro added a commit to DependencyTrack/hyades-apiserver that referenced this pull request Apr 18, 2023
…y-track#2610, DependencyTrack/dependency-track#2660

Co-authored-by: Enora Germond <enora.germond@deveryware.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

defect Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant