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

chore(cli): print new component version available message #1530

Merged
merged 11 commits into from
Feb 15, 2024

Conversation

PengyuanZhao
Copy link
Contributor

@PengyuanZhao PengyuanZhao commented Feb 6, 2024

Summary

  • Use the existing func dailyComponentUpdateAvailable to check if the component version was checked 1 day ago.
  • If yes, print message if component installed version is less than the latest version on the ApiInfo

How did you test this change?

Screenshot 2024-02-12 at 5 55 43 PM

Issue

@PengyuanZhao PengyuanZhao requested a review from a team as a code owner February 6, 2024 16:05
@PengyuanZhao PengyuanZhao changed the base branch from main to pengyuan/GROW-2481 February 6, 2024 16:05
Copy link
Contributor

@jon-stewart jon-stewart left a comment

Choose a reason for hiding this comment

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

simple lol

Copy link
Contributor

@afiune afiune left a comment

Choose a reason for hiding this comment

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

Are we going to print this message on EVERY execution? If so, this is a no-no, it will be too invasive for the customer.

We need to do this message only once a day. Just like our daily version check. And if it is possible, I would recommend printing this message at the end of the command execution, not at the beginning, otherwise it gets lost.

cli/cmd/component.go Outdated Show resolved Hide resolved
@PengyuanZhao
Copy link
Contributor Author

PengyuanZhao commented Feb 12, 2024

Updated to only print at the end, once a day, leveraging the existing function.

Copy link
Contributor

@afiune afiune left a comment

Choose a reason for hiding this comment

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

Much better, still I wish we could write some tests. Not a blocker, for now.

Base automatically changed from pengyuan/GROW-2481 to main February 14, 2024 21:42
@PengyuanZhao PengyuanZhao merged commit d12d9cc into main Feb 15, 2024
5 checks passed
@PengyuanZhao PengyuanZhao deleted the pengyuan/GROW-2589 branch February 15, 2024 18:08
@lacework-releng lacework-releng mentioned this pull request Feb 20, 2024
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.

3 participants