Skip to content

Commit

Permalink
New Enterprise Search Kibana plugin (elastic#66922)
Browse files Browse the repository at this point in the history
* Initial App Search in Kibana plugin work

- Initializes a new platform plugin that ships out of the box w/ x-pack
- Contains a very basic front-end that shows AS engines, error states, or a Setup Guide
- Contains a very basic server that remotely calls the AS internal engines API and returns results

* Update URL casing to match Kibana best practices

- URL casing appears to be snake_casing, but kibana.json casing appears to be camelCase

* Register App Search plugin in Home Feature Catalogue

* Add custom App Search in Kibana logo

- I haven't had much success in surfacing a SVG file via a server-side endpoint/URL, but then I realized EuiIcon supports passing in a ReactElement directly. Woo!

* Fix appSearch.host config setting to be optional

- instead of crashing folks on load

* Rename plugin to Enterprise Search

- per product decision, URL should be enterprise_search/app_search and Workplace Search should also eventually live here
- reorganize folder structure in anticipation for another workplace_search plugin/codebase living alongside app_search
- rename app.tsx/main.tsx to a standard top-level index.tsx (which will contain top-level routes/state)
- rename AS->ES files/vars where applicable
- TODO: React Router

* Set up React Router URL structure

* Convert showSetupGuide action/flag to a React Router link

- remove showSetupGuide flag
- add a new shared helper component for combining EuiButton/EuiLink with React Router behavior (https://github.com/elastic/eui/blob/master/wiki/react-router.md#react-router-51)

* Implement Kibana Chrome breadcrumbs

- create shared helper (WS will presumably also want this) for generating EUI breadcrumb objects with React Router links+click behavior
- create React component that calls chrome.setBreadcrumbs on page mount
- clean up type definitions - move app-wide props to IAppSearchProps and update most pages/views to simply import it instead of calling their own definitions

* Added server unit tests (#2)

* Added unit test for server

* PR Feedback

* Refactor top-level Kibana props to a global context state

- rather them passing them around verbosely as props, the components that need them should be able to call the useContext hook

+ Remove IAppSearchProps in favor of IKibanaContext

+ Also rename `appSearchUrl` to `enterpriseSearchUrl`, since this context will contained shared/Kibana-wide values/actions useful to both AS and WS

* Added unit tests for public (#4)

* application.test.ts

* Added Unit Test for EngineOverviewHeader

* Added Unit Test for generate_breadcrumbs

* Added Unit Test for set_breadcrumb.tsx

* Added a unit test for link_events

- Also changed link_events.tsx to link_events.ts since it's just TS, no
React
- Modified letBrowserHandleEvent so it will still return a false
boolean when target is blank

* Betterize these tests

Co-Authored-By: Constance <[email protected]>

Co-authored-by: Constance <[email protected]>

* Add UI telemetry tracking to AS in Kibana (#5)

* Set up Telemetry usageCollection, savedObjects, route, & shared helper

- The Kibana UsageCollection plugin handles collecting our telemetry UI data (views, clicks, errors, etc.) and pushing it to elastic's telemetry servers
- That data is stored in incremented in Kibana's savedObjects lib/plugin (as well as mapped)
- When an end-user hits a certain view or action, the shared helper will ping the app search telemetry route which increments the savedObject store

* Update client-side views/links to new shared telemetry helper

* Write tests for new telemetry files

* Implement remaining unit tests (#7)

* Write tests for React Router+EUI helper components

* Update generate_breadcrumbs test

- add test suite for generateBreadcrumb() itself (in order to cover a missing branch)
- minor lint fixes
- remove unnecessary import from set_breadcrumbs test

* Write test for get_username util

+ update test to return a more consistent falsey value (null)

* Add test for SetupGuide

* [Refactor] Pull out various Kibana context mocks into separate files

- I'm creating a reusable useContext mock for shallow()ed enzyme components
+ add more documentation comments + examples

* Write tests for empty state components

+ test new usecontext shallow mock

* Empty state components: Add extra getUserName branch test

* Write test for app search index/routes

* Write tests for engine overview table

+ fix bonus bug

* Write Engine Overview tests

+ Update EngineOverview logic to account for issues found during tests :)
  - Move http to async/await syntax instead of promise syntax (works better with existing HttpServiceMock jest.fn()s)
  - hasValidData wasn't strict enough in type checking/object nest checking and was causing the app itself to crash (no bueno)

* Refactor EngineOverviewHeader test to use shallow + to full coverage

- missed adding this test during telemetry work
- switching to shallow and beforeAll reduces the test time from 5s to 4s!

* [Refactor] Pull out React Router history mocks into a test util helper

+ minor refactors/updates

* Add small tests to increase branch coverage

- mostly testing fallbacks or removing fallbacks in favor of strict type interface
- these are slightly obsessive so I'd also be fine ditching them if they aren't terribly valuable

* Address larger tech debt/TODOs (#8)

* Fix optional chaining TODO

- turns out my local Prettier wasn't up to date, completely my bad

* Fix constants TODO

- adds a common folder/architecture for others to use in the future

* Remove TODO for eslint-disable-line and specify lint rule being skipped

- hopefully that's OK for review, I can't think of any other way to sanely do this without re-architecting the entire file or DDoSing our API

* Add server-side logging to route dependencies

+ add basic example of error catching/logging to Telemetry route
+ [extra] refactor mockResponseFactory name to something slightly easier to read

* Move more Engines Overview API logic/logging to server-side

- handle data validation in the server-side
- wrap server-side API in a try/catch to account for fetch issues
- more correctly return 2xx/4xx statuses and more correctly deal with those responses in the front-end
- Add server info/error/debug logs (addresses TODO)
- Update tests + minor refactors/cleanup
    - remove expectResponseToBe200With helper (since we're now returning multiple response types) and instead make mockResponse var name more readable
    - one-line header auth
    - update tests with example error logs
    - update schema validation for `type` to be an enum of `indexed`/`meta` (more accurately reflecting API)

* Per telemetry team feedback, rename usageCollection telemetry mapping name to simpler 'app_search'

- since their mapping already nests under 'kibana.plugins'
- note: I left the savedObjects name with the '_telemetry' suffix, as there very well may be a use case for top-level generic 'app_search' saved objects

* Update Setup Guide installation instructions (#9)

Co-authored-by: Chris Cressman <[email protected]>

* [Refactor] DRY out route test helper

* [Refactor] Rename public/test_utils to public/__mocks__

- to better follow/use jest setups and for .mock.ts suffixes

* Add platinum licensing check to Meta Engines table/call (#11)

* Licensing plugin setup

* Add LicensingContext setup

* Update EngineOverview to not hit meta engines API on platinum license

* Add Jest test helpers for future shallow/context use

* Update plugin to use new Kibana nav + URL update (#12)

* Update new nav categories to add Enterprise Search + update plugin to use new category

- per @johnbarrierwilson and Matt Riley, Enterprise Search should be under Kibana and above Observability
- Run `node scripts/check_published_api_changes.js --accept` since this new category affects public API

* [URL UPDATE] Change '/app/enterprise_search/app_search' to '/app/app_search'

- This needs to be done because App Search and Workplace search *have* to be registered as separate plugins to have 2 distinct nav links
- Currently Kibana doesn't support nested app names (see: elastic#59190) but potentially will in the future

- To support this change, we need to update applications/index.tsx to NOT handle '/app/enterprise_search' level routing, but instead accept an async imported app component (e.g. AppSearch, WorkplaceSearch).
- AppSearch should now treat its router as root '/' instead of '/app_search'

- (Addl) Per Josh Dover's recommendation, switch to `<Router history={params.history}>` from `<BrowserRouter basename={params.appBasePath}>` since they're deprecating appBasePath

* Update breadcrumbs helper to account for new URLs

- Remove path for Enterprise Search breadcrumb, since '/app/enterprise_search' will not link anywhere meaningful for the foreseeable future, so the Enterprise Search root should not go anywhere
- Update App Search helper to go to root path, per new React Router setup

Test changes:
- Mock custom basepath for App Search tests
- Swap enterpriseSearchBreadcrumbs and appSearchBreadcrumbs test order (since the latter overrides the default mock)

* Add create_first_engine_button telemetry tracking to EmptyState

* Switch plugin URLs back to /app/enterprise_search/app_search

Now that elastic#66455 has been merged in 🎉

* Add i18n formatted messages / translations (#13)

* Add i18n provider and formatted/i18n translated messages

* Update tests to account for new I18nProvider context + FormattedMessage components

- Add new mountWithContext helper that provides all contexts+providers used in top-level app
- Add new shallowWithIntl helper for shallow() components that dive into FormattedMessage

* Format i18n dates and numbers

+ update some mock tests to not throw react-intl invalid date messages

* Update EngineOverviewHeader to disable button on prop

* Address review feedback (#14)

* Fix Prettier linting issues

* Escape App Search API endpoint URLs

- per PR feedback
- querystring should automatically encodeURIComponent / escape query param strings

* Update server plugin.ts to use getStartServices() rather than storing local references from start()

- Per feedback: https://github.com/elastic/kibana/blob/master/src/core/CONVENTIONS.md#applications

- Note: savedObjects.registerType needs to be outside of getStartServices, or an error is thrown

- Side update to registerTelemetryUsageCollector to simplify args

- Update/fix tests to account for changes

* E2E testing (#6)

* Wired up basics for E2E testing

* Added version with App Search

* Updated naming

* Switched configuration around

* Added concept of 'fixtures'

* Figured out how to log in as the enterprise_search user

* Refactored to use an App Search service

* Added some real tests

* Added a README

* Cleanup

* More cleanup

* Error handling + README updatre

* Removed unnecessary files

* Apply suggestions from code review

Co-authored-by: Constance <[email protected]>

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_table.tsx

Co-authored-by: Constance <[email protected]>

* PR feedback - updated README

* Additional lint fixes

Co-authored-by: Constance <[email protected]>

* Add README and CODEOWNERS (#15)

* Add plugin README and CODEOWNERS

* Fix Typescript errors (#16)

* Fix public mocks

* Fix empty states types

* Fix engine table component errors

* Fix engine overview component errors

* Fix setup guide component errors

- SetBreadcrumbs will be fixed in a separate commit

* Fix App Search index errors

* Fix engine overview header component errors

* Fix applications context index errors

* Fix kibana breadcrumb helper errors

* Fix license helper errors

* ❗ Refactor React Router EUI link/button helpers
- in order to fix typescript errors

- this changes the component logic significantly to a react render prop, so that the Link and Button components can have different types - however, end behavior should still remain the same

* Fix telemetry helper errors

* Minor unused var cleanup in plugin files

* Fix telemetry collector/savedobjects errors

* Fix MockRouter type errors and add IRouteDependencies export

- routes will use IRouteDependencies in the next few commits

* Fix engines route errors

* Fix telemetry route errors

* Remove any type from source code

- thanks to Scotty for the inspiration

* Add eslint rules for Enterprise Search plugin

- Add checks for type any, but only on non-test files
- Disable react-hooks/exhaustive-deps, since we're already disabling it in a few files and other plugins also have it turned off

* Cover uncovered lines in engines_table and telemetry tests

* Fixed TS warnings in E2E tests (#17)

* Feedback: Convert static CSS values to EUI variables where possible

* Feedback: Flatten nested CSS where possible

- Prefer setting CSS class overrides on individual EUI components, not on a top-level page

+ Change CSS class casing from kebab-case to camelCase to better match EUI/Kibana

+ Remove unnecessary .euiPageContentHeader margin-bottom override by changing the panelPaddingSize of euiPageContent

+ Decrease engine overview table padding on mobile

* Refactor out components shared with Workplace Search (#18)

* Move getUserName helper to shared

- in preparation for Workplace Search plugin also using this helper

* Move Setup Guide layout to a shared component

* Setup Guide: add extra props for standard/native auth links

Note: It's possible this commit may be unnecessary if we can publish shared Enterprise Search security mode docs

* Update copy per feedback from copy team

* Address various telemetry issues

- saved objects: removing indexing per elastic#43673
- add schema and generate json per elastic#64942
- move definitions over to collectors since saved objects is mostly empty at this point, and schema throws an error when it imports an obj instead of being defined inline
- istanbul ignore saved_objects file since it doesn't have anything meaningful to test but was affecting code coverage

* Disable plugin access if a normal user does not have access to App Search (#19)

* Set up new server security dependency and configs

* Set up access capabilities

* Set up checkAccess helper/caller

* Remove NoUserState component from the public UI

- Since this is now being handled by checkAccess / normal users should never see the plugin at all if they don't have an account/access, the component is no longer needed

* Update server routes to account for new changes

- Remove login redirect catch from routes, since the access helper should now handle that for most users by disabling the plugin (superusers will see a generic cannot connect/error screen)
- Refactor out new config values to a shared mock

* Refactor Enterprise Search http call to hit/return new internal API endpoint

+ pull out the http call to a separate library for upcoming public URL work (so that other files can call it directly as well)

* [Discussion] Increase timeout but add another warning timeout for slow servers

- per recommendation/convo with Brandon

* Register feature control

* Remove no_as_account from UI telemetry

- since we're no longer tracking that in the UI

* Address PR feedback - isSuperUser check

* Public URL support for Elastic Cloud (#21)

* Add server-side public URL route

- Per feedback from Kibana platform team, it's not possible to pass info from server/ to public/ without a HTTP call :[

* Update MockRouter for routes without any payload/params

* Add client-side helper for calling the new public URL API

+ API seems to return a URL a trailing slash, which we need to omit

* Update public/plugin.ts to check and set a public URL

- relies on this.hasCheckedPublicUrl to only make the call once per page load instead of on every page nav

* Fix failing feature control tests

- Split up scenario cases as needed
- Add plugin as an exception alongside ML & Monitoring

* Address PR feedback

- version: kibana
- copy edits
- Sass vars
- code cleanup

* Casing feedback: change all plugin registration IDs from snake_case to camelCase

- note: current remainng snake_case exceptions are telemetry keys
- file names and api endpoints are snake_case per conventions

* Misc security feedback

- remove set
- remove unnecessary capabilities registration
- telemetry namespace agnostic

* Security feedback: add warn logging to telemetry collector

see elastic#66922 (comment)
- add if statement
- pass log dependency around (this is kinda medium, should maybe refactor)
- update tests
- move test file comment to the right file (was meant for telemetry route file)

* Address feedback from Pierre

- Remove unnecessary ServerConfigType
- Remove unnecessary uiCapabilities
- Move registerTelemetryRoute / SavedObjectsServiceStart workaround
- Remove unnecessary license optional chaining

* PR feedback

Address type/typos

* Fix telemetry API call returning 415 on Chrome

- I can't even?? I swear charset=utf-8 fixed the same error a few weeks ago

* Fix failing tests

* Update Enterprise Search functional tests (without host) to run on CI

- Fix incorrect navigateToApp slug (hadn't realized this was a URL, not an ID)
- Update without_host_configured tests to run without API key
- Update README

* Address PR feedback from Pierre

- remove unnecessary authz?
- remove unnecessary content-type json headers
- add loggingSystemMock.collect(mockLogger).error assertion
- reconstrcut new MockRouter on beforeEach for better sandboxing
- fix incorrect describe()s -should be it()
- pull out reusable mockDependencies helper (renamed/extended from mockConfig) for tests that don't particularly use config/log but still want to pass type definitions
- Fix comment copy

Co-authored-by: Jason Stoltzfus <[email protected]>
Co-authored-by: Chris Cressman <[email protected]>
Co-authored-by: scottybollinger <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
5 people authored Jul 9, 2020
1 parent 9037018 commit f7b5144
Showing 112 changed files with 4,968 additions and 17 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -906,6 +906,18 @@ module.exports = {
},
},

/**
* Enterprise Search overrides
*/
{
files: ['x-pack/plugins/enterprise_search/**/*.{ts,tsx}'],
excludedFiles: ['x-pack/plugins/enterprise_search/**/*.{test,mock}.{ts,tsx}'],
rules: {
'react-hooks/exhaustive-deps': 'off',
'@typescript-eslint/no-explicit-any': 'error',
},
},

/**
* disable jsx-a11y for kbn-ui-framework
*/
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
This CODEOWNERS file contains errors

CODEOWNERS errors

  • Unknown owner on line 6: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …k/plugins/dashboard_enhanced/ @elastic/kibana-app
  • Unknown owner on line 7: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …ck/plugins/discover_enhanced/ @elastic/kibana-app
  • Unknown owner on line 8: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/lens/ @elastic/kibana-app
  • Unknown owner on line 9: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/graph/ @elastic/kibana-app
  • Unknown owner on line 10: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …ic/local_application_service/ @elastic/kibana-app
  • Unknown owner on line 11: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/dashboard/ @elastic/kibana-app
  • Unknown owner on line 12: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/discover/ @elastic/kibana-app
  • Unknown owner on line 13: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …rc/plugins/input_control_vis/ @elastic/kibana-app
  • Unknown owner on line 14: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/kibana_legacy/ @elastic/kibana-app
  • Unknown owner on line 15: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …c/plugins/vis_default_editor/ @elastic/kibana-app
  • Unknown owner on line 16: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …rc/plugins/vis_type_markdown/ @elastic/kibana-app
  • Unknown owner on line 17: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/vis_type_metric/ @elastic/kibana-app
  • Unknown owner on line 18: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/vis_type_table/ @elastic/kibana-app
  • Unknown owner on line 19: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …rc/plugins/vis_type_tagcloud/ @elastic/kibana-app
  • Unknown owner on line 20: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …rc/plugins/vis_type_timelion/ @elastic/kibana-app
  • Unknown owner on line 21: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    …/plugins/vis_type_timeseries/ @elastic/kibana-app
  • Unknown owner on line 22: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/vis_type_vega/ @elastic/kibana-app
  • Unknown owner on line 23: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/vis_type_vislib/ @elastic/kibana-app
  • Unknown owner on line 24: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/vis_type_xy/ @elastic/kibana-app
  • Unknown owner on line 25: make sure the team @elastic/kibana-app exists, is publicly visible, and has write access to the repository
    /src/plugins/visualize/ @elastic/kibana-app
  • Unknown owner on line 29: make sure the team @elastic/kibana-core-ui exists, is publicly visible, and has write access to the repository
    /src/plugins/home/public @elastic/kibana-core-ui
  • Unknown owner on line 30: make sure the team @elastic/kibana-core-ui exists, is publicly visible, and has write access to the repository
    /src/plugins/home/server/*.ts @elastic/kibana-core-ui
  • Unknown owner on line 31: make sure the team @elastic/kibana-core-ui exists, is publicly visible, and has write access to the repository
    …plugins/home/server/services/ @elastic/kibana-core-ui
  • Unknown owner on line 33: make sure the team @elastic/kibana-core-ui exists, is publicly visible, and has write access to the repository
    …ugins/kibana/public/home/*.ts @elastic/kibana-core-ui
  • Unknown owner on line 34: make sure the team @elastic/kibana-core-ui exists, is publicly visible, and has write access to the repository
    …ins/kibana/public/home/*.scss @elastic/kibana-core-ui
  • Unknown owner on line 35: make sure the team @elastic/kibana-core-ui exists, is publicly visible, and has write access to the repository
    …/kibana/public/home/np_ready/ @elastic/kibana-core-ui
  • Unknown owner on line 38: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /examples/developer_examples/ @elastic/kibana-app-arch
  • Unknown owner on line 39: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …ples/url_generators_examples/ @elastic/kibana-app-arch
  • Unknown owner on line 40: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …ples/url_generators_explorer/ @elastic/kibana-app-arch
  • Unknown owner on line 41: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /packages/kbn-interpreter/ @elastic/kibana-app-arch
  • Unknown owner on line 42: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /packages/elastic-datemath/ @elastic/kibana-app-arch
  • Unknown owner on line 43: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …/core_plugins/embeddable_api/ @elastic/kibana-app-arch
  • Unknown owner on line 44: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …acy/core_plugins/interpreter/ @elastic/kibana-app-arch
  • Unknown owner on line 45: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …cy/core_plugins/kibana_react/ @elastic/kibana-app-arch
  • Unknown owner on line 46: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …ins/kibana/public/management/ @elastic/kibana-app-arch
  • Unknown owner on line 47: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …server/routes/api/management/ @elastic/kibana-app-arch
  • Unknown owner on line 48: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …/core_plugins/visualizations/ @elastic/kibana-app-arch
  • Unknown owner on line 49: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …legacy/server/index_patterns/ @elastic/kibana-app-arch
  • Unknown owner on line 50: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …rc/plugins/advanced_settings/ @elastic/kibana-app-arch
  • Unknown owner on line 51: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/bfetch/ @elastic/kibana-app-arch
  • Unknown owner on line 52: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/data/ @elastic/kibana-app-arch
  • Unknown owner on line 53: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/embeddable/ @elastic/kibana-app-arch
  • Unknown owner on line 54: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/expressions/ @elastic/kibana-app-arch
  • Unknown owner on line 55: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/inspector/ @elastic/kibana-app-arch
  • Unknown owner on line 56: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/kibana_react/ @elastic/kibana-app-arch
  • Unknown owner on line 57: make sure the team @elastic/kibana-canvas exists, is publicly visible, and has write access to the repository
    …bana_react/public/code_editor @elastic/kibana-canvas
  • Unknown owner on line 58: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/kibana_utils/ @elastic/kibana-app-arch
  • Unknown owner on line 59: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/management/ @elastic/kibana-app-arch
  • Unknown owner on line 60: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/navigation/ @elastic/kibana-app-arch
  • Unknown owner on line 61: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/share/ @elastic/kibana-app-arch
  • Unknown owner on line 62: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/ui_actions/ @elastic/kibana-app-arch
  • Unknown owner on line 63: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /src/plugins/visualizations/ @elastic/kibana-app-arch
  • Unknown owner on line 64: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …/plugins/advanced_ui_actions/ @elastic/kibana-app-arch
  • Unknown owner on line 65: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    …x-pack/plugins/data_enhanced/ @elastic/kibana-app-arch
  • Unknown owner on line 66: make sure the team @elastic/kibana-app-arch exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/drilldowns/ @elastic/kibana-app-arch
  • Unknown owner on line 69: make sure the team @elastic/apm-ui exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/apm/  @elastic/apm-ui
  • Unknown owner on line 70: make sure the team @elastic/apm-ui exists, is publicly visible, and has write access to the repository
    …ck/test/functional/apps/apm/  @elastic/apm-ui
  • Unknown owner on line 71: make sure the team @elastic/apm-ui exists, is publicly visible, and has write access to the repository
    …legacy/core_plugins/apm_oss/  @elastic/apm-ui
  • Unknown owner on line 72: make sure the team @elastic/apm-ui exists, is publicly visible, and has write access to the repository
    /src/plugins/apm_oss/  @elastic/apm-ui
  • Unknown owner on line 73: make sure @vigneshshanmugam exists and has write access to the repository
    /src/apm.js @watson @vigneshshanmugam
  • Unknown owner on line 73: make sure @watson exists and has write access to the repository
    /src/apm.js @watson @vigneshshanmugam
  • Unknown owner on line 76: make sure the team @elastic/beats exists, is publicly visible, and has write access to the repository
    …cy/plugins/beats_management/  @elastic/beats
  • Unknown owner on line 79: make sure the team @elastic/kibana-canvas exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/canvas/  @elastic/kibana-canvas
  • Unknown owner on line 80: make sure the team @elastic/kibana-canvas exists, is publicly visible, and has write access to the repository
    …test/functional/apps/canvas/  @elastic/kibana-canvas
  • Unknown owner on line 83: make sure the team @elastic/logs-metrics-ui exists, is publicly visible, and has write access to the repository
    /x-pack/legacy/plugins/infra/ @elastic/logs-metrics-ui
  • Unknown owner on line 84: make sure the team @elastic/logs-metrics-ui exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/infra/ @elastic/logs-metrics-ui
  • Unknown owner on line 85: make sure the team @elastic/ingest-management exists, is publicly visible, and has write access to the repository
    …-pack/plugins/ingest_manager/ @elastic/ingest-management
  • Unknown owner on line 86: make sure the team @elastic/ingest-management exists, is publicly visible, and has write access to the repository
    …egacy/plugins/ingest_manager/ @elastic/ingest-management
  • Unknown owner on line 87: make sure the team @elastic/observability-ui exists, is publicly visible, and has write access to the repository
    …x-pack/plugins/observability/ @elastic/observability-ui
  • Unknown owner on line 88: make sure the team @elastic/stack-monitoring-ui exists, is publicly visible, and has write access to the repository
    …ck/legacy/plugins/monitoring/ @elastic/stack-monitoring-ui
  • Unknown owner on line 89: make sure the team @elastic/stack-monitoring-ui exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/monitoring/ @elastic/stack-monitoring-ui
  • Unknown owner on line 90: make sure the team @elastic/uptime exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/uptime @elastic/uptime
  • Unknown owner on line 93: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    /x-pack/legacy/plugins/ml/  @elastic/ml-ui
  • Unknown owner on line 94: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/ml/  @elastic/ml-ui
  • Unknown owner on line 95: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    …ional/apps/machine_learning/  @elastic/ml-ui
  • Unknown owner on line 96: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    …l/services/machine_learning/  @elastic/ml-ui
  • Unknown owner on line 97: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    …st/functional/services/ml.ts  @elastic/ml-ui
  • Unknown owner on line 99: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/transform/  @elastic/ml-ui
  • Unknown owner on line 100: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    …st/functional/apps/transform/ @elastic/ml-ui
  • Unknown owner on line 101: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    …tional/services/transform_ui/ @elastic/ml-ui
  • Unknown owner on line 102: make sure the team @elastic/ml-ui exists, is publicly visible, and has write access to the repository
    …ctional/services/transform.ts @elastic/ml-ui
  • Unknown owner on line 105: make sure the team @elastic/kibana-gis exists, is publicly visible, and has write access to the repository
    /x-pack/legacy/plugins/maps/ @elastic/kibana-gis
  • Unknown owner on line 106: make sure the team @elastic/kibana-gis exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/maps/ @elastic/kibana-gis
  • Unknown owner on line 107: make sure the team @elastic/kibana-gis exists, is publicly visible, and has write access to the repository
    …st/api_integration/apis/maps/ @elastic/kibana-gis
  • Unknown owner on line 108: make sure the team @elastic/kibana-gis exists, is publicly visible, and has write access to the repository
    …ck/test/functional/apps/maps/ @elastic/kibana-gis
  • Unknown owner on line 109: make sure the team @elastic/kibana-gis exists, is publicly visible, and has write access to the repository
    …/functional/es_archives/maps/ @elastic/kibana-gis
  • Unknown owner on line 110: make sure the team @elastic/kibana-gis exists, is publicly visible, and has write access to the repository
    …egression/tests/maps/index.js @elastic/kibana-gis
  • Unknown owner on line 113: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/dev/ @elastic/kibana-operations
  • Unknown owner on line 114: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/setup_node_env/ @elastic/kibana-operations
  • Unknown owner on line 115: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/optimize/ @elastic/kibana-operations
  • Unknown owner on line 116: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/es_archiver/ @elastic/kibana-operations
  • Unknown owner on line 117: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /packages/*eslint*/ @elastic/kibana-operations
  • Unknown owner on line 118: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /packages/*babel*/ @elastic/kibana-operations
  • Unknown owner on line 119: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /packages/kbn-dev-utils*/ @elastic/kibana-operations
  • Unknown owner on line 120: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /packages/kbn-es/ @elastic/kibana-operations
  • Unknown owner on line 121: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /packages/kbn-optimizer/ @elastic/kibana-operations
  • Unknown owner on line 122: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /packages/kbn-pm/ @elastic/kibana-operations
  • Unknown owner on line 123: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /packages/kbn-test/ @elastic/kibana-operations
  • Unknown owner on line 124: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /packages/kbn-ui-shared-deps/ @elastic/kibana-operations
  • Unknown owner on line 125: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/legacy/server/keystore/ @elastic/kibana-operations
  • Unknown owner on line 126: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/legacy/server/pid/ @elastic/kibana-operations
  • Unknown owner on line 127: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/legacy/server/sass/ @elastic/kibana-operations
  • Unknown owner on line 128: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/legacy/server/utils/ @elastic/kibana-operations
  • Unknown owner on line 129: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /src/legacy/server/warnings/ @elastic/kibana-operations
  • Unknown owner on line 130: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /.ci/es-snapshots/ @elastic/kibana-operations
  • Unknown owner on line 131: make sure the team @elastic/kibana-operations exists, is publicly visible, and has write access to the repository
    /vars/ @elastic/kibana-operations
  • Unknown owner on line 134: make sure the team @elastic/kibana-qa exists, is publicly visible, and has write access to the repository
    /src/dev/code_coverage @elastic/kibana-qa
  • Unknown owner on line 135: make sure the team @elastic/kibana-qa exists, is publicly visible, and has write access to the repository
    /vars/*Coverage.groovy @elastic/kibana-qa
  • Unknown owner on line 136: make sure the team @elastic/kibana-qa exists, is publicly visible, and has write access to the repository
    …st/functional/services/common @elastic/kibana-qa
  • Unknown owner on line 137: make sure the team @elastic/kibana-qa exists, is publicly visible, and has write access to the repository
    /test/functional/services/lib @elastic/kibana-qa
  • Unknown owner on line 138: make sure the team @elastic/kibana-qa exists, is publicly visible, and has write access to the repository
    …st/functional/services/remote @elastic/kibana-qa
  • Unknown owner on line 141: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /src/core/  @elastic/kibana-platform
  • Unknown owner on line 142: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /config/kibana.yml @elastic/kibana-platform
  • Unknown owner on line 143: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/features/  @elastic/kibana-platform
  • Unknown owner on line 144: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/licensing/  @elastic/kibana-platform
  • Unknown owner on line 145: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    …-pack/plugins/global_search/  @elastic/kibana-platform
  • Unknown owner on line 146: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/cloud/ @elastic/kibana-platform
  • Unknown owner on line 147: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    …st/saved_objects_field_count/ @elastic/kibana-platform
  • Unknown owner on line 148: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /packages/kbn-config-schema/ @elastic/kibana-platform
  • Unknown owner on line 149: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /src/legacy/server/config/ @elastic/kibana-platform
  • Unknown owner on line 150: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /src/legacy/server/http/ @elastic/kibana-platform
  • Unknown owner on line 151: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /src/legacy/server/logging/ @elastic/kibana-platform
  • Unknown owner on line 152: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    …legacy/server/saved_objects/  @elastic/kibana-platform
  • Unknown owner on line 153: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /src/legacy/server/status/ @elastic/kibana-platform
  • Unknown owner on line 154: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    /src/plugins/status_page/ @elastic/kibana-platform
  • Unknown owner on line 155: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    …ins/saved_objects_management/ @elastic/kibana-platform
  • Unknown owner on line 156: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    …heck_published_api_changes.ts @elastic/kibana-platform
  • Unknown owner on line 159: make sure the team @elastic/kibana-platform exists, is publicly visible, and has write access to the repository
    …sp/  @elastic/kibana-security @elastic/kibana-platform
  • Unknown owner on line 159: make sure the team @elastic/kibana-security exists, is publicly visible, and has write access to the repository
    /src/core/server/csp/  @elastic/kibana-security @elastic/kibana-platform
  • Unknown owner on line 160: make sure the team @elastic/kibana-security exists, is publicly visible, and has write access to the repository
    …ack/legacy/plugins/security/  @elastic/kibana-security
  • Unknown owner on line 161: make sure the team @elastic/kibana-security exists, is publicly visible, and has write access to the repository
    …-pack/legacy/plugins/spaces/  @elastic/kibana-security
  • Unknown owner on line 162: make sure the team @elastic/kibana-security exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/spaces/  @elastic/kibana-security
  • Unknown owner on line 163: make sure the team @elastic/kibana-security exists, is publicly visible, and has write access to the repository
    …ins/encrypted_saved_objects/  @elastic/kibana-security
  • Unknown owner on line 164: make sure the team @elastic/kibana-security exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/security/  @elastic/kibana-security
  • Unknown owner on line 165: make sure the team @elastic/kibana-security exists, is publicly visible, and has write access to the repository
    …pi_integration/apis/security/ @elastic/kibana-security
  • Unknown owner on line 168: make sure the team @elastic/kibana-localization exists, is publicly visible, and has write access to the repository
    /src/dev/i18n/  @elastic/kibana-localization
  • Unknown owner on line 169: make sure the team @elastic/kibana-localization exists, is publicly visible, and has write access to the repository
    /src/legacy/server/i18n/  @elastic/kibana-localization
  • Unknown owner on line 170: make sure the team @elastic/kibana-localization exists, is publicly visible, and has write access to the repository
    /src/core/public/i18n/  @elastic/kibana-localization
  • Unknown owner on line 171: make sure the team @elastic/kibana-localization exists, is publicly visible, and has write access to the repository
    /packages/kbn-i18n/  @elastic/kibana-localization
  • Unknown owner on line 174: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    /packages/kbn-analytics/ @elastic/kibana-telemetry
  • Unknown owner on line 175: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …packages/kbn-telemetry-tools/ @elastic/kibana-telemetry
  • Unknown owner on line 176: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …gins/kibana_usage_collection/ @elastic/kibana-telemetry
  • Unknown owner on line 177: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    /src/plugins/newsfeed/ @elastic/kibana-telemetry
  • Unknown owner on line 178: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    /src/plugins/telemetry/ @elastic/kibana-telemetry
  • Unknown owner on line 179: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …telemetry_collection_manager/ @elastic/kibana-telemetry
  • Unknown owner on line 180: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …telemetry_management_section/ @elastic/kibana-telemetry
  • Unknown owner on line 181: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …src/plugins/usage_collection/ @elastic/kibana-telemetry
  • Unknown owner on line 182: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …s/telemetry_collection_xpack/ @elastic/kibana-telemetry
  • Unknown owner on line 183: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    /.telemetryrc.json @elastic/kibana-telemetry
  • Unknown owner on line 184: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    /x-pack/.telemetryrc.json @elastic/kibana-telemetry
  • Unknown owner on line 185: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …chema/legacy_oss_plugins.json @elastic/kibana-telemetry
  • Unknown owner on line 186: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …metry/schema/oss_plugins.json @elastic/kibana-telemetry
  • Unknown owner on line 187: make sure the team @elastic/kibana-telemetry exists, is publicly visible, and has write access to the repository
    …ack/schema/xpack_plugins.json @elastic/kibana-telemetry
  • Unknown owner on line 190: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/alerts/ @elastic/kibana-alerting-services
  • Unknown owner on line 191: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/actions/ @elastic/kibana-alerting-services
  • Unknown owner on line 192: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/event_log/ @elastic/kibana-alerting-services
  • Unknown owner on line 193: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/task_manager/ @elastic/kibana-alerting-services
  • Unknown owner on line 194: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    …est/alerting_api_integration/ @elastic/kibana-alerting-services
  • Unknown owner on line 195: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    …gration/plugins/task_manager/ @elastic/kibana-alerting-services
  • Unknown owner on line 196: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    …ion/test_suites/task_manager/ @elastic/kibana-alerting-services
  • Unknown owner on line 197: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    …/plugins/triggers_actions_ui/ @elastic/kibana-alerting-services
  • Unknown owner on line 198: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    …ssl/apps/triggers_actions_ui/ @elastic/kibana-alerting-services
  • Unknown owner on line 199: make sure the team @elastic/kibana-alerting-services exists, is publicly visible, and has write access to the repository
    …_ssl/fixtures/plugins/alerts/ @elastic/kibana-alerting-services
  • Unknown owner on line 202: make sure the team @elastic/kibana-design exists, is publicly visible, and has write access to the repository
    **/*.scss  @elastic/kibana-design
  • Unknown owner on line 205: make sure the team @elastic/app-search-frontend exists, is publicly visible, and has write access to the repository
    …ck/plugins/enterprise_search/ @elastic/app-search-frontend @elastic/workplace-search-frontend
  • Unknown owner on line 205: make sure the team @elastic/workplace-search-frontend exists, is publicly visible, and has write access to the repository
    … @elastic/app-search-frontend @elastic/workplace-search-frontend
  • Unknown owner on line 206: make sure the team @elastic/app-search-frontend exists, is publicly visible, and has write access to the repository
    …functional_enterprise_search/ @elastic/app-search-frontend @elastic/workplace-search-frontend
  • Unknown owner on line 206: make sure the team @elastic/workplace-search-frontend exists, is publicly visible, and has write access to the repository
    … @elastic/app-search-frontend @elastic/workplace-search-frontend
  • Unknown owner on line 207: make sure the team @elastic/ent-search-design exists, is publicly visible, and has write access to the repository
    …s/enterprise_search/**/*.scss @elastic/ent-search-design
  • Unknown owner on line 210: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    /src/plugins/dev_tools/ @elastic/es-ui
  • Unknown owner on line 211: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    /src/plugins/console/  @elastic/es-ui
  • Unknown owner on line 212: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    /src/plugins/es_ui_shared/  @elastic/es-ui
  • Unknown owner on line 213: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …s/cross_cluster_replication/  @elastic/es-ui
  • Unknown owner on line 214: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …/index_lifecycle_management/  @elastic/es-ui
  • Unknown owner on line 215: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …cy/plugins/index_management/  @elastic/es-ui
  • Unknown owner on line 216: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …/plugins/license_management/  @elastic/es-ui
  • Unknown owner on line 217: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …-pack/legacy/plugins/rollup/  @elastic/es-ui
  • Unknown owner on line 218: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …cy/plugins/snapshot_restore/  @elastic/es-ui
  • Unknown owner on line 219: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …y/plugins/upgrade_assistant/  @elastic/es-ui
  • Unknown owner on line 220: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …/plugins/console_extensions/  @elastic/es-ui
  • Unknown owner on line 221: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …x-pack/plugins/es_ui_shared/  @elastic/es-ui
  • Unknown owner on line 222: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …x-pack/plugins/grokdebugger/  @elastic/es-ui
  • Unknown owner on line 223: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …ck/plugins/index_management/  @elastic/es-ui
  • Unknown owner on line 224: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …/plugins/license_management/  @elastic/es-ui
  • Unknown owner on line 225: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …x-pack/plugins/painless_lab/  @elastic/es-ui
  • Unknown owner on line 226: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …ack/plugins/remote_clusters/  @elastic/es-ui
  • Unknown owner on line 227: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/rollup/  @elastic/es-ui
  • Unknown owner on line 228: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …pack/plugins/searchprofiler/  @elastic/es-ui
  • Unknown owner on line 229: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …ck/plugins/snapshot_restore/  @elastic/es-ui
  • Unknown owner on line 230: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …k/plugins/upgrade_assistant/  @elastic/es-ui
  • Unknown owner on line 231: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/watcher/  @elastic/es-ui
  • Unknown owner on line 232: make sure the team @elastic/es-ui exists, is publicly visible, and has write access to the repository
    …ck/plugins/ingest_pipelines/  @elastic/es-ui
  • Unknown owner on line 235: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …t/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 235: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/endpoint/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 236: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …t/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 236: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …pi_integration/apis/endpoint/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 237: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …t/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 237: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …nt_api_integration_no_ingest/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 238: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …t/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 238: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …t/security_solution_endpoint/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 239: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …t/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 239: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …ctional/es_archives/endpoint/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 240: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …tional/plugins/resolver_test/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 240: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …t/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 241: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …ctional/test_suites/resolver/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 241: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …r/ @elastic/endpoint-app-team @elastic/siem
  • Unknown owner on line 244: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …ck/plugins/security_solution/ @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 244: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …urity_solution/ @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 245: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …ection_engine_api_integration @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 245: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …api_integration @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 246: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    …ration/apis/security_solution @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 246: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …curity_solution @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 247: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/case @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 247: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …ck/plugins/case @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 248: make sure the team @elastic/siem exists, is publicly visible, and has write access to the repository
    /x-pack/plugins/lists @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 248: make sure the team @elastic/endpoint-app-team exists, is publicly visible, and has write access to the repository
    …k/plugins/lists @elastic/siem @elastic/endpoint-app-team
  • Unknown owner on line 251: make sure the team @elastic/security-intelligence-analytics exists, is publicly visible, and has write access to the repository
    …ngine/rules/prepackaged_rules @elastic/security-intelligence-analytics
Original file line number Diff line number Diff line change
@@ -201,6 +201,11 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
# Design
**/*.scss @elastic/kibana-design

# Enterprise Search
/x-pack/plugins/enterprise_search/ @elastic/app-search-frontend @elastic/workplace-search-frontend
/x-pack/test/functional_enterprise_search/ @elastic/app-search-frontend @elastic/workplace-search-frontend
/x-pack/plugins/enterprise_search/**/*.scss @elastic/ent-search-design

# Elasticsearch UI
/src/plugins/dev_tools/ @elastic/es-ui
/src/plugins/console/ @elastic/es-ui

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/core/public/public.api.md
Original file line number Diff line number Diff line change
@@ -582,6 +582,12 @@ export const DEFAULT_APP_CATEGORIES: Readonly<{
euiIconType: string;
order: number;
};
enterpriseSearch: {
id: string;
label: string;
order: number;
euiIconType: string;
};
observability: {
id: string;
label: string;
6 changes: 6 additions & 0 deletions src/core/server/server.api.md
Original file line number Diff line number Diff line change
@@ -566,6 +566,12 @@ export const DEFAULT_APP_CATEGORIES: Readonly<{
euiIconType: string;
order: number;
};
enterpriseSearch: {
id: string;
label: string;
order: number;
euiIconType: string;
};
observability: {
id: string;
label: string;
12 changes: 10 additions & 2 deletions src/core/utils/default_app_categories.ts
Original file line number Diff line number Diff line change
@@ -29,20 +29,28 @@ export const DEFAULT_APP_CATEGORIES = Object.freeze({
euiIconType: 'logoKibana',
order: 1000,
},
enterpriseSearch: {
id: 'enterpriseSearch',
label: i18n.translate('core.ui.enterpriseSearchNavList.label', {
defaultMessage: 'Enterprise Search',
}),
order: 2000,
euiIconType: 'logoEnterpriseSearch',
},
observability: {
id: 'observability',
label: i18n.translate('core.ui.observabilityNavList.label', {
defaultMessage: 'Observability',
}),
euiIconType: 'logoObservability',
order: 2000,
order: 3000,
},
security: {
id: 'security',
label: i18n.translate('core.ui.securityNavList.label', {
defaultMessage: 'Security',
}),
order: 3000,
order: 4000,
euiIconType: 'logoSecurity',
},
management: {
1 change: 1 addition & 0 deletions x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@
"xpack.data": "plugins/data_enhanced",
"xpack.embeddableEnhanced": "plugins/embeddable_enhanced",
"xpack.endpoint": "plugins/endpoint",
"xpack.enterpriseSearch": "plugins/enterprise_search",
"xpack.features": "plugins/features",
"xpack.fileUpload": "plugins/file_upload",
"xpack.globalSearch": ["plugins/global_search"],
25 changes: 25 additions & 0 deletions x-pack/plugins/enterprise_search/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Enterprise Search

## Overview

This plugin's goal is to provide a Kibana user interface to the Enterprise Search solution's products (App Search and Workplace Search). In its current MVP state, the plugin provides a basic engines overview from App Search with the goal of gathering user feedback and raising product awareness.

## Development

1. When developing locally, Enterprise Search should be running locally alongside Kibana on `localhost:3002`.
2. Update `config/kibana.dev.yml` with `enterpriseSearch.host: 'http://localhost:3002'`
3. For faster QA/development, run Enterprise Search on [elasticsearch-native auth](https://www.elastic.co/guide/en/app-search/current/security-and-users.html#app-search-self-managed-security-and-user-management-elasticsearch-native-realm) and log in as the `elastic` superuser on Kibana.

## Testing

### Unit tests

From `kibana-root-folder/x-pack`, run:

```bash
yarn test:jest plugins/enterprise_search
```

### E2E tests

See [our functional test runner README](../../test/functional_enterprise_search).
7 changes: 7 additions & 0 deletions x-pack/plugins/enterprise_search/common/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export const ENGINES_PAGE_SIZE = 10;
10 changes: 10 additions & 0 deletions x-pack/plugins/enterprise_search/kibana.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "enterpriseSearch",
"version": "kibana",
"kibanaVersion": "kibana",
"requiredPlugins": ["home", "features", "licensing"],
"configPath": ["enterpriseSearch"],
"optionalPlugins": ["usageCollection", "security"],
"server": true,
"ui": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export { mockHistory } from './react_router_history.mock';
export { mockKibanaContext } from './kibana_context.mock';
export { mockLicenseContext } from './license_context.mock';
export { mountWithContext, mountWithKibanaContext } from './mount_with_context.mock';
export { shallowWithIntl } from './shallow_with_i18n.mock';

// Note: shallow_usecontext must be imported directly as a file
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { httpServiceMock } from 'src/core/public/mocks';

/**
* A set of default Kibana context values to use across component tests.
* @see enterprise_search/public/index.tsx for the KibanaContext definition/import
*/
export const mockKibanaContext = {
http: httpServiceMock.createSetupContract(),
setBreadcrumbs: jest.fn(),
enterpriseSearchUrl: 'http://localhost:3002',
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { licensingMock } from '../../../../licensing/public/mocks';

export const mockLicenseContext = {
license: licensingMock.createLicense(),
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import React from 'react';
import { mount } from 'enzyme';

import { I18nProvider } from '@kbn/i18n/react';
import { KibanaContext } from '../';
import { mockKibanaContext } from './kibana_context.mock';
import { LicenseContext } from '../shared/licensing';
import { mockLicenseContext } from './license_context.mock';

/**
* This helper mounts a component with all the contexts/providers used
* by the production app, while allowing custom context to be
* passed in via a second arg
*
* Example usage:
*
* const wrapper = mountWithContext(<Component />, { enterpriseSearchUrl: 'someOverride', license: {} });
*/
export const mountWithContext = (children: React.ReactNode, context?: object) => {
return mount(
<I18nProvider>
<KibanaContext.Provider value={{ ...mockKibanaContext, ...context }}>
<LicenseContext.Provider value={{ ...mockLicenseContext, ...context }}>
{children}
</LicenseContext.Provider>
</KibanaContext.Provider>
</I18nProvider>
);
};

/**
* This helper mounts a component with just the default KibanaContext -
* useful for isolated / helper components that only need this context
*
* Same usage/override functionality as mountWithContext
*/
export const mountWithKibanaContext = (children: React.ReactNode, context?: object) => {
return mount(
<KibanaContext.Provider value={{ ...mockKibanaContext, ...context }}>
{children}
</KibanaContext.Provider>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

/**
* NOTE: This variable name MUST start with 'mock*' in order for
* Jest to accept its use within a jest.mock()
*/
export const mockHistory = {
createHref: jest.fn(({ pathname }) => `/enterprise_search${pathname}`),
push: jest.fn(),
location: {
pathname: '/current-path',
},
};

jest.mock('react-router-dom', () => ({
useHistory: jest.fn(() => mockHistory),
}));

/**
* For example usage, @see public/applications/shared/react_router_helpers/eui_link.test.tsx
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

/**
* NOTE: These variable names MUST start with 'mock*' in order for
* Jest to accept its use within a jest.mock()
*/
import { mockKibanaContext } from './kibana_context.mock';
import { mockLicenseContext } from './license_context.mock';

jest.mock('react', () => ({
...(jest.requireActual('react') as object),
useContext: jest.fn(() => ({ ...mockKibanaContext, ...mockLicenseContext })),
}));

/**
* Example usage within a component test using shallow():
*
* import '../../../test_utils/mock_shallow_usecontext'; // Must come before React's import, adjust relative path as needed
*
* import React from 'react';
* import { shallow } from 'enzyme';
*
* // ... etc.
*/

/**
* If you need to override the default mock context values, you can do so via jest.mockImplementation:
*
* import React, { useContext } from 'react';
*
* // ... etc.
*
* it('some test', () => {
* useContext.mockImplementationOnce(() => ({ enterpriseSearchUrl: 'someOverride' }));
* });
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import React from 'react';
import { shallow } from 'enzyme';
import { I18nProvider } from '@kbn/i18n/react';
import { IntlProvider } from 'react-intl';

const intlProvider = new IntlProvider({ locale: 'en', messages: {} }, {});
const { intl } = intlProvider.getChildContext();

/**
* This helper shallow wraps a component with react-intl's <I18nProvider> which
* fixes "Could not find required `intl` object" console errors when running tests
*
* Example usage (should be the same as shallow()):
*
* const wrapper = shallowWithIntl(<Component />);
*/
export const shallowWithIntl = (children: React.ReactNode) => {
const context = { context: { intl } };

return shallow(<I18nProvider>{children}</I18nProvider>, context)
.childAt(0)
.dive(context)
.shallow();
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f7b5144

Please sign in to comment.