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
Support filtering provisioned services on overview #1444
Support filtering provisioned services on overview #1444
Conversation
spadgett
commented
Apr 19, 2017
var labelSelector = LabelFilter.getLabelSelector(); | ||
if (labelSelector.isEmpty()) { | ||
return items; | ||
} |
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.
@jwforres LabelSelector.select()
rejects objects with no labels even when there are no active filters. Is this a label selector bug?
Not a bug, it's an option when you instantiate the LabelSelector. There are
times when we want empty to select all (when being used as a filter) and
times where we want empty to select nothing. Conceptually this would be
like a Service with no selector set wouldn't select any Pods.
…On Apr 19, 2017 8:32 AM, "Sam Padgett" ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In app/scripts/controllers/newOverview.js
<#1444 (comment)>
:
> @@ -301,11 +301,15 @@ function OverviewController($scope,
};
var filterByLabel = function(items) {
- return LabelFilter.getLabelSelector().select(items);
+ var labelSelector = LabelFilter.getLabelSelector();
+ if (labelSelector.isEmpty()) {
+ return items;
+ }
@jwforres <https://github.com/jwforres> The label LabelSelector.select()
rejects objects with no labels even when there are no active filters. Is
this a label selector bug?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1444 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZk7WQeompvW8sirl3nPAUmsyvR76jjks5rxf7igaJpZM4NBnKI>
.
|
e725183
to
68158fa
Compare
Requires kubernetes-ui/label-selector#31 |
68158fa
to
143a0ff
Compare
@jwforres updated |
[merge] |
Evaluated for origin web console merge up to 143a0ff |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1254/) (Base Commit: 75d1c56) |
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.
Touch behind on this since its already merging but looks good to me :)