Skip to content

instance_version_warning - #81

Merged
tsmith023 merged 4 commits into
weaviate:mainfrom
Abhijithchintu:instance_version_warning
Aug 8, 2023
Merged

tsmith023 merged 4 commits into
weaviate:mainfrom
Abhijithchintu:instance_version_warning

Conversation

@Abhijithchintu

Copy link
Copy Markdown
Contributor

No description provided.

@weaviate-git-bot

Copy link
Copy Markdown

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

@Abhijithchintu

Copy link
Copy Markdown
Contributor Author

I agree to CLA

@tsmith023 tsmith023 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the contribution and for developing it inline with the established style of the codebase! There's only one major comment on the isValidWeaviateVersion function otherwise it looks good to me 😁

P.S. The CI failed due to linting errors from eslint. Sadly, we don't have pre-commit setup on this repository yet so you have to do this manually on your machine. The commands to run the linter are npm run lint and npm run lint:fix, which can be found in the package.json file.

Comment thread src/validation/version.ts Resolved
Comment thread src/utils/beaconPath.ts Resolved
Comment thread src/data/path.ts Resolved
@Abhijithchintu

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing and suggesting changes, i have written function and then changed logic again. Hence it contradicted with function name, later i forgot to change function name. Now i have made the changes along with lint fix. Please review the pr again.

Comment thread src/validation/version.ts Resolved

@tsmith023 tsmith023 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for making the changes in response to the code review!

LGTM now 😁

@tsmith023

Copy link
Copy Markdown
Member

@Abhijithchintu, interestingly eslint isn't a fan of my recommendation 😅 I think this:

return major <= 1 && minor < 16 ? false : true;

needs changing to this:

return !(major <= 1 && minor < 16)

Make sure to the run the linter before you push the changes to ensure my suggestion is accepted by it!

@tsmith023
tsmith023 merged commit bef1734 into weaviate:main Aug 8, 2023
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