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

Wizard: Add services to Review step (HMS-5404) #2806

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

regexowl
Copy link
Collaborator

@regexowl regexowl commented Jan 28, 2025

This adds systemd services expandable to the Review step.

JIRA: HMS-5404

@regexowl
Copy link
Collaborator Author

/jira-epic HMS-5371

@schutzbot schutzbot changed the title Wizard: Add services to Review step Wizard: Add services to Review step (HMS-5404) Jan 28, 2025
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.35%. Comparing base (5cc4791) to head (38166fa).

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2806      +/-   ##
==========================================
+ Coverage   82.31%   82.35%   +0.04%     
==========================================
  Files         205      205              
  Lines       23004    23058      +54     
  Branches     2258     2267       +9     
==========================================
+ Hits        18935    18989      +54     
  Misses       4042     4042              
  Partials       27       27              
Files with missing lines Coverage Δ
...ents/CreateImageWizard/steps/Review/ReviewStep.tsx 95.43% <100.00%> (+0.24%) ⬆️
...teImageWizard/steps/Review/ReviewStepTextLists.tsx 95.54% <100.00%> (+0.20%) ⬆️

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 5cc4791...38166fa. Read the comment docs.

@regexowl regexowl force-pushed the services-on-review branch 2 times, most recently from 915dc66 to 159a12c Compare February 3, 2025 13:49
@regexowl regexowl marked this pull request as ready for review February 4, 2025 15:22
@@ -447,6 +452,23 @@ const Review = ({ snapshottingEnabled }: { snapshottingEnabled: boolean }) => {
<FirewallList />
</ExpandableSection>
)}
{isServicesStepEnabled && (
Copy link
Contributor

Choose a reason for hiding this comment

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

For firewall, we are checking length of the ports, disabled and enabled services, so that we do not see firewall expandable in case it is both empty. I suggest we do the same here, what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

So instead, can we do something like

Suggested change
{isServicesStepEnabled && (
{isServicesStepEnabled &&
(services.enabled.length > 0 && services.disabled.length > 0) &&

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Aah, yeah. Forgot 😳 the check is there now! Thanks!

@regexowl regexowl requested a review from avitova February 4, 2025 16:41
@regexowl regexowl force-pushed the services-on-review branch 2 times, most recently from 77d3b72 to 77d160a Compare February 5, 2025 15:05
This adds systemd services expandable to the Review step.
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