-
Notifications
You must be signed in to change notification settings - Fork 1
[DC-1804] TDR UI add select billing profile to filtered snapshot create flow #1841
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
Conversation
jade-data-repo-ui
|
||||||||||||||||||||||||||||
| Project |
jade-data-repo-ui
|
| Branch Review |
rj/dc-1804-add-billing-profile-selection
|
| Run status |
|
| Run duration | 02m 42s |
| Commit |
|
| Committer | Rae Johanek |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
15
|
| View all changes introduced in this branch ↗︎ | |
|
holding off on review until this is passing all checks. |
davidangb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one kinda-question inline, giving this a 👍. I don't know how to realistically test this myself, and there's a lot of change here ... trusting your testing of this!
| (profile) => profile.id === dataset.defaultProfileId, | ||
| ); | ||
| this.setState({ | ||
| selectedBillingProfile: defaultBillingProfile || billingProfiles[0], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any chance that billingProfiles is completely empty? Would that cause a problem?
EDIT: I see you have a should handle empty billing profiles array unit test, so I'm going to assume this is ok
|



Addresses
https://broadworkbench.atlassian.net/browse/DC-1804
User requests for ability to change the billing profile for a filtered snapshot
Summary of Changes
Create reusable component for both the full view snapshot modal and the filtered snapshot panel
Wire in billing to the snapshot create calls to the back end
Update logic for disabling the next button (any billing profiles accessible)
Testing
Adds component tests for new BillingProfileDropdown component
Adds component tests for the CreateSnapshotPanel
Manually tested in the UI, videos here: https://drive.google.com/drive/folders/1Bf_Pl3RafPWwyeL3cRQfQ4Y7N2Qtkzxk?usp=sharing