-
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
[Console] Filter autocomplete endpoints by availability #161781
[Console] Filter autocomplete endpoints by availability #161781
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ElenaStoeva, thanks a lot for working on this feature! I did an initial code review and changes LGTM. Also tested locally and the endpoints are correctly filtered out.
@elasticmachine merge upstream |
merge conflict between base and head |
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for adding the tests, @ElenaStoeva!
Tested locally and everything works as expected 👍
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @ElenaStoeva |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
security changes LGTM
Closes #160160
Summary
This PR adds functionality to the new autocomplete generation script for creating an
availability
property in the spec files that is used for filtering out endpoints that are not available in the current environment (e.g.serverless
orstack
). It also adds a config setting in the console plugin that specifies the current environment. This setting is also configured accordingly for serverless.How to test
node scripts/generate_console_definitions.js --source <ES_SPECIFICATION_REPO> --emptyDest
where<ES_SPECIFICATION_REPO>
is the absolute path to the root of the ES specification repostack
environment.serverless
environment.Here are some example endpoints that can be used for testing: