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

Fixes #919 - isNotRhelHost regex too restrictive #920

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

Thorben-D
Copy link
Contributor

This PR changes the regex used in the isNotRhelHost function, which was introduced in #911.
The regex now accepts variations of RedHat, RHEL and RHCOS as valid.

Additionally, the wrong parameter was passed to the function in InsightsTotalRiskChartWrapper.

CC @chris1984

@chris1984 chris1984 self-assigned this Oct 30, 2024
@chris1984 chris1984 added the bug Something isn't working label Oct 30, 2024
Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

ACK, works fine, thanks @Thorben-D I left one comment:

Ubuntu not showing the insights tab:
ubuntu-rhcloud

RHEL 8 showing the insights tab:
rhel8-rhcloud

RHEL 9 showing the insights tab:
rhel9-rhcloud

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

@Thorben-D one comment and it should be good to go. Maria has some helpful content to get the JS test to pass.

- Changed regex to be more wide-ranging
- Fixed a bug in InsightsTotalRiskChartWrapper
where the wrong parameter was passed to isNotRhelHost
@Thorben-D
Copy link
Contributor Author

@chris1984 Sorry, it was a public holiday and I just managed to check my mail this evening.
I made some changes to the JS code, which fixed the pipeline!

@chris1984
Copy link
Member

@Thorben-D Awesome, thanks for the fix :) Will get it merged

@chris1984 chris1984 merged commit 3b7800f into theforeman:develop Nov 4, 2024
20 checks passed
@Thorben-D Thorben-D deleted the improve_insights_regex branch November 4, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants