[data views] composite runtime fields in api layer#125183
[data views] composite runtime fields in api layer#125183mattkime merged 42 commits intoelastic:mainfrom
Conversation
| ); | ||
| }); | ||
|
|
||
| it('returns error when attempting to fetch a field which is not a runtime field', async () => { |
There was a problem hiding this comment.
I think this test is basically the same as the one on line 54.
| expect(response1.status).to.be(404); | ||
| }); | ||
|
|
||
| it('returns error when attempting to delete a field which is not a runtime field', async () => { |
There was a problem hiding this comment.
Same as test above, I don't see a need for a separate error code when removing a non runtime field
|
Pinging @elastic/kibana-app-services (Team:AppServicesSv) |
|
@mattkime The description of this PR doesn't really explain what's going on and the linked PR is pretty bare as well. Could you elaborate a bit on the context of these changes and why they are necessary? I want to make sure the changes done won't break anything else in VisEditors code as it seems like they are not backwards compatible in some ways. |
|
@flash1293 Sorry for that, I've updated the description with additional context. |
flash1293
left a comment
There was a problem hiding this comment.
VisEditors changes LGTM
|
@elasticmachine merge upstream |
...ndex_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
Dosant
left a comment
There was a problem hiding this comment.
Overall LGTM, but it seems that previous feedback wasn't addressed or wasn't communicated that it won't be addressed:
-
I retested, and this seems wasn't fixed? #125183 (comment) is it intentional? From your response, I thought you are planning to fix this
-
Hm, I think this one also wasn't fixed / no response. still can reproduce.
#125183 (comment)
3 I also think this is a fair suggestion, but this was missed
weltenwort
left a comment
There was a problem hiding this comment.
infra plugin changes look good. thanks for improving the DataView API!
|
If you say that this is expected that we don't clean up fieldAttrs after a field is deleted then sounds good
Maybe simple through oneOf? Then we can also be specific about runtime field type: If that won't work, then simply runtime checks inside API route handlers? |
Dosant
left a comment
There was a problem hiding this comment.
LGTM + previous suggestions
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
* composite runtime fields in data view layer
Summary
Add composite runtime fields to the data view api layer. Broken out of #110223
Part of phase 3 of https://github.com/elastic/kibana-team/issues/307
Composite runtime field ES docs - https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime-examples.html#runtime-examples-grok-composite
To test composite runtime field, provide data view id -
curl -u elastic -X POST "localhost:5601/api/data_views/data_view/${id}/runtime_field" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d @"composite_runtime.txt"composite_runtime.txt content -
and delete
Testing