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

ROX-12152: added field for aws account number in central instance creation modal #31

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

sachaudh
Copy link
Collaborator

@sachaudh sachaudh commented Aug 29, 2022

Description

This PR adds an extra form field in the instance creation form for the AWS account number. The form field will use a select component that let's you choose among your different cloud accounts.

Note: This PR is blocked until stackrox/acs-fleet-manager#517 is merged

Checklist (Definition of Done)

  • [ ] Unit and integration tests added
  • [ ] Added test description under Test manual
  • [ ] Documentation added if necessary
  • CI and all relevant tests are passing
  • Add the ticket number to the PR title if available, i.e. ROX-12345: ...
  • [ ] Discussed security and business related topics privately. Will move any security and business related topics that arise to private communication channel.

Test manual

No Tests

# To run tests locally run:
npm run test

@sachaudh sachaudh force-pushed the saif/aws-account-number branch from 8ee5092 to f66825a Compare August 30, 2022 19:51
@sachaudh sachaudh force-pushed the main branch 11 times, most recently from 3f0cf94 to 413d5a9 Compare September 10, 2022 01:24
@sachaudh sachaudh force-pushed the main branch 4 times, most recently from 142ba65 to 3a36164 Compare October 6, 2022 21:49
@sachaudh sachaudh force-pushed the saif/aws-account-number branch 3 times, most recently from 3066b49 to 8802d1a Compare October 26, 2022 18:05
@sachaudh sachaudh changed the title feat: added field for aws account number in central instance creation modal ROX-12152: added field for aws account number in central instance creation modal Oct 26, 2022
@sachaudh sachaudh requested a review from a team October 26, 2022 18:10
Copy link
Collaborator

@vjwilson vjwilson left a comment

Choose a reason for hiding this comment

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

One question about eating any error when retrieving AWS accounts.

More important code style question about updating the single-line text input change handler.

Comment on lines +8 to +9
const { data } = await apiRequest.get(`/api/rhacs/v1/cloud_accounts`);
return data;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like we're not leveraging the ability to see any error, or loading state.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea that's true. I can resolve that separately

@sachaudh sachaudh force-pushed the saif/aws-account-number branch from 787adae to 22859c1 Compare October 31, 2022 17:08
@sachaudh sachaudh merged commit 9707c64 into main Oct 31, 2022
@sachaudh sachaudh deleted the saif/aws-account-number branch October 31, 2022 17:12
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.

2 participants