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

Tools: Rewrite delete should match even if label does not exist #3901

Closed
wants to merge 1 commit into from
Closed

Conversation

ahurtaud
Copy link
Contributor

@ahurtaud ahurtaud commented Mar 9, 2021

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Fixes #3885 - The fix provided by @yeya24 was not enough as it deleted a block matching only 1 matcher when others labelkeys do not exist.
The matcher check is done on every label keys, even if value is empty.

Verification

Edited the test to "partial" match 1 matcher

@squat
Copy link
Member

squat commented Mar 9, 2021

absolutely right, thanks for catching this 👍

@squat
Copy link
Member

squat commented Mar 9, 2021

hmm, the unit tests seems not to be completely right. Can you please take a look @ahurtaud?

Signed-off-by: Alban HURTAUD <alban.hurtaud@amadeus.com>
Copy link
Member

@squat squat left a comment

Choose a reason for hiding this comment

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

Thanks again @ahurtaud

@ahurtaud
Copy link
Contributor Author

ahurtaud commented Mar 9, 2021

Hum not sure we want to merge as-is:

@yeya24 yeya24 mentioned this pull request Mar 9, 2021
@ahurtaud
Copy link
Contributor Author

ahurtaud commented Mar 9, 2021

closed in favour of #3891

@ahurtaud ahurtaud closed this Mar 9, 2021
@ahurtaud ahurtaud deleted the bugfix/3885 branch March 9, 2021 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants