Console update autocomplete definitions#39508
Conversation
|
Pinging @elastic/es-ui |
💔 Build Failed |
|
@sebelga I took a quick look and I just wanted to double-check that these files all belong in I also wonder how we define the |
|
@cjcenizal I never thought we'd spread the generated definition across folders... I will re-watch the walkthrough video to see how to fix this. EDIT: I figured it out, we indeed need to call the script twice, once for oss and once for xpack. I will now add manually the new APIs body payload |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
|
@jen-huang @alisonelizabeth the PR is ready for review when you have time 😊 |
💚 Build Succeeded |
alisonelizabeth
left a comment
There was a problem hiding this comment.
LGTM. Tried out the yarn script and tested a couple of the autocomplete changes but not all.
|
@sebelga Take a look at #19928 to refer to the value of manually reviewing and testing these endpoints. It looks like most of the things we caught were either a) errors in the overrides which we could fix in the PR or b) mistakes on the Elasticsearch side which we could forward on to the appropriate owner. |
|
@cjcenizal I see. Do you think it would be valuable to work on a better (less error-prone and no engineering time involved) system? It seems to me that we should have a single source of truth with its tests (probably in the Elasticsearch repo) and all the dependent parties would pull from it without having to retest everything. |
100% yes! The vision of what this system would look like isn't clear to me. I'd love to discuss any ideas you have. |
| @@ -0,0 +1,24 @@ | |||
| { | |||
There was a problem hiding this comment.
@dimitris-athanasiou I couldn't find docs for this API online. Do they live somewhere?
EDIT: Same goes for the put_data_frame_analytics API below.
There was a problem hiding this comment.
No. We're working on the docs, they should be added this week.
dimitris-athanasiou
left a comment
There was a problem hiding this comment.
The data frame analytics bits look good to me!
|
Thanks for the review @dimitris-athanasiou, @alisonelizabeth @cjcenizal! |
…tocomplete-definitions
💔 Build Failed |
|
retest |
1 similar comment
|
retest |
💔 Build Failed |
|
retest |
💚 Build Succeeded |
💚 Build Succeeded |
This PR updates the console autocomplete definitions generated with the
yarn spec_to_console.@dimitris-athanasiou Can you please test the payloads for data frame analytics and confirm if the property
feature_influence_thresholdis correct?I also made a small modification to the README.md file and updated the yarn script to make sure that the folder exists before trying to write a file into it.