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

Enhance get_advisories to Handle Empty Advisories and Basis Version Overrides #122

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

MartinPl0
Copy link
Contributor

This commit updates the get_advisories function in http_requests.py. Changes include:

  • Filtering out releases with empty advisories.
  • Checking for 'advisories!' overrides not just in the current version, but also in each basis version while processing. This ensures that any empty or specific advisories from the basis versions are appropriately applied to the current version.

@MartinPl0 MartinPl0 changed the title Enhance get_advisories to Handle Empty Advisories and Basis Version Overrides WIP Enhance get_advisories to Handle Empty Advisories and Basis Version Overrides Jan 24, 2024
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 24, 2024
@MartinPl0 MartinPl0 changed the title WIP Enhance get_advisories to Handle Empty Advisories and Basis Version Overrides Enhance get_advisories to Handle Empty Advisories and Basis Version Overrides Jan 24, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 24, 2024
lib/http_requests.py Outdated Show resolved Hide resolved
@@ -157,21 +157,33 @@ def get_advisories(branch_name):
if not current_advisories:
current_advisories = {}

override_applied = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed

lib/http_requests.py Show resolved Hide resolved
…verrides

This commit updates the get_advisories function in http_requests.py. Changes include:
- Filtering out releases with empty advisories.
- Checking for 'advisories!' overrides not just in the current version, but also in each basis version while processing. This ensures that any empty or specific advisories from the basis versions are appropriately applied to the current version.
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 31, 2024
Copy link
Contributor

openshift-ci bot commented Jan 31, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashwindasr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 31, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 4acb828 into openshift-eng:master Jan 31, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants