-
Notifications
You must be signed in to change notification settings - Fork 8.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
Default ouput of docvalue_fields will soon change #27310
Comments
Pinging @elastic/kibana-app |
@joelgriffith @tsullivan it seems that beside what Matt already fixed, we still have two occurrences of Could you please check if that means some reporting tests will break due to that change? |
Yup, will check and report back. |
@joelgriffith Let me know if I can help. |
@jpountz I'm taking a look now and seeing what I can find. Is there a snapshot of this version of ES I can run to do a quick smoke test (I'm not fully setup to develop ES locally, but also not sure how hard it is to get a dev build published someplace)? |
@joelgriffith I can build one for you. Would you rather like the zip or tar.gz distribution? |
Thanks! Doesn't matter, either one :) |
Sorry for my sluggish response, I had a few things to get up to speed on :) So, it appears the prior URL's were of format: The other concern that @tsullivan pointed out is that saved/generated reports may have this value hard-coded as well, which (if so) represents another set of challenges to getting this pushed through. |
This is still valid, but we are changing the return value from a long to a string, which is the same date formatted with the format that is configured in the mappings. If you need to get the number of millis since Epoch, you can still do that by passing a custom format: 6.x already supports opting in for the 7.x behavior by doing |
I was able to run reporting tests locally (after some back and forth) with passes using the branch mentioned here! I think we're good to go with this:
|
Thanks @joelgriffith for checking, I'll close this issue then. |
Hello Kibana team,
I'm reaching out because I'm about to merge a pull request to master (7.0) that changes the default format of
docvalue_fields
: elastic/elasticsearch#30831. This is mostly a change for date fields, which will now be formatted based on the format that is configured in the mappings. For instance if you would like to get a number of millis since Epoch instead, you should now pass something likedocvalue_fields: [ { "field": "@timestamp", "format": "epoch_millis" } ]
.I see that @Bargs already did a change to add
format: use_field_mapping
some months ago #22771. Does Kibana always specify a format when fetchingdocvalue_fields
? If this isn't the case, then the Elasticsearch PR might break Kibana, which I'd like to avoid.The text was updated successfully, but these errors were encountered: