-
Notifications
You must be signed in to change notification settings - Fork 88
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
GetTasks: allow for reverse param #603
base: main
Are you sure you want to change the base?
Conversation
@Strift would the suggestion here be to write a completely new integration test inside of index_task_test.go that confirms the order matches? I don't think the other integration tests are actually confirming the output, but believe that maybe that would make sense? |
885069a
to
22289cb
Compare
Hi @cosmastech, thanks for your PR. Testing the output would actually be testing Meilisearch and not the integration IMO, but that can turn useful to spot upstream regressions. It might also be the simplest way to write the tests. I have no experience in go, so please take my advice with a grain of salt. Here's what I would do, e.g. in JavaScript:
@Ja7ad might have better guidance. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #603 +/- ##
==========================================
+ Coverage 86.22% 86.23% +0.01%
==========================================
Files 14 14
Lines 2845 2848 +3
==========================================
+ Hits 2453 2456 +3
Misses 282 282
Partials 110 110 ☔ View full report in Codecov by Sentry. |
@cosmastech Please regenerate types using easyjson; please follow the contributing rules. |
c796fbb
to
b5555b4
Compare
Thanks for the guidance. I apparently read a different set of contributing guidelines 😆 |
@cosmastech Please fix test issue: https://github.com/meilisearch/meilisearch-go/actions/runs/12919048835/job/36039358559?pr=603#step:6:1039 You can run unit test on your local, need to run meilisearch dockerised. |
I'm seeing this fail on local against To fix the broken test in this package, I can simply change the TestTasksWithParams parameter to Was wondering if @Ja7ad you could confirm:
Thanks! |
b5555b4
to
25cd056
Compare
Pull Request
Related issue
Fixes #596
What does this PR do?
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!