-
Notifications
You must be signed in to change notification settings - Fork 730
Add support for Search Option "seq_no_primary_term" and Index Options… #2234
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
base: 8.x
Are you sure you want to change the base?
Conversation
|
This change addresses issue #2232. |
|
@ryu818 Really sorry for the late reply. I just started CI on it. Any chance you could add a line to the changelog? |
|
I have also updated the changelog. However, it seems there are some errors in the CI. I do not have a test execution environment and was unsure how to fix them. Could you please assist me with this? |
|
Ideally we would have some tests that test the changes. I will try to have a look if the test failures are related to this change or not. My guess it is as we just had recently a clean CI pass. About the changelog, a release went just out a few hours ago so we have a conflict now. Let me know if you want to resolve it otherwise habe to help with it. For the test suite, do you have phpunit installed? If yes, that is step one. Then to get elasticsearch running, there is a docker compose setup, here some more details how Github runs it: https://github.com/ruflin/Elastica/blob/8.x/.github/workflows/continuous-integration.yaml#L114 |
|
BTW this is the failure I'm worried about: It seems the injection of |
|
Thank you for your response. This error occurs when adding a document to Elasticsearch because I think it would be better to fix the part where Also, to test if |
|
The proposed change sounds sensible to me. Do you want to try to implement it that way and add a test? For the changelog: It seems your editor "adjusted" some of the indentation. Any change you could revert the indentation part to not have a massive diff in the changelog? |
f17ace0 to
5337e95
Compare
|
Regarding the indentation in the ChangeLog, I apologize for the inconvenience. Also, regarding the addition of tests, I apologize for the trouble, but could you please take care of it? |
|
Hi @ryu818 Sorry for the late reply. At the moment I don't get to look at it in much detail but it is on my list to have a look eventually. I also started the tests again to see what the output is. |
Since if_primary_term and if_seq_no are automatically set in getDocument, it is an error to add them to another Index as is. Therefore, convert the acquired document to an Array before calling
f59e086 to
de5431b
Compare
|
Hello. Never mind. Sorry for the delay in confirming this as well. The _primary_term and _seq_no were taken into account before, and getDocument automatically sets if_primary_term and if_seq_no. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- tests/IndexTest.php: Language not supported
|
"This is a scheduled Ubuntu 20.04 retirement. Ubuntu 20.04 LTS runner will be removed on 2025-04-15. For more details, see https://github.com/actions/runner-images/issues/11101” and the test will be skipped. In “integration.yaml”, please correct “runs-on: ‘ubuntu-20.04’” to something like “runs-on: ‘ubuntu-22.04’”. |
|
Have a PR with a potential fix here: #2243 |
|
@ryu818 Can you rebase this either on 8.x or 9.x to continue? Tests should be green now. |
|
Hm, it seems the change is not visible in this PR anymore, I only see a diff for a test change? Did we get this in somewhere else? |
… "if_primary_term" and "if_seq_no"