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

🐛 Hide hidden rulesets from seeded hub list #1205

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

ibolton336
Copy link
Member

@ibolton336 ibolton336 commented Jul 25, 2023

Resolves #1093

});
return { ...ruleset, rules: mappedRules };
})
.filter((ruleset) => !ruleset.name.startsWith("."));
Copy link
Member Author

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) {
Copy link
Member Author

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
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (55cff2f) 44.09% compared to head (8bc27b5) 44.10%.

❗ Current head 8bc27b5 differs from pull request most recent head c130a05. Consider uploading reports for the commit c130a05 to get more accurate results

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           
Flag Coverage Δ
client ?
server ?
unitests 44.10% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
client/src/app/queries/rulesets.ts 15.00% <0.00%> (ø)

... and 4 files with indirect coverage changes

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

Copy link
Contributor

@gildub gildub left a comment

Choose a reason for hiding this comment

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

The system owned resource is hidden in the Administration -> Custom migration targets page but there is a blank target showing in the Set Targets during Application analysis.

The concern is a succession of blank targets pushing everything down in case when there are several hidden targets:

image

@ibolton336
Copy link
Member Author

ibolton336 commented Jul 26, 2023

The system owned resource is hidden in the Administration -> Custom migration targets page but there is a blank target showing in the Set Targets during Application analysis.

The concern is a succession of blank targets pushing everything down in case when there are several hidden targets:

image

Good catch. The blank targets are filtered in the migration targets page, but not in the wizard. Should be fixed now!

Copy link
Contributor

@gildub gildub left a comment

Choose a reason for hiding this comment

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

LGTM

});
return { ...ruleset, rules: mappedRules };
})
.filter((ruleset) => !ruleset.name.startsWith("."));
Copy link
Member

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.

Copy link
Member Author

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>
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.

Hide RuleSets with names that start with a .
3 participants