x-pack/platform/plugins/private/graph/README.md
This is the main source folder of the Graph plugin. It contains all of the Kibana server and client source code. x-pack/platform/test/functional/apps/graph contains additional functional tests.
Graph shows only up in the side bar if your server is running on a platinum or trial license. You can activate a trial license in Management > License Management.
yarn test:jest x-pack/platform/plugins/private/graph --watchnode scripts/type_check.js --project=x-pack/tsconfig.jsonnode scripts/eslint.js x-pack/platform/plugins/private/graphnode ./scripts/functional_tests_server.js --config x-pack/platform/test/functional/apps/graph/config.tsnode scripts/functional_test_runner.js --config x-pack/platform/test/functional/apps/graph/config.tspublic/Currently state handled by react/redux/saga and the core mutable GraphWorkspace instance, which managing the nodes and edges state. It should be rewritten in typescript and integrated into redux store.
apps/ contains all graph app routescomponents/ contains react components for various parts of the interface. Components can hold local UI state (e.g. current form data), everything else should be passed in from the caller. Styles should reside in a component-specific stylesheetservices/ contains the core workspace logic and functions that encapsule other parts of Kibana. Stateful dependencies are passed in from the outside. Components should not rely on services directly but have callbacks passed in. Once the migration to redux/saga is complete, only sagas will use serviceshelpers/ contains side effect free helper functions that can be imported and used from components and servicesstate_management/ contains reducers, action creators, selectors and sagas. It also exports the central store creator
<functional area>.sagas.ts.types/ contains type definitions for unmigrated GraphWorkspace methodsrouter.tsx is the central entrypoint of the appserver/The Graph server is only forwarding requests to Elasticsearch API and contains very little logic. It will be rewritten soon.