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 missing argument list for DROP FUNCTION migrations #751

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Jun 20, 2024

Description

Fixes missing argument list for DROP FUNCTION migrations.

CALC_SEVERITY can exist with both 3, and 4 arguments, depending on when the system was first deployed. CALC_SEVERITY was updated to take an additional "severity_override" VARCHAR argument in 6845ea1#diff-8a05bac09ccef76206adca46106e47020121bc13254146fc287fd1279ddfad8a, but the previous version of the function was not dropped back then.

This adds argument lists to all functions being dropped, to avoid ambiguity.

Addressed Issue

N/A

Additional Details

N/A

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 updated the migration changelog accordingly
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

`CALC_SEVERITY` can exist with both 3, and 4 arguments, depending on when the system was first deployed. `CALC_SEVERITY` was updated to take an additional `"severity_override" VARCHAR` argument in 6845ea1#diff-8a05bac09ccef76206adca46106e47020121bc13254146fc287fd1279ddfad8a, but the previous version of the function was not dropped back then.

This adds argument lists to all functions being dropped, to avoid ambiguity.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro added the defect Something isn't working label Jun 20, 2024
@nscuro nscuro added this to the 5.5.0 milestone Jun 20, 2024
@nscuro
Copy link
Member Author

nscuro commented Jun 20, 2024

The failing test is getSARIFFindingsByProjectTest which was found to be flaky, and should be fixed in #748. Merging this anyway.

@nscuro nscuro merged commit 1067ddb into main Jun 20, 2024
6 of 7 checks passed
@nscuro nscuro deleted the fix-migration-function-arglist branch June 20, 2024 10:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2024
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.

2 participants