Skip to content

cockpit: Show registration for image mode (HMS-10093)#4024

Closed
regexowl wants to merge 1 commit intoosbuild:mainfrom
regexowl:fix-hidden-registration
Closed

cockpit: Show registration for image mode (HMS-10093)#4024
regexowl wants to merge 1 commit intoosbuild:mainfrom
regexowl:fix-hidden-registration

Conversation

@regexowl
Copy link
Copy Markdown
Collaborator

@regexowl regexowl commented Jan 23, 2026

Since distribution can be undefined, it doesn't pass the isRhel check and the step with its review was incorrectly hidden when in image mode.

JIRA: HMS-10093

Since distribution can be undefined, it doesn't pass the `isRhel` check and the step with its review was incorrectly hidden when in image mode.
@regexowl
Copy link
Copy Markdown
Collaborator Author

/jira-epic HMS-9973

@schutzbot schutzbot changed the title cockpit: Show registration for image mode cockpit: Show registration for image mode (HMS-10093) Jan 23, 2026
@regexowl regexowl marked this pull request as ready for review January 23, 2026 08:43
@regexowl regexowl requested a review from a team as a code owner January 23, 2026 08:43
@regexowl regexowl requested review from kingsleyzissou, mgold1234 and tkoscieln and removed request for a team January 23, 2026 08:43
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 23, 2026

Warning

Rate limit exceeded

@regexowl has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 51 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • The conditions for showing the registration section differ between the wizard step (isImageMode) and the review step (`blueprintMode === 'image'); consider centralizing this logic in a shared helper or using a single source of truth for 'image mode' to avoid future divergence.
  • Given distribution can be undefined, it may be clearer to make that explicit in the isRhel check or wrapper (e.g., a shouldShowRegistration(distribution, mode) helper) rather than relying on the falsy behavior of isRhel(distribution) in multiple places.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The conditions for showing the registration section differ between the wizard step (`isImageMode`) and the review step (`blueprintMode === 'image'); consider centralizing this logic in a shared helper or using a single source of truth for 'image mode' to avoid future divergence.
- Given `distribution` can be undefined, it may be clearer to make that explicit in the `isRhel` check or wrapper (e.g., a `shouldShowRegistration(distribution, mode)` helper) rather than relying on the falsy behavior of `isRhel(distribution)` in multiple places.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.78%. Comparing base (fe303d2) to head (f2db06c).
⚠️ Report is 55 commits behind head on main.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4024   +/-   ##
=======================================
  Coverage   73.77%   73.78%           
=======================================
  Files         207      207           
  Lines        7729     7731    +2     
  Branches     2651     2652    +1     
=======================================
+ Hits         5702     5704    +2     
  Misses       1775     1775           
  Partials      252      252           
Files with missing lines Coverage Δ
...Components/CreateImageWizard/CreateImageWizard.tsx 90.81% <100.00%> (+0.04%) ⬆️
...ents/CreateImageWizard/steps/Review/ReviewStep.tsx 88.15% <100.00%> (+0.07%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe303d2...f2db06c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Collaborator

@kingsleyzissou kingsleyzissou left a comment

Choose a reason for hiding this comment

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

I need to look into this a bit, I'm not 100% sure we support registration for bootc... and if we do, I'm not 100% sure yet if we propagated this all the way into image-builder-cli and bootc-image-builder

@regexowl
Copy link
Copy Markdown
Collaborator Author

I need to look into this a bit, I'm not 100% sure we support registration for bootc... and if we do, I'm not 100% sure yet if we propagated this all the way into image-builder-cli and bootc-image-builder

Got it, I was just blindly following the customization list in https://issues.redhat.com/browse/HMS-10021, didn't check if the registration really works 😅

If this stays hidden, there will be one more crash when trying to visit FSC step in edit mode. That one was solved by @ochosi on PF side patternfly/patternfly-react#12166, we're waiting for release so the dep can be bumped.

@regexowl
Copy link
Copy Markdown
Collaborator Author

regexowl commented Feb 4, 2026

#4044 changes the logic of filtering steps. If we ever need this, we should implement it in an up-to-date way. Closing this one.

@regexowl regexowl closed this Feb 4, 2026
@regexowl regexowl deleted the fix-hidden-registration branch February 4, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants