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 invalid SQL query when published_at field is required by CEL policy #430

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Nov 5, 2023

Description

Fixes invalid SQL query being generated when published_at field is required by CEL policy. The field is not part of the COMPONENT table.

Also avoids doing a LEFT JOIN on INTEGRITY_META_COMPONENT when published_at is not required in CEL policy. Fixes invocation of compare_age not adding published_at to the script's requirements.

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

…licy

The field is not part of the `COMPONENT` table.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro added the defect Something isn't working label Nov 5, 2023
…s not required by CEL policy

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro merged commit 51b9ea8 into main Nov 6, 2023
@nscuro nscuro deleted the fix-published-at-cel-query branch November 6, 2023 10:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 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.

2 participants