kibana/x-pack/plugins
Scotty Bollinger 5788a6bd78
[Workplace Search] Role Mappings to Kibana (#93123)
* Add routes for role mapings

* Initial copy/paste

* Update RoleMappingsRouter

- Update all paths
- Change router to use children instead of render props
- Remove legacy app chrome

* Update RoleMappings

- Update all paths
- Use global flash messages

* Update RoleMapping

- Update all paths
- Use global flash messages
- Add types to fix errors
- Use React Router Hooks instead of legacy withRouter HOC

* Fix path in index and add route helper

* Update paths in RoleMappingsLogic

* Remove history in favor of KibanaLogic.navigateToUrl

* Add Role type

* Remove ID prop

This is not needed because the ID is actually passed in the URL itself and is not a requirement in the body of the request

* Replace contextual flash messages with global

It appeared that the server sometimes sent flash messages with the API response, but I checked the Rails server code and there is no `flashMessages` sent back from the server so I am omitting that from the `RoleMappingsServerDetails` interface as well.

* Replace Rails http with kibana http

* Fix route path

* Add route and update global navigation

* Add breadcrumb/page title

* Update flash messages in RoleMapping

I did this for RoleMappings but forgot this one

* Use explicit AttributeName type instead of string

* Add i18n

* Fix type issue

Because the shared role mapping components work for both App Search and Workplace Search, the more generic string is used here because App Search has different role names.

* Add tests for components and router

* Add optional to interface

In the case of a new role mapping, the server is called at the ‘/new’ route and the server responds without a roleMapping prop, as it has not yet been created.

* Add tests for RoleMappingsLogic

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 11:22:20 -06:00
..
actions [actions] for simplistic email servers, set rejectUnauthorized to false (#91760) 2021-03-01 16:30:21 -05:00
alerting_builtins
alerts [Telemetry] Full schema definition (#90273) 2021-03-01 18:30:51 +00:00
apm Converts usage collection README to .mdx (#92982) 2021-03-02 09:40:43 +00:00
audit_trail
banners Implement custom global header banner (#87438) 2021-02-11 10:12:24 +01:00
beats_management Improve consistency for display of management items (#92694) 2021-03-02 09:54:43 -05:00
canvas [Expressions] [Lens] Add id and copyMetaFrom arg to mapColumn fn + add configurable onError argument to math fn (#90481) 2021-02-25 09:43:15 +01:00
case [Security Solution] Case ui enhancement (#91863) 2021-03-02 09:13:55 -05:00
cloud Migrate most plugins to synchronous lifecycle (#89562) 2021-02-08 10:19:54 +01:00
code Removing the code plugin entirely for 8.0 (#77940) 2021-02-10 18:32:29 -05:00
console_extensions
cross_cluster_replication Improve consistency for display of management items (#92694) 2021-03-02 09:54:43 -05:00
dashboard_enhanced
dashboard_mode add tsconfig for dashboard mode (#89855) 2021-02-04 11:36:01 +01:00
data_enhanced [Search Sessions] Fix completed session icon (#92206) 2021-02-22 11:18:22 -07:00
discover_enhanced
drilldowns Remove "beta" label from URL Drilldown as it is now GA (#92859) 2021-03-01 12:54:07 +01:00
embeddable_enhanced
encrypted_saved_objects Cleanup Security plugin imports (#93056) 2021-03-02 08:42:01 -05:00
enterprise_search [Workplace Search] Role Mappings to Kibana (#93123) 2021-03-02 11:22:20 -06:00
event_log [Event Log] Extended README.md with the documentation for a REST API and Start plugin contract. (#92562) 2021-02-25 08:59:30 -08:00
features [Search Sessions] Secure access to session routes based on user permissions (#90990) 2021-02-11 17:18:20 -05:00
file_upload [file_upload] move ml Importer classes to file_upload plugin (#91559) 2021-02-22 08:47:39 -07:00
fleet [Fleet] Use type-only imports where possible (#92979) 2021-03-02 12:10:39 -05:00
global_search Migrate most plugins to synchronous lifecycle (#89562) 2021-02-08 10:19:54 +01:00
global_search_bar
global_search_providers
graph [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00
grokdebugger [Grok Debugger] Changed test to wait for grok debugger container to exist to fix test flakiness (#90543) 2021-02-09 03:05:38 -05:00
index_lifecycle_management [ILM] Allow multiple searchable snapshot actions (#92789) 2021-03-02 16:00:11 +01:00
index_management [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00
infra Added alerting ui mock for jest test (#92604) 2021-03-01 12:55:41 +01:00
ingest_manager
ingest_pipelines [Usage Collection] Remove unused UI Metric APIs (#91620) 2021-02-24 07:21:40 -05:00
lens [Lens] Set pie chart slices sorted clockwise (#92617) 2021-03-02 17:34:46 +01:00
license_management [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00
licensing Migrate most plugins to synchronous lifecycle (#89562) 2021-02-08 10:19:54 +01:00
lists [Security Solution][Exceptions] - Fixes exceptions builder UI where invalid values can cause overwrites of other values (#90634) 2021-02-24 18:32:44 -08:00
logstash [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00
maps [Maps] fix MapboxDraw import from pointing to dist just pointing to folder (#93087) 2021-03-01 14:11:39 -07:00
maps_legacy_licensing
ml [ML] Transforms: Fixes chart histograms for runtime fields. (#93028) 2021-03-02 13:37:29 +01:00
monitoring [Monitoring] Added cgroup option for APM cpu usage (#90873) 2021-02-23 12:19:10 -05:00
observability [APM] Hoist HeaderMenuPortal to prevent unmounts (#92012) 2021-02-22 19:17:55 +01:00
osquery [Security Solution][Detections][Threshold Rules] Threshold multiple aggregations with cardinality (#90826) 2021-02-17 23:07:26 -05:00
painless_lab Uses doc link service in Painless lab (#90433) 2021-02-11 17:37:10 +01:00
remote_clusters [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00
reporting [Reporting] Remove unused priority field (#92552) 2021-03-01 10:41:08 -07:00
rollup [Rollup] Fix use of undefined value in JS import (#92791) 2021-02-25 18:09:14 +01:00
runtime_fields Index pattern field editor (#88995) 2021-02-18 12:00:43 -06:00
saved_objects_tagging Adds doc titles to security management sections (#91013) 2021-02-22 12:00:01 -05:00
searchprofiler Implement custom global header banner (#87438) 2021-02-11 10:12:24 +01:00
security Cleanup Security plugin imports (#93056) 2021-03-02 08:42:01 -05:00
security_solution [Security Solution] Case ui enhancement (#91863) 2021-03-02 09:13:55 -05:00
snapshot_restore Use documentation link service for snapshot restore (#91596) 2021-02-19 11:56:09 -08:00
spaces [Telemetry] Full schema definition (#90273) 2021-03-01 18:30:51 +00:00
stack_alerts [Metrics UI] Fix alert preview accuracy with new Notify settings (#89939) 2021-02-11 15:04:03 -05:00
task_manager [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00
telemetry_collection_xpack [chore] Enable core's eslint rule: @ts-expect-error (#93086) 2021-03-02 05:53:36 -05:00
transform [ML] Transforms: Fixes chart histograms for runtime fields. (#93028) 2021-03-02 13:37:29 +01:00
translations [ILM] Allow multiple searchable snapshot actions (#92789) 2021-03-02 16:00:11 +01:00
triggers_actions_ui [Alerting][Docs] Changed alerting documentation to point to a single source of explaining the configurations. (#92942) 2021-03-01 19:34:27 -08:00
ui_actions_enhanced Url template editor (#88577) 2021-02-15 18:24:58 +01:00
upgrade_assistant [Upgrade Assistant] Align code between branches (#91862) 2021-02-24 16:15:06 -05:00
uptime [Uptime] waterfall improve legend spacing (#92158) 2021-02-24 19:28:24 +01:00
watcher Improve consistency for display of management items (#92694) 2021-03-02 09:54:43 -05:00
xpack_legacy [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00