Skip to content

Ui Actions explorer example#57006

Merged
stacey-gammon merged 5 commits intoelastic:masterfrom
stacey-gammon:2019-12-12-ui-actions-explorer
Feb 11, 2020
Merged

Ui Actions explorer example#57006
stacey-gammon merged 5 commits intoelastic:masterfrom
stacey-gammon:2019-12-12-ui-actions-explorer

Conversation

@stacey-gammon
Copy link
Copy Markdown

@stacey-gammon stacey-gammon commented Feb 6, 2020

Ui actions examples.

Default hello world trigger and action.

Screen Shot 2020-02-06 at 11 56 46 AM

Ability to dynamically add new ones to highlight the context menu:
Screen Shot 2020-02-06 at 11 56 51 AM

Screen Shot 2020-02-06 at 11 56 54 AM

Screen Shot 2020-02-06 at 11 56 57 AM

Newly added, triggers with context. Highlights the issue with nested executeTriggerContext calls. Types could really be improved here too, no type checking that the context emitted by the trigger and that needed by the action match up.

Screen Shot 2020-02-06 at 4 26 02 PM

Screen Shot 2020-02-06 at 4 25 55 PM

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@stacey-gammon stacey-gammon added v7.7.0 release_note:skip Skip the PR/issue when compiling release notes labels Feb 6, 2020
@stacey-gammon stacey-gammon force-pushed the 2019-12-12-ui-actions-explorer branch from 8c40dc8 to 4b5ebcd Compare February 6, 2020 21:26
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@stacey-gammon stacey-gammon force-pushed the 2019-12-12-ui-actions-explorer branch from 1987a23 to 874ea11 Compare February 7, 2020 15:02
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

History

  • 💔 Build #25088 failed 4b5ebcda915a21ab2fd12e8c0da6123c2a558092

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@ppisljar
Copy link
Copy Markdown
Contributor

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we be cleaning this up somewhere ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I don't think so, though a page refresh will remove the dynamically added actions. I added a note in the success callout:

Refresh the page to reset state. It's up to the user of the system to persist state like this.

Copy link
Copy Markdown
Contributor

@streamich streamich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 75 to 80
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we register these in start life-cycle, or even better, in setup life-cycle?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved what I could to setup, rest in start, a couple needed some start context.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this PR, but in general, should we register everything in setup life-cycles? As that was the idea for the setup life-cycle. For example, if something needs start life-cycle contracts we can pass in the promise:

setup(core) {
  const start = core.getStartServices();
  deps.uiActions.registerAction(createPhoneUserAction(start));
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Thanks, updated in this PR.

@stacey-gammon stacey-gammon force-pushed the 2019-12-12-ui-actions-explorer branch from 559ba88 to 74c3a11 Compare February 10, 2020 18:16
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@stacey-gammon stacey-gammon merged commit 2ae70d9 into elastic:master Feb 11, 2020
stacey-gammon pushed a commit to stacey-gammon/kibana that referenced this pull request Feb 11, 2020
* wip

* Move action registration out of AppMountContext fn

* Move all registration to setup

* Fix type error
stacey-gammon pushed a commit that referenced this pull request Feb 11, 2020
* wip

* Move action registration out of AppMountContext fn

* Move all registration to setup

* Fix type error
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 11, 2020
* master: (27 commits)
  Include actions new platform plugin for codeowners (elastic#57252)
  [APM][docs] 7.6 documentation updates (elastic#57124)
  Expressions refactor (elastic#54342)
  [ML] New Platform server shim: update annotation routes to use new platform router  (elastic#57067)
  Remove injected ui app vars from Canvas (elastic#56190)
  update max_anomaly_score route schema to handle possible undefined values (elastic#57339)
  [Add panel flyout] Moving create new to the top of SavedObjectFinder (elastic#56428)
  Add mock of a legacy ui api to re-enable Canvas storybook (elastic#56673)
  [monitoring] Removes noisy event received log (elastic#57275)
  Remove use of copied MANAGEMENT_BREADCRUMBS and use `setBreadcrumbs` from management section's mount (elastic#57324)
  Advanced Settings management app to kibana platform plugin (elastic#56931)
  [ML] New Platform server shim: update recognize modules routes to use new platform router (elastic#57206)
  [ML] Fix overall stats for saved search on the Data Visualizer page (elastic#57312)
  [ML] [NP] Removing ui imports (elastic#56358)
  [SIEM] Fixes failing Cypress tests (elastic#57202)
  Create observability CODEOWNERS reference (elastic#57109)
  fix results service schema (elastic#57217)
  don't register a wrapper if browser side function exists. (elastic#57196)
  Ui Actions explorer example (elastic#57006)
  Fix update alert API to still work when AAD is out of sync (elastic#57039)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Actions release_note:skip Skip the PR/issue when compiling release notes review v7.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants