-
Notifications
You must be signed in to change notification settings - Fork 44
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
🐛 Hide hidden rulesets from seeded hub list #1205
Conversation
8bcefa9
to
59e8e1e
Compare
client/src/app/queries/rulesets.ts
Outdated
}); | ||
return { ...ruleset, rules: mappedRules }; | ||
}) | ||
.filter((ruleset) => !ruleset.name.startsWith(".")); |
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.
Adds this filter for hidden rulesets.
const matchingRuleset = rulesets.find( | ||
(Ruleset) => Ruleset.id === id | ||
); | ||
if (matchingRuleset) { |
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.
Don't display ordered items which are hidden.
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #1205 +/- ##
=======================================
Coverage 44.09% 44.10%
=======================================
Files 177 177
Lines 4511 4501 -10
Branches 1006 1006
=======================================
- Hits 1989 1985 -4
+ Misses 2511 2505 -6
Partials 11 11
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Good catch. The blank targets are filtered in the migration targets page, but not in the wizard. Should be fixed now! |
8bc27b5
to
62a963e
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
client/src/app/queries/rulesets.ts
Outdated
}); | ||
return { ...ruleset, rules: mappedRules }; | ||
}) | ||
.filter((ruleset) => !ruleset.name.startsWith(".")); |
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.
Very very minor nit-pick: I suggest moving the filter() above the map() so the map() only needs to process things that will end up being selected.
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.
Done!
Signed-off-by: ibolton336 <ibolton@redhat.com>
62a963e
to
c130a05
Compare
Resolves #1093