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

add is_license_status field to provide validation status #3727

Closed
wants to merge 2 commits into from

Conversation

FuYu3699
Copy link

Description

Added a new field in License object to provide the if a license is valid.

Checklist

  • I made sure to update ./CHANGELOG.yml.
  • I made sure to add any docs changes required for my change (including release notes).
  • My change is adequately tested.
  • I updated CONTRIBUTING.md with any special dev tricks I had to use to work on this code efficiently.
  • Once my PR is ready to have integration tests ran, I posted the PR in #telepresence-dev in the datawire-oss slack so that the "ok to test" label can be applied.

Signed-off-by: Fu Yu <fuyu@Fus-MacBook-Pro.local>
Comment on lines 432 to 433
// is_license_valid indicates whether the license is valid.
bool is_license_valid = 5;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// is_license_valid indicates whether the license is valid.
bool is_license_valid = 5;
bool valid = 5;

This is a field in the structure named "License" so repeating the word "license" in the field name is redundant. Also, since it's a bool, it either is or isn't, which makes the "is" word redundant too.

Based on that, I think the name "valid" is better. This in turn makes the comment "valid indicates whether the license is valid" somewhat redundant too.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks @thallgren, I renamed it to valid

Signed-off-by: Fu Yu <fuyu@Fus-MacBook-Pro.local>
@FuYu3699 FuYu3699 marked this pull request as ready for review November 21, 2024 10:19
@FuYu3699
Copy link
Author

I need to make this change on top of release/v2.20.3 instead.

@FuYu3699 FuYu3699 closed this Nov 21, 2024
@thallgren thallgren deleted the fuyu/license-status-check branch November 25, 2024 14:45
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