Skip to content

[ML] New Platform server shim: update indices routes - #57685

Merged
darnautov merged 3 commits into
elastic:masterfrom
darnautov:ML-49743-indicesRoutes
Feb 17, 2020
Merged

darnautov merged 3 commits into
elastic:masterfrom
darnautov:ML-49743-indicesRoutes

Conversation

@darnautov

@darnautov darnautov commented Feb 14, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Part of #49743.

Checklist

  • Documentation was added for features that require explanation or tutorials

@darnautov darnautov added :ml v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.7.0 labels Feb 14, 2020
@darnautov
darnautov requested a review from a team as a code owner February 14, 2020 13:30
@darnautov darnautov self-assigned this Feb 14, 2020
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

@alvarezmelissa87 alvarezmelissa87 left a comment

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.

LGTM ⚡️

@peteharverson peteharverson left a comment

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.

I think the route part of this is ok, but I am getting errors when using the View examples item in the anomalies table links menu ml\public\application\components\anomalies_table\links_menu.js viewExamples function that calls this route.

There are incorrect uses of this.props inside that function. I think it's worth fixing those in this PR too.

@jgowdyelastic

jgowdyelastic commented Feb 14, 2020 •

Copy link
Copy Markdown
Member

There are incorrect uses of this.props inside that function. I think it's worth fixing those in this PR too.

it might be worth adding toasts and basePath to the class as they're used so much.

@darnautov

Copy link
Copy Markdown
Contributor Author

There are incorrect uses of this.props inside that function. I think it's worth fixing those in this PR too.

it might be worth adding toasts and basePath to the class as they're used so much.

actually basePath is used only once, toasts twice. I'd prefer to keep them in props and just change the error function to be an arrow one without context.

@darnautov

Copy link
Copy Markdown
Contributor Author

I think the route part of this is ok, but I am getting errors when using the View examples item in the anomalies table links menu ml\public\application\components\anomalies_table\links_menu.js viewExamples function that calls this route.

There are incorrect uses of this.props inside that function. I think it's worth fixing those in this PR too.

Fixed in 93ed566

@kibanamachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

@jgowdyelastic jgowdyelastic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested, LGTM

@darnautov
darnautov merged commit 84be262 into elastic:master Feb 17, 2020
@darnautov
darnautov deleted the ML-49743-indicesRoutes branch February 17, 2020 09:59
darnautov added a commit to darnautov/kibana that referenced this pull request Feb 17, 2020
* [ML] NP indices routes

* [ML] fix error function

* [ML] fix createAndOpenUrl function
jloleysens added a commit to jloleysens/kibana that referenced this pull request Feb 17, 2020
…re/files-and-filetree

* 'master' of github.com:elastic/kibana: (139 commits)
  Move Ace XJSON lexer-rules, worker and utils to es_ui_shared (elastic#57563)
  [Upgrade Assistant] Fix filter deprecations search filter (elastic#57541)
  [ML] New Platform server shim: update indices routes (elastic#57685)
  Bump redux dependencies (elastic#53348)
  [Index management] Client-side NP ready (elastic#57295)
  change id of x-pack event_log plugin to eventLog (elastic#57612)
  [eventLog] get kibana.index name from config instead of hard-coding it (elastic#57607)
  revert
  allow using any path to generate
  fixes ui titles (elastic#57535)
  Fix login redirect for expired sessions (elastic#57157)
  Expose Vis on the contract as it requires visTypes (elastic#56968)
  [SIEM][Detection Engine] Fixes queries to ignore errors when signals index is not present
  [Remote clusters] Migrate client-side code out of legacy (elastic#57365)
  Fix failed test reporter for SIEM Cypress use (elastic#57240)
  skip flaky suite (elastic#45244)
  update chromedriver to 80.0.1 (elastic#57602)
  change slack action to only report on whitelisted host name (elastic#57582)
  [kbn/optimizer] throw errors into stream on invalid completion (elastic#57735)
  moving visualize/utils to new platform (elastic#56650)
  ...
darnautov added a commit that referenced this pull request Feb 21, 2020
* [ML] NP indices routes

* [ML] fix error function

* [ML] fix createAndOpenUrl function

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* [ML] NP indices routes

* [ML] fix error function

* [ML] fix createAndOpenUrl function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants