-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove duplicate argument #1163
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Thanks for opening this! Unfortunately any changes to code under |
@sethmlarson I've been looking at that script for 15 minutes now. |
Sure! It loads parameters from this file (along with all the other files in that directory), loads them into You can see in the file there are multiple paths for the "bulk" API, one with To start I'd clone the Good luck and feel free to ask more questions! 🚀 |
I hope so. Starting to dive into. I kinda struggle with that. |
Yeah I'd start by checking out matching branches, the |
Okay. I'm on 7.x on both repositories.
|
Hmm I wouldn't expect |
Exactly - that why I was confused. Not really sure what I've messed up
From elastic/elasticsearch
|
Ah, why don't you try checking out the |
Much better - thanks! Still some changes that look a bit weird. I'm not sure if that's intended
|
You can ignore those small changes, although I don't know why it'd increase from two spaces to 3 without a change in the template. Not a big problem though! Now you can start investigating how the |
I'll ignore it then. |
@sethmlarson I think I found the issue.
I found a solution for it by changing
Adding the extra I don't feel comfortable enough to judge if that the best or even a proper solution. Advice would be much appreciated. |
@mortenhauberg That looks like a good lead! What happens when you generate the API with that additional clause? Are there more duplicated parameters elsewhere that it catches? Thanks for working on this, I feel like we're getting close to a solution :) |
I ran your change locally and it looks like it de-duplicated in a bunch of places properly which is great! However I think it'd be best if we kept the "upper" parameter rather than removing the upper one since all the parameters that are duplicated are both in the URL path and in the query params list. |
Good. |
I think I found a solution, adding
|
Could you create a new branch against the |
Sure thing. |
I've created #1169 now |
I'd make two commits, one for |
I now face the issue where there's multiple spaces.. I'll dig into that
|
Looking at the documentation,
doc_type
is listed twice for thebulk
function