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

Add return value to ms_index! #289

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

ellnix
Copy link
Collaborator

@ellnix ellnix commented Sep 21, 2023

Pull Request

Related issue

Fixes #271

What does this PR do?

  • Changes #ms_index! to pass along the task hash provided by the meilisearch gem
  • Adds tests for the three possible return types

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?

I'm new to this project, so I tried to keep the solution as unopinionated as possible. Please feel free to suggest changes to the implementation.

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e5ad4d1) 89.04% compared to head (87dcae7) 89.04%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #289   +/-   ##
=======================================
  Coverage   89.04%   89.04%           
=======================================
  Files          10       10           
  Lines         657      657           
=======================================
  Hits          585      585           
  Misses         72       72           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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 @ellnix, thanks a lot for your contribution!

spec/integration_spec.rb Show resolved Hide resolved
spec/integration_spec.rb Outdated Show resolved Hide resolved
spec/integration_spec.rb Show resolved Hide resolved
lib/meilisearch-rails.rb Outdated Show resolved Hide resolved
@brunoocasali brunoocasali self-requested a review November 6, 2023 11:15
@ellnix ellnix force-pushed the return-task-object-after-index branch from 3beffc1 to 857e72f Compare November 29, 2023 09:39
@ellnix
Copy link
Collaborator Author

ellnix commented Nov 29, 2023

@brunoocasali sorry for being inactive this month, this and the other PRs should be ready to merge if you agree with the changes.

@ellnix ellnix force-pushed the return-task-object-after-index branch from 50e7c70 to 87dcae7 Compare December 11, 2023 10:01
@brunoocasali
Copy link
Member

Hey @ellnix I asked some questions in the last review, could you check them?

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.

LGTM!

@ellnix
Copy link
Collaborator Author

ellnix commented Dec 12, 2023

bors merge

@meili-bors meili-bors bot merged commit 9c6b5ed into meilisearch:main Dec 12, 2023
11 checks passed
@mech
Copy link

mech commented Dec 12, 2023

Wonderful!

@brunoocasali brunoocasali added the enhancement New feature or request label Feb 12, 2024
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.

Return task object after ms_index!
3 participants