-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] [NP] Removing ui imports #56358
[ML] [NP] Removing ui imports #56358
Conversation
9682027
to
b47cee3
Compare
retest |
a44e363
to
4088397
Compare
Pinging @elastic/ml-ui (:ml) |
💔 Build Failed
History
To update your PR or re-run it, just comment with: |
a05ea62
to
286d559
Compare
💔 Build Failed
History
To update your PR or re-run it, just comment with: |
💚 Build Succeeded
History
To update your PR or re-run it, just comment with: |
💚 Build Succeeded
History
To update your PR or re-run it, just comment with: |
.../plugins/ml/public/application/components/annotations/annotations_table/annotations_table.js
Outdated
Show resolved
Hide resolved
...ugins/ml/public/application/components/full_time_range_selector/full_time_range_selector.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/ml/public/application/hacks/toggle_app_link_in_nav.js
Outdated
Show resolved
Hide resolved
defaultMessage: 'Forecasts', | ||
}), | ||
content: <ForecastsTable job={job} />, | ||
} | ||
); | ||
} | ||
|
||
if (mlAnnotationsEnabled && showFullDetails) { | ||
if (showFullDetails) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the mlAnnotationsEnabled
check not needed any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as part of this work i removed the mlAnnotationsEnabled
flag.
it was originally being set on the server from a constant value that never changed from being true
.
it was then being imported using a chrome function that needed to be removed.
I discussed with @walterra and we agreed that it was redundant code that could be removed.
...acy/plugins/ml/public/application/jobs/jobs_list/components/jobs_list_view/jobs_list_view.js
Outdated
Show resolved
Hide resolved
...acy/plugins/ml/public/application/jobs/jobs_list/components/jobs_list_view/jobs_list_view.js
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/ml/public/application/routing/routes/new_job/wizard.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/ml/public/application/util/dependency_cache.ts
Outdated
Show resolved
Hide resolved
import { i18n } from '@kbn/i18n'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
|
||
export class DeleteJobModal extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this on master also. So not a new warning
76e7a27
to
70b18a8
Compare
36dd3eb
to
8464f2a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* [ML] [NP] Removing ui imports * replacing timefilter and ui context * replacing ui/i18n and ui/metadata * removing ui/system_api * removing ui/notify * removing most ui/new_platform * fix explorer date format loading * removing ui/chrome * fixing timebuckets test * fixing jest tests * adding http * testing odd CI type failure * revrting type test changes * fixing odd test type error * refactoring dependencies * removing injectI18n and using withKibana for context * updating components to use kibana context * re-enabling some tests * fixing translation strings * adding comments * removing commented out code * missing i18n * fixing rebase conflicts * removing unused ui contexts * changes based on review * adding text to errors * fixing management plugin * changes based on review * refeactor after rebase * fixing test
* [ML] [NP] Removing ui imports * replacing timefilter and ui context * replacing ui/i18n and ui/metadata * removing ui/system_api * removing ui/notify * removing most ui/new_platform * fix explorer date format loading * removing ui/chrome * fixing timebuckets test * fixing jest tests * adding http * testing odd CI type failure * revrting type test changes * fixing odd test type error * refactoring dependencies * removing injectI18n and using withKibana for context * updating components to use kibana context * re-enabling some tests * fixing translation strings * adding comments * removing commented out code * missing i18n * fixing rebase conflicts * removing unused ui contexts * changes based on review * adding text to errors * fixing management plugin * changes based on review * refeactor after rebase * fixing test
* 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) ...
Fixes a regression introduced by #56358. We're reusing the KqlFilterBar from the ML plugin in the transform plugin and missed updating the dependency management. Note this PR is only about fixing that regression. Future work on NP migration should take care of cleaning up the dependency management in the transforms plugin in general.
Fixes a regression introduced by elastic#56358. We're reusing the KqlFilterBar from the ML plugin in the transform plugin and missed updating the dependency management. Note this PR is only about fixing that regression. Future work on NP migration should take care of cleaning up the dependency management in the transforms plugin in general.
…7852) Fixes a regression introduced by #56358. We're reusing the KqlFilterBar from the ML plugin in the transform plugin and missed updating the dependency management. Note this PR is only about fixing that regression. Future work on NP migration should take care of cleaning up the dependency management in the transforms plugin in general.
Removed all imports from
'ui/...'
Makes use of the kibana context where possible. For utility functions which are non-react, a cache of imported dependencies has been added. These are cleared when the app is closed using
onAppLeave
Removes the use of
injectI18n
for translations.Uses
withKibana
for components which can't useuseMlKibana
hook.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] 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- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately