Skip to content

Conversation

@mareklibra
Copy link
Contributor

@mareklibra mareklibra commented Sep 4, 2019

Added:

  • Cluster API address
  • Update channel

Changed:

  • Cluster ID contains link to Cluster Manager
  • OpenShift Cluster Version can pop-up a modal dialog to update cluster

Generic changes:

  • Textual dashboard detail items are rendered with the "co-select-to-copy" to simplify copy&paste user action

detailsCard_01

detailsCard_02

Depends on:

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. component/core Related to console core functionality component/shared Related to console-shared labels Sep 4, 2019
@mareklibra
Copy link
Contributor Author

cc @andybraren , @rawagner

@rawagner
Copy link
Contributor

rawagner commented Sep 4, 2019

You should rebase on top of #2520 which changes DetailsItem api.

@cloudbehl
Copy link
Contributor

@mareklibra @rawagner I think update channel is something that might also be required for the Storage dashboard also.

@shirimordechay @yuvalgalanti ^^

@openshift-ci-robot openshift-ci-robot added component/ceph Related to ceph-storage-plugin component/noobaa Related to noobaa-storage-plugin size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 4, 2019
@mareklibra
Copy link
Contributor Author

Rebased on top of #2520

Copy link
Contributor

Choose a reason for hiding this comment

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

can you remove key prop for all Items ? its actually not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

shouldnt it be error={!!infrastructureError || !getInfrastructureAPIURL(infrastructureData)} ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd add || !getCVChannel(clusterVersionData)

after adding it, can you extract the getCVChannel(clusterVersionData) so we call it just once for error and children ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@andybraren
Copy link
Contributor

Yay! Thank you @mareklibra! 😄

OpenShift Cluster Version is newly a link to Cluster Settings page

Good idea! We have some ideas for 4.3 around initiating upgrades from the dashboard that may affect this, but if this PR is for 4.2 this sounds great. 👍

@mareklibra
Copy link
Contributor Author

Rebased as #2520 is merged now

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 5, 2019
@mareklibra
Copy link
Contributor Author

rebased

@mareklibra mareklibra changed the base branch from master to master-4.3 September 19, 2019 11:34
@mareklibra
Copy link
Contributor Author

Rebased to master-4.3.
@rawagner, can you please have a look?

@rawagner
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 21, 2019
@mareklibra
Copy link
Contributor Author

/assign @kyoto

@kyoto
Copy link
Member

kyoto commented Sep 24, 2019

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 24, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@andybraren
Copy link
Contributor

@andybraren I'm curious about the decision to say "update available" rather than simply saying "update" when an update is available. "Update" (or "update cluster") is an action, whereas "update available" is just informative. Should that be a call to action?

Good call @ncameronbritt, thank you! The nearby Status card's message will include a call-to-action to "Update", so reusing the exact same CTA here makes sense, especially since they both lead to the same modal.

Sorry for so many last minute tweaks @mareklibra 🙂 - could "Update available" be changed to just "Update"?

@mareklibra
Copy link
Contributor Author

@andybraren , @ncameronbritt , the action is renamed now.

@mareklibra
Copy link
Contributor Author

/retest

@mareklibra
Copy link
Contributor Author

Rebased

Copy link
Contributor

@andybraren andybraren left a comment

Choose a reason for hiding this comment

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

Thank you @mareklibra!

@mareklibra
Copy link
Contributor Author

@spadgett , can you please have a look?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: valueClassName

Copy link
Member

Choose a reason for hiding this comment

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

+1 to valueClassName

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@vojtechszocs
Copy link
Contributor

LGTM (with a small nit) #2586 (review)

Not giving lgtm label yet since @spadgett raised some comments as well.

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

Thanks, this looks cleaner to me

Copy link
Member

Choose a reason for hiding this comment

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

Make this a link instead of a button since it's a link :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Member

Choose a reason for hiding this comment

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

+1 to valueClassName

@mareklibra
Copy link
Contributor Author

@spadgett , review comments addressed, can you please have a look?

@vojtechszocs
Copy link
Contributor

LGTM on recent change diff.

@mareklibra
Copy link
Contributor Author

@spadgett , wdyt, please?

Added:
- Cluster API address
- Update channel

Changed:
- Cluster ID contains link to Cluster Manager
- OpenShift Cluster Version can pop-up a modal dialog to update cluster

Generic changes:
- Textual dashboard detail items are rendered with the "co-select-to-copy"
  to simplify copy&paste user action
@mareklibra
Copy link
Contributor Author

Rebased

@mareklibra
Copy link
Contributor Author

/hold cancel
#2817 is merged

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 29, 2019
@rawagner
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 29, 2019
Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andybraren, kyoto, mareklibra, rawagner, spadgett

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

The pull request process is described here

Details 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

@vojtechszocs
Copy link
Contributor

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@jelkosz
Copy link

jelkosz commented Oct 30, 2019

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@spadgett
Copy link
Member

Last test flake should be fixed by #3158

/retest

@openshift-merge-robot openshift-merge-robot merged commit b7ec208 into openshift:master Oct 30, 2019
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. component/ceph Related to ceph-storage-plugin component/core Related to console core functionality component/dashboard Related to dashboard component/dev-console Related to dev-console component/kubevirt Related to kubevirt-plugin component/metal3 Related to metal3-plugin component/noobaa Related to noobaa-storage-plugin component/shared Related to console-shared lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.