Skip to content

Reimport: clearing objects in the initial index if the temporary index has zero objects#186

Open
borealsmith wants to merge 9 commits intoalgolia:masterfrom
borealsmith:issue-103/reimport-command
Open

Reimport: clearing objects in the initial index if the temporary index has zero objects#186
borealsmith wants to merge 9 commits intoalgolia:masterfrom
borealsmith:issue-103/reimport-command

Conversation

@borealsmith
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

@nunomaduro nunomaduro left a comment

Choose a reason for hiding this comment

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

@chloelbn will jump on this.

Comment thread src/Console/Commands/ReImportCommand.php Outdated
@borealsmith borealsmith marked this pull request as ready for review July 9, 2019 17:47
@nunomaduro
Copy link
Copy Markdown
Contributor

@chloelbn Can you review this one?

chloelbn
chloelbn previously approved these changes Jul 11, 2019
@chloelbn chloelbn self-requested a review July 11, 2019 08:38
@chloelbn
Copy link
Copy Markdown
Contributor

Hello @borealsmith,

Thanks for your PR! I’ve reviewed and the code seems fine, great work! Would you mind adding some tests along your feature, to ensure everything is working as intended? You can take as an example the test for the Reimport Command (https://github.com/algolia/scout-extended/blob/master/tests/Features/ReimportCommandTest.php) and add in this file a test case with 0 object to import.

@borealsmith
Copy link
Copy Markdown
Author

Hi @chloelbn,

Thank you very much for the review and feedback. Of course, no problem, my pleasure to add the test case you mention.

Best Regards,

@borealsmith
Copy link
Copy Markdown
Author

Hi, @nunomaduro @chloelbn
Sorry for the late feedback. I'll try to find some time and write the test sometime next week.

@borealsmith
Copy link
Copy Markdown
Author

Hi,
I finally managed to add the test case for ReimportCommand in case of an empty reimport.
Best Regards,

@emanueljacob
Copy link
Copy Markdown

can we merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants