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

UI: provision volumes with labels #1979

Merged
merged 8 commits into from
Nov 5, 2019

Conversation

carlito-scality
Copy link
Contributor

@carlito-scality carlito-scality commented Oct 31, 2019

Component:UI

Context:

  • After bootstrap, a user must create Volumes to provide storage for Prometheus and AlertManager. We deploy a StorageClass for this, but the PersistentVolumeClaims for these services also use a labelSelector to pick the 'right' PersistentVolume.

Summary:

Acceptance criteria:
image

Screenshot 2019-10-31 at 14 17 59


Closes: #1891 #1977

@carlito-scality carlito-scality added moonshot topic:ui UI-related issues complexity:easy Something that requires less than a day to fix labels Oct 31, 2019
@carlito-scality carlito-scality self-assigned this Oct 31, 2019
@bert-e
Copy link
Contributor

bert-e commented Oct 31, 2019

Hello carlito-scality,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Status report is not available.

@bert-e
Copy link
Contributor

bert-e commented Oct 31, 2019

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

@github-actions github-actions bot added the kind:dependencies Pull requests that update a dependency file label Oct 31, 2019
@carlito-scality carlito-scality marked this pull request as ready for review October 31, 2019 15:46
@carlito-scality carlito-scality requested a review from a team as a code owner October 31, 2019 15:46
@@ -124,5 +123,10 @@
"add_solution_to_environment": "Ajout d'une solution à l'environnement {environment}",
"version_env": "Versions",
"add_solution": "Ajout de la solution",
"advanced_monitoring": "Supervision Avancée"
"advanced_monitoring": "Supervision Avancée",
Copy link
Contributor

Choose a reason for hiding this comment

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

Supervision avancée (TBC, but I don't thing the French rules require to capitalize every word in a title, unlike the English ones)

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, whatever the actual rules are, consistency with other messages should prevail.

- Display labels list
- Imrpove Breadcrumb by adding Volume label
Ref: #1891
- update docs to help users to provision labels
Ref: #1891
@carlito-scality carlito-scality force-pushed the feature/ui-provision-volumes-with-labels branch from a9f69e5 to 7d1c28d Compare November 4, 2019 10:55
Copy link
Contributor

@gdemonet gdemonet left a comment

Choose a reason for hiding this comment

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

I'll let @ChengYanJin review the actual React code ;)

"advanced_monitoring": "Advanced Monitoring",
"add": "Add",
"labels": "Labels",
"enter_label_name": "Enter label name…",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the ellipsis?

@@ -124,5 +123,10 @@
"add_solution_to_environment": "Ajout d'une solution à l'environnement {environment}",
"version_env": "Versions",
"add_solution": "Ajout de la solution",
"advanced_monitoring": "Supervision Avancée"
"advanced_monitoring": "Supervision Avancée",
Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, whatever the actual rules are, consistency with other messages should prevail.

Comment on lines 51 to 52
#. If you click the new volume listed in the **Volume list**,
you can get more information about this volume
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be rephrased: If you click on any volume in the Volume list, you will see more information in the Volume detail view:

@bert-e
Copy link
Contributor

bert-e commented Nov 4, 2019

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

The following reviewers are expecting changes from the author, or must review again:

@carlito-scality carlito-scality force-pushed the feature/ui-provision-volumes-with-labels branch from b16143a to aa2548c Compare November 4, 2019 17:27
Copy link
Contributor

@ChengYanJin ChengYanJin left a comment

Choose a reason for hiding this comment

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

LGTM!
There are two UX maybe we can improve later:

  1. In CreateVolume page, we should check and warn users just in case they fill the label input but forget to click on Add button.
  2. In VolumeInformation page the size of Label Table should change according to how many lines do we have.

@carlito-scality
Copy link
Contributor Author

@bert-e approve

@bert-e
Copy link
Contributor

bert-e commented Nov 5, 2019

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • one peer

Peer approvals must include at least 1 approval from the following list:

The following reviewers are expecting changes from the author, or must review again:

The following options are set: approve

@bert-e
Copy link
Contributor

bert-e commented Nov 5, 2019

In the queue

The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.

The changeset will be merged in:

  • ✔️ development/2.4

The following branches will NOT be impacted:

  • development/1.0
  • development/1.1
  • development/1.2
  • development/1.3
  • development/2.0
  • development/2.1
  • development/2.2
  • development/2.3

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.

IMPORTANT

Please do not attempt to modify this pull request.

  • Any commit you add on the source branch will trigger a new cycle after the
    current queue is merged.
  • Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.

The following options are set: approve

@bert-e
Copy link
Contributor

bert-e commented Nov 5, 2019

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/2.4

The following branches have NOT changed:

  • development/1.0
  • development/1.1
  • development/1.2
  • development/1.3
  • development/2.0
  • development/2.1
  • development/2.2
  • development/2.3

Please check the status of the associated issue None.

Goodbye carlito-scality.

@bert-e bert-e merged commit aa2548c into development/2.4 Nov 5, 2019
@bert-e bert-e deleted the feature/ui-provision-volumes-with-labels branch November 5, 2019 15:59
@@ -212,6 +212,7 @@ export function* createVolumes({ payload }) {
kind: 'Volume',
metadata: {
name: newVolume.name,
labels: newVolume.labels,
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh no....... I missed this, labels were not supposed to go there, but in spec.template.metadata.labels :(

Copy link
Contributor

Choose a reason for hiding this comment

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

Ha indeed, otherwise we're labeling the volume itself and not the underlying PV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity:easy Something that requires less than a day to fix kind:dependencies Pull requests that update a dependency file topic:ui UI-related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI: Provision volumes with labels (in the PV template)
5 participants