Skip to content

Conversation

@ahmednfwela
Copy link
Collaborator

@ahmednfwela ahmednfwela commented Mar 11, 2023

Fixes #95

  • Tests added

@ahmednfwela
Copy link
Collaborator Author

cc @brunoocasali

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.

I sent some suggestions in the test part, but overall is perfect! 🥇

});

test('Update documents in batches', () async {
const batchSize = 10;
Copy link
Member

Choose a reason for hiding this comment

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

This is an excellent recommendation I like to share whenever is possible: http://blog.plataformatec.com.br/2014/04/improve-your-test-readability-using-the-xunit-structure/

By using this pattern your test structure will look way more readable!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for this tip, definitely will use it from now on!

@brunoocasali brunoocasali added the enhancement New feature or request label Mar 13, 2023
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.

bors merge

@bors
Copy link
Contributor

bors bot commented Mar 13, 2023

@bors bors bot merged commit 9498a4f into meilisearch:main Mar 13, 2023
@ahmednfwela ahmednfwela deleted the feat/addDocumentsInBatches branch March 14, 2023 08:36
bors bot added a commit that referenced this pull request Mar 14, 2023
262: [Feature] Support NDJson and CSV r=brunoocasali a=ahmednfwela

Fixes #102 
Depends on #261 
- [x] Tests Added

Co-authored-by: Ahmed Fwela <[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.

Add methods to automatically add/update documents in batches

2 participants