-
Notifications
You must be signed in to change notification settings - Fork 241
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
[INT] Refactored some of the plugins #10943
Conversation
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.
Thanks for splitting these PRs. I think this change looks good, there's just one area that we'll want to consider updating.
shell/plugins/global-formatters.js
Outdated
console.warn('The implicit addition of global formatters has been deprecated in Rancher Shell and will be removed in a future version. Make sure to invoke `Vue.use(globalFormatters)` to maintain compatibility.'); | ||
|
||
Vue.use(globalFormatters); |
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.
It looks like we might only require these lines when running tests. Can we update this to use the same pattern as what we use in the i18n plugin now?
shell/plugins/global-formatters.js
Outdated
@@ -1,10 +1,24 @@ | |||
import Vue from 'vue'; | |||
/* eslint-disable no-console */ | |||
import Vue from 'vue';const components = require.context('@shell/components/formatter', false, /[A-Z]\w+\.(vue)$/); |
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.
Did eslint incorrectly munge this line?
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 - thanks!
I just have one more comment about the content of a comment.
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
Summary
Fixes #10774
Refactors:
Occurred changes and/or fixed issues
Technical notes summary
Areas or cases that should be tested
The entire application is affected since these plugins are globally used.
In particular:
Areas which could experience regressions
The entire application is affected since these plugins are globally used.
Screenshot/Video
Checklist