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

Bug 1870636: Add ability to select unassigned as application filter in topology #6343

Merged

Conversation

jeff-phillips-18
Copy link
Member

@jeff-phillips-18 jeff-phillips-18 commented Aug 17, 2020

Fixes
https://issues.redhat.com/browse/ODC-4447

Description
Add the Unassigned group to the list of filters for application groupings.

Screenshots
image

image

image

image

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

/kind bug

/cc @bgliwa01

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Aug 17, 2020
@openshift-ci-robot openshift-ci-robot added the component/dev-console Related to dev-console label Aug 17, 2020
@christianvogt
Copy link
Contributor

@jeff-phillips-18 import from GIT workflow still creates resources in an application instead of being unassigned.

@jeff-phillips-18
Copy link
Member Author

jeff-phillips-18 commented Aug 17, 2020

@christianvogt Yeah. This is to add the ability to filter by Unassigned in the application drop down in the topology view.

I see. If unassigned is selected, it should create unassigned resources, thanks.

@bgliwa01
Copy link

Please change 'Unassigned' to be 'unassigned' in the dropdown, as well as the other locations we discussed.

@jeff-phillips-18
Copy link
Member Author

jeff-phillips-18 commented Aug 18, 2020

@christianvogt Resources are now created as unassigned if the unassigned filter is set.

@bgliwa01 Changed Unassigned to unassigned in the dropdown as well as in the application selector (and help text) in the create flows.

Updated screenshots above.

Copy link

@parvathyvr parvathyvr left a comment

Choose a reason for hiding this comment

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

Hi @jeff-phillips-18 there are 2 points to change:

  1. As per https://issues.redhat.com/browse/DTUX-84, we should have 'unassigned' after 'all applications' in the Applications dropdown in the secondary masthead.
  2. Also in the General section of the forms,in the Application dropdown we should have the unassigned only once above the separator along with create application. We need not show it again in the application names after the separator.

@jeff-phillips-18
Copy link
Member Author

@parvathyvr I have made those changes, updated the screenshots above

@rohitkrai03
Copy link
Contributor

/assign

Copy link
Contributor

@rohitkrai03 rohitkrai03 left a comment

Choose a reason for hiding this comment

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

@jeff-phillips-18 Even if i go to git import form with application selected as unassigned, the app gets created in application name context. After digging into the code it seems this is happening due to GitSection using duplicate/wrong constant UNASSIGNED_KEY instead of UNASSIGNED_APPLICATIONS_KEY.

Peek 2020-08-19 19-32

@jeff-phillips-18 jeff-phillips-18 changed the title Add ability to select unassigned as application filter in topology Bug 1870636: Add ability to select unassigned as application filter in topology Aug 20, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Aug 20, 2020
@openshift-ci-robot
Copy link
Contributor

@jeff-phillips-18: This pull request references Bugzilla bug 1870636, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1870636: Add ability to select unassigned as application filter in topology

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jeff-phillips-18
Copy link
Member Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot removed the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Aug 20, 2020
@openshift-ci-robot
Copy link
Contributor

@jeff-phillips-18: This pull request references Bugzilla bug 1870636, which is invalid:

  • expected the bug to target the "4.6.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Aug 20, 2020
@jeff-phillips-18
Copy link
Member Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. labels Aug 20, 2020
@openshift-ci-robot
Copy link
Contributor

@jeff-phillips-18: This pull request references Bugzilla bug 1870636, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Aug 20, 2020
@jeff-phillips-18
Copy link
Member Author

@christianvogt Thanks. Fixed.

@jerolimov
Copy link
Member

jerolimov commented Aug 24, 2020

@jeff-phillips-18 When selecting Topology from the sidebar the application dropdown shows the right entries:

image

But when I'm already on the Topology graph and refresh the browser (with cmd-r or F5 or when entering the URL and press enter again), the application filter menu keeps empty also when the graph shows some applications:

image

When selecting another navigation entry and Topology again it works fine again.

edit: I noticed now that this bug already exist on the master. So this is not caused by your changes. Everything else lgtm. Should I create a new ticket for this finding Jeff?

Btw: Is it possible to show entry only if there is any node without assigned application?

@jeff-phillips-18
Copy link
Member Author

I don't believe we intended the application filter to persist thru sessions as it is not part of the URL. That would be a request for change.

@jeff-phillips-18
Copy link
Member Author

/retest

@jerolimov
Copy link
Member

jerolimov commented Aug 24, 2020

I don't believe we intended the application filter to persist thru sessions as it is not part of the URL. That would be a request for change.

Oh, I do not expected that the selection was saved. But sometimes the dropdown was not filled and I could not can select the app or your new "unassigned" (see 2nd screenshot above). On the new cluster it works now. I expect that there is an race condition that the application dropdown select was not updated always. As written in my "edit" note above this happen also on master so this does not block this issue here. I will keep an eye on this.

@jeff-phillips-18
Copy link
Member Author

Btw: Is it possible to show entry only if there is any node without assigned application?

The only way to do this would be to load up the resources in the same manner as the topology view. Currently we retrieve all resources that could have the part-of label but not all of those resources are shown in the view or are considered to be belonging to an application or not. For instance pods and secrets.

Copy link
Member

@jerolimov jerolimov left a comment

Choose a reason for hiding this comment

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

/lgtm
/assign @rohitkrai03

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2020
@jerolimov jerolimov removed their assignment Aug 25, 2020
@rohitkrai03
Copy link
Contributor

@jeff-phillips-18 Got merge conflicts on this one.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2020
@jeff-phillips-18
Copy link
Member Author

@jerolimov Rebased, no other changes.

@jerolimov
Copy link
Member

jerolimov commented Aug 25, 2020

@jeff-phillips-18 Unfortunately I found another small issue while re-testing, sorry.

When I right click on a Deployment with an app name and select Edit Application Grouping and select "unassigned" in the modal (which was Unassigned before, but I think thats ok), the app name was changed to this name instead of 'none' app name.

@jeff-phillips-18
Copy link
Member Author

which was Unassigned before, but I think thats ok

UX asked for it to be lowercased consistently during discussions about #6343 (comment)

@jerolimov
Copy link
Member

Could verify "Edit Application Grouping" fix

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2020
@jeff-phillips-18
Copy link
Member Author

/retest

Copy link
Contributor

@rohitkrai03 rohitkrai03 left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jeff-phillips-18, jerolimov, rohitkrai03

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 26, 2020
@openshift-merge-robot openshift-merge-robot merged commit 0e6a084 into openshift:master Aug 26, 2020
@openshift-ci-robot
Copy link
Contributor

@jeff-phillips-18: All pull requests linked via external trackers have merged:

Bugzilla bug 1870636 has been moved to the MODIFIED state.

In response to this:

Bug 1870636: Add ability to select unassigned as application filter in topology

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@spadgett spadgett added this to the v4.6 milestone Aug 26, 2020
@jeff-phillips-18 jeff-phillips-18 deleted the unassigned-filter branch December 2, 2020 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/dev-console Related to dev-console component/shared Related to console-shared kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants