Skip to content

Conversation

@karlomikus
Copy link
Contributor

Pull Request

Related issue

Fixes #238

What does this PR do?

  • Implements methods for batch adding of documents in csv and ndjson format

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?

Notes

This is using preg_split and implode to chunk strings by newline. Let me know if there is a better way to do this.

If this is fine I can implement the rest of the methods from the issue.

@brunoocasali
Copy link
Member

Hello @karlomikus,
Thank you very much for contributing to Meilisearch ❤️.
However, I am not available on the weekend, but I will be back on Monday 😊.

PS: This message was sent automatically!

@brunoocasali brunoocasali self-requested a review October 20, 2022 12:41
@brunoocasali brunoocasali added the enhancement New feature or request label Oct 20, 2022
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

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

Hi @karlomikus, I'm so sorry for the delay in this review!

But I'm very satisfied with how you submitted this PR. It is very good for me! You can submit the next ones you mentioned in the notes section ;)

I just left two suggestions regarding the structure of the code. I think the code will be even easier to read with the suggestions.

Thanks a lot for contributing to Meilisearch! ❤️

brunoocasali
brunoocasali previously approved these changes Oct 24, 2022
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

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

Thank you so much! 🤘

bors merge

bors bot added a commit that referenced this pull request Oct 24, 2022
399: Implement methods for CSV and Ndjson batch adds r=brunoocasali a=karlomikus

# Pull Request

## Related issue
Fixes #238

## What does this PR do?
- Implements methods for batch adding of documents in csv and ndjson format

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

## Notes
This is using `preg_split` and `implode` to chunk strings by newline. Let me know if there is a better way to do this.

If this is fine I can implement the rest of the methods from the issue.

Co-authored-by: Karlo Mikuš <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 24, 2022

Build failed:

@brunoocasali
Copy link
Member

@karlomikus I tried to merge, but we still have some issues to fix regarding the phpstan can you check that? :)

@brunoocasali
Copy link
Member

bors merge

bors bot added a commit that referenced this pull request Oct 25, 2022
399: Implement methods for CSV and Ndjson batch adds r=brunoocasali a=karlomikus

# Pull Request

## Related issue
Fixes #238

## What does this PR do?
- Implements methods for batch adding of documents in csv and ndjson format

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

## Notes
This is using `preg_split` and `implode` to chunk strings by newline. Let me know if there is a better way to do this.

If this is fine I can implement the rest of the methods from the issue.

Co-authored-by: Karlo Mikuš <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 25, 2022

Build failed:

@karlomikus
Copy link
Contributor Author

I've fixed phpstan errors, I completely missed them :)

I think contributing guidelines should be updated to include composer phpstan run command.

@jonatanrdsantos jonatanrdsantos mentioned this pull request Oct 25, 2022
3 tasks
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

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

Awesome, thanks a lot for your contribution @karlomikus 🤘

bors merge

@bors
Copy link
Contributor

bors bot commented Oct 25, 2022

Build succeeded:

@bors bors bot merged commit 74df330 into meilisearch:main Oct 25, 2022
@brunoocasali
Copy link
Member

This message is sent automatically

Thanks again for contributing to Meilisearch ❤️
If you are participating in Hacktoberfest, and you would like to receive some gift from Meilisearch too, please complete this form.

bors bot added a commit that referenced this pull request Oct 25, 2022
410: Add phpstan to contributing r=brunoocasali a=jonatanrdsantos

# Pull Request
Updated based on this comment #399 (comment)

## 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: Jonatan Santos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NDJSON/CSV methods to add and update documents

2 participants