Wizard: Add AAP registration (HMS-5663)#3226
Conversation
406ff1a to
3c74a61
Compare
|
So far this cost $3.34 in API tokens. Edit: After more iteration, currently at $6.13. |
ea1e7a8 to
70da31d
Compare
d504707 to
7101907
Compare
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #3226 +/- ##
==========================================
- Coverage 84.32% 83.82% -0.51%
==========================================
Files 198 200 +2
Lines 24018 24386 +368
Branches 2498 2535 +37
==========================================
+ Hits 20254 20442 +188
- Misses 3744 3923 +179
- Partials 20 21 +1
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
| 'image-builder.satellite.enabled' | ||
| ); | ||
|
|
||
| const isAAPRegistrationEnabled = useFlag('image-builder.aap.enabled') || true; // Default to true for now, remove when flag is implemented |
There was a problem hiding this comment.
Making a note here for myself so we don't forget to remove the override.
regexowl
left a comment
There was a problem hiding this comment.
Most of the code looks fine, I've added some comments. The generated request seems to be correct, couldn't test further as I'm not familiar with AAP at all 😳
I presume the on-prem tests are failing because there is no Registration step in on-prem currently.
Also validation doesn't appear when a required field is empty, but I think that's connected to how we handle the pristine state for validated inputs and isn't necessary in the scope of this PR. Since we indicate that the fields are required I'd say it makes sense that the Next button is disabled even without an error message.
src/Components/CreateImageWizard/steps/Registration/AAPRegistration.tsx
Outdated
Show resolved
Hide resolved
src/Components/CreateImageWizard/steps/Registration/AAPRegistration.tsx
Outdated
Show resolved
Hide resolved
This was my fault. Fix here: osbuild/image-builder-crc#1606 |
Yeah, we should probably fix the tests to account for this |
|
This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days. |
regexowl
left a comment
There was a problem hiding this comment.
Thank you, this is looking really good! Added a few small comments and nitpicks, but overall works nicely ✨
src/Components/CreateImageWizard/steps/AAP/components/AAPRegistration.tsx
Outdated
Show resolved
Hide resolved
src/Components/CreateImageWizard/steps/AAP/components/AAPRegistration.tsx
Outdated
Show resolved
Hide resolved
src/test/Components/CreateImageWizard/steps/Oscap/Compliance.test.tsx
Outdated
Show resolved
Hide resolved
src/Components/CreateImageWizard/steps/AAP/components/AAPRegistration.tsx
Show resolved
Hide resolved
9f91c76 to
d83e39f
Compare
68c4fa1 to
41d3b04
Compare
0f83dcd to
3f00c08
Compare
kingsleyzissou
left a comment
There was a problem hiding this comment.
This is looking great! Thanks for adding some playwright tests too. I just have some minor comments inline.
69f7160 to
56db2e9
Compare
cfd34e9 to
f12cc06
Compare



Validation is very rudimentary but present.
Import/export are todo.
Review carefully, some code AI generated.