kibana/x-pack/plugins/ui_actions_enhanced
Spencer fecdba7eba
[eslint] add rule to prevent export* in plugin index files (#109357)
* [eslint] add rule to prevent export* in plugin index files

* deduplicate export names for types/instances with the same name

* attempt to auto-fix duplicate exports too

* capture exported enums too

* enforce no_export_all for core too

* disable rule by default, allow opting-in for help fixing

* update tests

* reduce yarn.lock duplication

* add rule but no fixes

* disable all existing violations

* update api docs with new line numbers

* revert unnecessary changes to yarn.lock which only had drawbacks

* remove unnecessary eslint-disable

* rework codegen to split type exports and use babel to generate valid code

* check for "export types" deeply

* improve test by using fixtures

* add comments to some helper functions

* disable fix for namespace exports including types

* label all eslint-disable comments with related team-specific issue

* ensure that child exports of `export type` are always tracked as types

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 18:05:45 -07:00
..
.storybook Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
common [eslint] add rule to prevent export* in plugin index files (#109357) 2021-09-01 18:05:45 -07:00
public [eslint] add rule to prevent export* in plugin index files (#109357) 2021-09-01 18:05:45 -07:00
server [Data cleanup] unify serializable state (#107745) 2021-08-10 13:03:48 +02:00
.eslintrc.json
jest.config.js Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
kibana.json Adding owners to kibana plugins (#108407) 2021-08-17 10:21:06 -04:00
README.md
tsconfig.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00

ui_actions_enhanced

Registers commercially licensed generic actions like per panel time range and contains some code that supports drilldown work.

Dynamic Actions Telemetry

Dynamic actions (drilldowns) report telemetry. Below is the summary of dynamic action metrics that are reported using telemetry.

Dynamic action count

Total count of dynamic actions (drilldowns) on a saved object.

dynamicActions.count

Count by factory ID

Count of active dynamic actions (drilldowns) on a saved object by factory ID (drilldown type).

dynamicActions.actions.<factory_id>.count

For example:

dynamicActions.actions.DASHBOARD_TO_DASHBOARD_DRILLDOWN.count
dynamicActions.actions.URL_DRILLDOWN.count

Count by trigger

Count of active dynamic actions (drilldowns) on a saved object by a trigger to which they are attached.

dynamicActions.triggers.<trigger>.count

For example:

dynamicActions.triggers.VALUE_CLICK_TRIGGER.count
dynamicActions.triggers.RANGE_SELECT_TRIGGER.count

Count by factory and trigger

Count of active dynamic actions (drilldowns) on a saved object by a factory ID and trigger ID.

dynamicActions.action_triggers.<factory_id>_<trigger>.count

For example:

dynamicActions.action_triggers.DASHBOARD_TO_DASHBOARD_DRILLDOWN_VALUE_CLICK_TRIGGER.count
dynamicActions.action_triggers.DASHBOARD_TO_DASHBOARD_DRILLDOWN_RANGE_SELECT_TRIGGER.count
dynamicActions.action_triggers.URL_DRILLDOWN_VALUE_CLICK_TRIGGER.count

Factory metrics

Each dynamic action factory (drilldown type) can report its own stats, which is done using the .telemetry() method on dynamic action factories.