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 organization when creating/editing an execution environments #8324

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

nixocio
Copy link
Contributor

@nixocio nixocio commented Oct 5, 2020

Add organization when creating/editing an execution environments.

If one is a system admin the Organization is an optional field. Not
providing an Organization makes the execution environment globally
available.

If one is a org admin the Organization is a required field.

See: #7887

System Admin:

image

Org Admin

image

: () => undefined,
});

const { setFieldValue } = useFormikContext();
Copy link
Member

Choose a reason for hiding this comment

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

You don't need this you can access the functions you need to set the field value via that useStates above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the same piece of code used in other forms, I will keep like that to be consistent. In case we decide to a general change later on. Thanks for your review. Updated the other suggestions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, see comment here related to the useField : #8104

@nixocio nixocio force-pushed the ui_expand_7887 branch 2 times, most recently from 8988079 to 39f878d Compare October 6, 2020 20:47
Copy link
Member

@AlexSCorey AlexSCorey left a comment

Choose a reason for hiding this comment

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

You addressed all of my concerns. Looks good Thanks!

Copy link
Contributor

@dsesami dsesami left a comment

Choose a reason for hiding this comment

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

looks solid. rebase the org list PR after this merges, thanks!

@softwarefactory-project-zuul
Copy link
Contributor

Unable to freeze job graph: Job awx-push-new-schema depends on awx-ui which was not run.

@dsesami
Copy link
Contributor

dsesami commented Oct 12, 2020

regate

@softwarefactory-project-zuul
Copy link
Contributor

Unable to freeze job graph: Job awx-push-new-schema depends on awx-ui which was not run.

Add organization as part of creating/editing an execution environments

If one is a `system admin` the Organization is an optional field. Not
providing an Organization makes the execution environment globally
available.

If one is a `org admin` the Organization is a required field.

See: ansible#7887
@nixocio
Copy link
Contributor Author

nixocio commented Oct 12, 2020

PR rebased @dsesami.

@nixocio
Copy link
Contributor Author

nixocio commented Oct 12, 2020

recheck

@dsesami dsesami merged commit f4105a3 into ansible:execution-environments Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants