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

RangeFieldType.rangeQuery now defaults to mappings format(parser) #30252

Closed
wants to merge 1 commit into from
Closed

RangeFieldType.rangeQuery now defaults to mappings format(parser) #30252

wants to merge 1 commit into from

Conversation

mP1
Copy link

@mP1 mP1 commented Apr 30, 2018

  • Have you signed the contributor license agreement?
    YES

  • Have you followed the contributor guidelines?
    YES

  • If submitting code, have you built your formula locally prior to submission with gradle check?
    YES - passed

  • If submitting code, is your pull request against master? Unless there is a good reason otherwise, we prefer pull requests against master and will backport as needed.
    rebased against master 2018/4/30

  • If submitting code, have you checked that your submission is for an OS that we support?
    OSX (n/a)

  • If you are submitting this code for a class then read our policy for that.
    N/A

- previously the format given in the mapping was ignored while parsing
  date in responses, fixed.
- #29282
- added more tests for some combinations of range queries in RangeFieldTypeTests.
@colings86 colings86 added the :Search/Mapping Index mappings, including merging and defining field types label May 1, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@cbuescher
Copy link
Member

@mP1 thanks for opening this PR. You might not have seen it in the original issue (#29282), but this issue already has an open PR that is currently under review (#29310). The fix looks identical to me, I'd like to continue working on the tests on that PR when the author comes back with it. Hope you don't mind if we don't go into more deeper reviews for this PR only if #29310 doesn't get resolved.

@cbuescher cbuescher self-assigned this May 2, 2018
@mP1
Copy link
Author

mP1 commented May 2, 2018

@cbuescher

Well this PR

  • better code coverage in tests
  • tests each permutation of inputs with nice expectations.
  • tests need to try and test not only the bug but reasonable possible inputs both good and bad, other pr doesnt do that.
  • other pr has been idle for a month, we can wrap this up much more quickly.

@cbuescher
Copy link
Member

we can wrap this up much more quickly

Its not so much about speed, but about letting contributers continue with PRs they started working on. If you open an issue that you know is already being worked on elsewhere, please be so nice as to let us and the user know about it. If you need something to go in badly lets discuss that on the issue.
I was reviewing the other PR so I knew it was already worked on, but somebody else wouldn’t have known, so please add a note when doing this, so we avoid needless review cycles.

@mP1
Copy link
Author

mP1 commented May 3, 2018

@cbuescher

Its not so much about speed, but about letting contributers continue with PRs they started working on.

Over a month for a reply shows they have abandoned this review. The time limit for replies on PRs must be something reasonable so commits stay relevant to the current system. The longer time advances, and the more changes the system sees, old commits will have so many conflicts and everything will be so different, the original will require almost a total rewrite.

There needs to be a policy that if people dont advance a review after a week or two, then that stale PR is closed, so other people can get it done. Just abandoning and not replying to review comments isnt good enough. Theres no point waiting forever for someone who is not going to reply...

This is one of them.

@colings86
Copy link
Contributor

@mP1 We should at least give people the chance to pick up those PRs instead of opening a new PR with the same code. People do sometimes forget about PRs they are working on and I think it is only right to see if they still want to work on them before calling them abandoned and creating a new PR.

In this case the user has replied very quickly after being asked if they would like to progress their PR so I think its only right that we allow them some time.

@cbuescher
Copy link
Member

Since #29310 has been merged, which solves the underlying issue, I'm also closing this PR.

@cbuescher cbuescher closed this May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Mapping Index mappings, including merging and defining field types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants