-
Couldn't load subscription status.
- Fork 68
🌱 Refactor filter package #1734
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
🌱 Refactor filter package #1734
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1734 +/- ##
==========================================
+ Coverage 68.24% 68.26% +0.02%
==========================================
Files 58 58
Lines 4988 4995 +7
==========================================
+ Hits 3404 3410 +6
- Misses 1342 1343 +1
Partials 242 242
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
c7964fe to
2cc81ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
a7cf57d to
d5980c0
Compare
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
d5980c0 to
5034d99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Description
Refactors the
catalogmetadata/filterpackage by:internal/util/filterFilterfunction toRemoveInPlaceto make it clear that function mutates the inputFilterfunctionFilterandRemoveInPlacetointernal/util/slicesThis was done as slice (and other) filtering is, generally, a useful thing to have and can be used throughout the code-base. I've been using it as part of go'fied rbac rendering tool (
hacks/tools/catalog/generate-manifests) that I made to help me with the single/own namespace testing and RBAC scoping.Reviewer Checklist