Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Removing old angular directives #48382

Merged

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Oct 16, 2019

Removes unused angular directives from components which have been reactified.
Adjusts some component exports and import paths.

This converts the access denied page to react but this avoids any other reactification or typescriptification which would be out of scope for this PR.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
- [ ] Documentation was added for features that require explanation or tutorials

For maintainers

@jgowdyelastic jgowdyelastic added review chore non-issue Indicates to automation that a pull request should not appear in the release notes :ml v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.6.0 labels Oct 16, 2019
@jgowdyelastic jgowdyelastic requested review from a team as code owners October 16, 2019 09:20
@jgowdyelastic jgowdyelastic self-assigned this Oct 16, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

<EuiSpacer size="m" />
<EuiCallOut
title={i18n.translate('xpack.ml.accessDenied.label', {
defaultMessage: 'You need permission to access ML jobs',
Copy link
Contributor

Choose a reason for hiding this comment

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

Compared to the previous angular version, the texts here don't mention the user roles anymore. However, the text is still specific about ML jobs, which could be irrelevant if a user doesn't have permissions to even access file visualizer. Maybe the messaging should be even more generic for this PR until we can come up with something more elaborate in combination with react-router?

Copy link
Member Author

Choose a reason for hiding this comment

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

good point. i've updated the text.
It's worth noting that currently this page will not be redirected to automatically. So unless someone navigates to it directly in their browser, no one will see it.

@jgowdyelastic
Copy link
Member Author

#18374

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

One text edit need to the Callout, but otherwise LGTM

<EuiSpacer size="m" />
<EuiCallOut
title={i18n.translate('xpack.ml.accessDenied.label', {
defaultMessage: 'You need permission to the Ml plugin',
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be ML rather than Ml to be consistent with message below.
Also title doesn't quite make sense - You need permission to use the ML plugin or maybe Insufficient permissions ?

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

Latest changes LGTM.

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡️

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@jgowdyelastic jgowdyelastic merged commit 5b16546 into elastic:master Oct 16, 2019
@jgowdyelastic jgowdyelastic deleted the removing-old-angular-directives branch October 16, 2019 13:36
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Oct 16, 2019
* [ML] Removing old angular directives

* reverts small change

* typescriptifying access denied page

* changing access denied text

* updating translations
jgowdyelastic added a commit that referenced this pull request Oct 16, 2019
* [ML] Removing old angular directives

* reverts small change

* typescriptifying access denied page

* changing access denied text

* updating translations
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Oct 16, 2019
* [ML] Removing old angular directives

* reverts small change

* typescriptifying access denied page

* changing access denied text

* updating translations
jgowdyelastic added a commit that referenced this pull request Oct 16, 2019
* [ML] Removing old angular directives

* reverts small change

* typescriptifying access denied page

* changing access denied text

* updating translations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore :ml non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes review v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants