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

Agent version warning #1259

Merged
merged 10 commits into from
Mar 16, 2023
Merged

Agent version warning #1259

merged 10 commits into from
Mar 16, 2023

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Mar 14, 2023

Description

Include incompatible agent version warning in hosts list and detail views. It includes a new semver library to do the comparison in the frontend.

agent_version_warning

PD: The usage of the tooltip is super limited right now. We should consider using a well known library for this, like: https://github.com/ReactTooltip/react-tooltip

Otherwise the current component usage doesn't give much space.

PD2: Story book doesn't work in this current main branch. So manual changes must be done. The fix is already done in the new-checks-ui branch though

How was this tested?

Unit tests and storybook stories added

@arbulu89 arbulu89 added the enhancement New feature or request label Mar 14, 2023
@arbulu89 arbulu89 requested a review from jagabomb March 14, 2023 14:23
@arbulu89 arbulu89 marked this pull request as ready for review March 14, 2023 14:26
@abravosuse
Copy link
Contributor

Super cool.

Copy link
Contributor

@rtorrero rtorrero left a comment

Choose a reason for hiding this comment

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

Minor nitpicking, nice to see that we are already using storybook already 👍

assets/js/components/HostDetails/HostDetails.jsx Outdated Show resolved Hide resolved
assets/js/components/HostDetails/HostDetails.jsx Outdated Show resolved Hide resolved
Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

Some changes required then we are good to merge

assets/js/components/HostDetails/HostDetails.jsx Outdated Show resolved Hide resolved
assets/js/components/HostDetails/HostDetails.jsx Outdated Show resolved Hide resolved
assets/js/components/Pill/Pill.stories.jsx Show resolved Hide resolved
Copy link
Contributor

@jagabomb jagabomb left a comment

Choose a reason for hiding this comment

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

Awesome!

Copy link
Member

@EMaksy EMaksy left a comment

Choose a reason for hiding this comment

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

Wow nice job, besides the comments from the others nothing to add :D
LGTM!

@arbulu89 arbulu89 requested a review from dottorblaster March 16, 2023 07:47
@arbulu89 arbulu89 force-pushed the agent-version-warning branch from f206669 to 5bbd532 Compare March 16, 2023 07:51
@arbulu89 arbulu89 force-pushed the agent-version-warning branch from 5bbd532 to 93443cf Compare March 16, 2023 07:52
Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

LGTM

@arbulu89 arbulu89 merged commit 03c28eb into main Mar 16, 2023
@arbulu89 arbulu89 deleted the agent-version-warning branch March 16, 2023 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

8 participants