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

NAS-131308 / 25.04 / First time accessing a Minio deployment the webui button launches portal is 0.0.0.0:30001 #10769

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

AlexKarpov98
Copy link
Contributor

@AlexKarpov98 AlexKarpov98 commented Sep 30, 2024

Testing: see ticket.
I updated it for App Info card and Workloads card (I see there is as well 0.0.0.0 host ip)

Result (instead of 0.0.0.0 we have localhost locally):

Screen.Recording.2024-09-30.at.15.28.03.mov

@AlexKarpov98 AlexKarpov98 self-assigned this Sep 30, 2024
@AlexKarpov98 AlexKarpov98 requested a review from a team as a code owner September 30, 2024 12:19
@AlexKarpov98 AlexKarpov98 requested review from bvasilenko and removed request for a team September 30, 2024 12:19
@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title NAS-131308: First time accessing a Minio deployment the webui button launches portal is 0.0.0.0:30001 NAS-131308 / 25.04 / First time accessing a Minio deployment the webui button launches portal is 0.0.0.0:30001 Sep 30, 2024
Comment on lines 163 to 166
const {
port, pathname, search, hash,
} = portalUrl;
return `${this.window.location.protocol}//${this.window.location.hostname}:${port}${pathname}${search}${hash}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const {
port, pathname, search, hash,
} = portalUrl;
return `${this.window.location.protocol}//${this.window.location.hostname}:${port}${pathname}${search}${hash}`;
portalUrl.hostname = this.window.location.hostname;

Would this work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stavros-k - yeah, it will work, thanks (I'll update the code)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stavros-k - is that OK to update Workloads card as well? (to not see 0.0.0.0 there as well?)

Copy link
Contributor

@stavros-k stavros-k Sep 30, 2024

Choose a reason for hiding this comment

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

Great question!
The 0.0.0.0 in workload cards shows the interface each port is listening on!
And 0.0.0.0 is valid, it means "All interfaces". So we should leave it as is there and only update the portal button!

Copy link
Contributor Author

@AlexKarpov98 AlexKarpov98 Sep 30, 2024

Choose a reason for hiding this comment

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

The code is updated now (removed updated logic from Workloads card)

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.63%. Comparing base (43477fb) to head (1e907b8).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10769   +/-   ##
=======================================
  Coverage   80.63%   80.63%           
=======================================
  Files        1570     1570           
  Lines       51514    51519    +5     
  Branches     5809     5810    +1     
=======================================
+ Hits        41538    41543    +5     
  Misses       9976     9976           
Flag Coverage Δ
80.63% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@bvasilenko bvasilenko left a comment

Choose a reason for hiding this comment

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

Works as expected, and looks good from the code perspective

@bugclerk
Copy link
Contributor

bugclerk commented Oct 2, 2024

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants