-
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
[Enterprise Search] Refactor Role mappings to use single endpoint #102096
[Enterprise Search] Refactor Role mappings to use single endpoint #102096
Conversation
This was missed when refactoring the table to an EUI component. Built-in mappings have tooltips and don’t have IDs and need to show tooltips instead of actions.
Also missed in the refactor. Made a mistake when copying/pasting
As a part of this feature, we are now passing all props needed for the UI in the list endpoint. Previously, whether creating a new mapping, or updating an existing mapping, an endpoint had to be called to fetch the data needed for display. Now all this data comes from the initial fetching of mappings and the other endpoints are no longer needed.
There was an issue where 100% test coverage was not achieved in Workplace Search. This had already been fixed in App Search by refactoring. This changes the code and test in Workplace Search to match
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.
WS changes LGTM
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.
Rubberstamping for speed - generally if something is approved on Kibana I think it's GTG on ent-search without waiting for CODEOWNERS approval
…astic#102096) * Add tooltip back to table row This was missed when refactoring the table to an EUI component. Built-in mappings have tooltips and don’t have IDs and need to show tooltips instead of actions. * Fix roleType display Also missed in the refactor. Made a mistake when copying/pasting * Refactor logic files to use single endpoint for UI props As a part of this feature, we are now passing all props needed for the UI in the list endpoint. Previously, whether creating a new mapping, or updating an existing mapping, an endpoint had to be called to fetch the data needed for display. Now all this data comes from the initial fetching of mappings and the other endpoints are no longer needed. * Refactor WS test to match AS There was an issue where 100% test coverage was not achieved in Workplace Search. This had already been fixed in App Search by refactoring. This changes the code and test in Workplace Search to match * Remove server routes
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…02096) (#102229) * Add tooltip back to table row This was missed when refactoring the table to an EUI component. Built-in mappings have tooltips and don’t have IDs and need to show tooltips instead of actions. * Fix roleType display Also missed in the refactor. Made a mistake when copying/pasting * Refactor logic files to use single endpoint for UI props As a part of this feature, we are now passing all props needed for the UI in the list endpoint. Previously, whether creating a new mapping, or updating an existing mapping, an endpoint had to be called to fetch the data needed for display. Now all this data comes from the initial fetching of mappings and the other endpoints are no longer needed. * Refactor WS test to match AS There was an issue where 100% test coverage was not achieved in Workplace Search. This had already been fixed in App Search by refactoring. This changes the code and test in Workplace Search to match * Remove server routes Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
…astic#102096) * Add tooltip back to table row This was missed when refactoring the table to an EUI component. Built-in mappings have tooltips and don’t have IDs and need to show tooltips instead of actions. * Fix roleType display Also missed in the refactor. Made a mistake when copying/pasting * Refactor logic files to use single endpoint for UI props As a part of this feature, we are now passing all props needed for the UI in the list endpoint. Previously, whether creating a new mapping, or updating an existing mapping, an endpoint had to be called to fetch the data needed for display. Now all this data comes from the initial fetching of mappings and the other endpoints are no longer needed. * Refactor WS test to match AS There was an issue where 100% test coverage was not achieved in Workplace Search. This had already been fixed in App Search by refactoring. This changes the code and test in Workplace Search to match * Remove server routes
Summary
This PR accomplishes 3 things:
Please review
ent-search
companion PR as a part of this review.Checklist