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

Handle no job group filter matches gracefully #5411

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

kraih
Copy link
Member

@kraih kraih commented Dec 22, 2023

This is a followup for #5388 and #5401. When there were no matches for job group globs, no query condition would be generated previously. Giving the false impression that all job groups were matching. So now we just generate an impossible query that cannot match anything with the group id 0.

Progress: https://progress.opensuse.org/issues/134933

@perlpunk
Copy link
Contributor

s/Hanlde/Handle/ :)

This is a followup for #5388 and #5401. When there were no matches for
job group globs, no query condition would be generated previously. Giving
the false impression that all job groups were matching. So now we just
generate an impossible query that cannot match anything with the group
id `0`.

Progress: https://progress.opensuse.org/issues/134933
@kraih kraih changed the title Hanlde no job group filter matches gracefully Handle no job group filter matches gracefully Dec 22, 2023
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (857d74f) 98.37% compared to head (220ada2) 98.37%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5411   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         389      389           
  Lines       37633    37644   +11     
=======================================
+ Hits        37021    37032   +11     
  Misses        612      612           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mergify mergify bot merged commit b96c049 into master Dec 22, 2023
40 checks passed
@mergify mergify bot deleted the k/group_filters_no_match branch December 22, 2023 14:25
Comment on lines +722 to 724
return [0] unless my $groups = $self->groups_for_globs;
return [map { $_->id } @$groups] if @$groups;

Copy link
Member

Choose a reason for hiding this comment

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

looks even cleaner than before, nice! :)

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.

None yet

4 participants