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

Add feature to edit instance group #7864

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

nixocio
Copy link
Contributor

@nixocio nixocio commented Aug 10, 2020

Add feature to edit instance group.

See: #7767

image

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@dsesami dsesami self-requested a review August 10, 2020 20:42
@unlikelyzero unlikelyzero added state:needs_test type:feature prioritized on a feature board labels Aug 10, 2020
type="text"
validate={required(null, i18n)}
isRequired
isDisabled={instanceGroupNameField.value === 'tower'}
Copy link
Contributor

@jakemcdermott jakemcdermott Aug 11, 2020

Choose a reason for hiding this comment

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

In addition to the validation ranges you've provided, please add a min & max value for the inputs - They're supported and improve the UX when setting these values with a mouse wheel or keyboard arrows:

Screenshot from 2020-08-11 09-33-22

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review @jakemcdermott. Updating now.

@@ -1,6 +1,6 @@
import React from 'react';
Copy link
Contributor

@jakemcdermott jakemcdermott Aug 11, 2020

Choose a reason for hiding this comment

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

@nixocio Since IGs don't have an add subscreen, this component isn't actually shared. I think we should move this file to InstanceGroup/InstanceGroupEdit and delete the shared folder (for now, that is. Container Groups may actually have a shared form but I presume you'll do that in a different PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

InstanceGroupForm is shared between the InstanceGroupAdd and InstanceGroupEdit even in this case, is your suggestion still valid? I was trying to follow the same pattern that already in code basis. But it seems to be valid just in cases we have a shared subscreen. I will evaluate this change.

Copy link
Contributor

@jakemcdermott jakemcdermott Aug 11, 2020

Choose a reason for hiding this comment

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

@nixocio Whoops, you're right. IGs do have an add form. Never mind! It is fine as is.

Add feature to edit instance group.

See: ansible#7767
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit a2a8c47 into ansible:devel Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature prioritized on a feature board
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants