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

Changed SearchRequest initializations to builder in code-sample #567

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

PotatoDoge
Copy link

@PotatoDoge PotatoDoge commented Mar 2, 2023

Changed SearchRequest initializations to builder insted of a constructor

  • Changed code-samples.meilisearch.yaml file, SearchRequestTest file and SearchTest file

Pull Request

Related issue

Fixes #<560

What does this PR do?

  • Changed SearchRequest initializations to builder insted of a constructor

PR checklist

Please check if your PR fulfills the following requirements:

  • [x ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • [ x] Have you read the contributing guidelines?
  • [ x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

…uctor

- Changed code-samples.meilisearch.yaml file, SearchRequestTest file and SearchTest file
@alallema alallema linked an issue Mar 6, 2023 that may be closed by this pull request
@alallema alallema added the maintenance Anything related to maintenance (CI, tests, refactoring...) label Mar 6, 2023
Copy link
Contributor

@alallema alallema left a comment

Choose a reason for hiding this comment

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

Thanks @PotatoDoge for this PR ❤️
I left a few comments. Also, we could change the SearchTest.java file but not the src/test/java/com/meilisearch/sdk/SearchRequestTest.java because we need to check if the initialization of SearchRequest work with both way with the builder and with the constructor.
Don't forget to run bash ./scripts/lint.sh for fixing the linter issues 😊

.code-samples.meilisearch.yaml Outdated Show resolved Hide resolved
.code-samples.meilisearch.yaml Outdated Show resolved Hide resolved
…ructor

- Changed code-samples.meilisearch.yaml file, and SearchTest file
- Fixed linting issues
@PotatoDoge
Copy link
Author

PotatoDoge commented Mar 6, 2023

@alallema thank you for the feedback! I believe that I fixed the issues. I'll wait for you to check it. :)
(Also, I changed the SearchRequestTest file to how it originally was )

Copy link
Contributor

@alallema alallema left a comment

Choose a reason for hiding this comment

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

Perfect ✨ Thank you @PotatoDoge
LGTM!

@alallema alallema changed the title - Changed SearchRequest initializations to builder insted of a constr… Changed SearchRequest initializations to builder in code-sample Mar 6, 2023
@alallema
Copy link
Contributor

alallema commented Mar 6, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented Mar 6, 2023

Build succeeded:

  • integration-and-unit-tests
  • linter

@bors bors bot merged commit df13576 into meilisearch:main Mar 6, 2023
@alallema alallema added enhancement New feature or request skip-changelog The PR will not appear in the release changelogs and removed enhancement New feature or request labels May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Anything related to maintenance (CI, tests, refactoring...) skip-changelog The PR will not appear in the release changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apply SearchRequest builder changes to code-sample
2 participants