Skip to content

Conversation

khanhnt2
Copy link

Pull Request

Related issue

Cannot pass None value to add_or_update function

What does this PR do?

Replace impl AsRef<str> to &str

PR checklist

Please check if your PR fulfills the following requirements:

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

Thank you so much for contributing to Meilisearch!

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

Hello @khanhnt2
thank for this PR

can you add a test passing None value as primary key for the add_or_update function?

@curquiza curquiza added the enhancement New feature or request label Mar 20, 2024
@khanhnt2
Copy link
Author

khanhnt2 commented Apr 7, 2024

Hi @curquiza , sorry for the late response. I added the test case.

@curquiza curquiza added the breaking-change The related changes are breaking for the users label Apr 15, 2024
@curquiza
Copy link
Member

bors try

meili-bors bot added a commit that referenced this pull request Apr 15, 2024
Copy link
Contributor

meili-bors bot commented Apr 15, 2024

try

Build failed:

Copy link
Member

@irevoire irevoire left a comment

Choose a reason for hiding this comment

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

bors merge

meili-bors bot added a commit that referenced this pull request Apr 15, 2024
557: fix(indexes): allow None `primary_key` in `add_or_update` function r=irevoire a=khanhnt2

# Pull Request

## Related issue
Cannot pass `None` value to `add_or_update` function

## What does this PR do?
Replace `impl AsRef<str>` to `&str`

## 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!


Co-authored-by: Nguyen Trung Khanh <[email protected]>
Co-authored-by: Khanh Nguyen <[email protected]>
Co-authored-by: Clémentine U. - curqui <[email protected]>
Co-authored-by: Tamo <[email protected]>
@irevoire irevoire requested a review from curquiza April 15, 2024 14:49
Copy link
Contributor

meili-bors bot commented Apr 15, 2024

This PR was included in a batch that successfully built, but then failed to merge into main. It will not be retried.

Additional information:

{"message":"1 review requesting changes and 1 approving review by reviewers with write access.","documentation_url":"https://docs.github.com/articles/about-protected-branches"}

Copy link
Member

@irevoire irevoire left a comment

Choose a reason for hiding this comment

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

bors merge

meili-bors bot added a commit that referenced this pull request Apr 15, 2024
557: fix(indexes): allow None `primary_key` in `add_or_update` function r=irevoire a=khanhnt2

# Pull Request

## Related issue
Cannot pass `None` value to `add_or_update` function

## What does this PR do?
Replace `impl AsRef<str>` to `&str`

## 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!


Co-authored-by: Nguyen Trung Khanh <[email protected]>
Co-authored-by: Khanh Nguyen <[email protected]>
Co-authored-by: Clémentine U. - curqui <[email protected]>
Co-authored-by: Tamo <[email protected]>
Copy link
Contributor

meili-bors bot commented Apr 15, 2024

This PR was included in a batch that successfully built, but then failed to merge into main. It will not be retried.

Additional information:

{"message":"1 review requesting changes and 1 approving review by reviewers with write access.","documentation_url":"https://docs.github.com/articles/about-protected-branches"}

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

bors merge

pliiiiiiz

Copy link
Contributor

meili-bors bot commented Apr 15, 2024

@khanhnt2 khanhnt2 closed this Apr 15, 2024
@meili-bors meili-bors bot merged commit cb32534 into meilisearch:main Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change The related changes are breaking for the users enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants