-
Notifications
You must be signed in to change notification settings - Fork 707
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
New deployment forms: changes in operator-related views #5411
Conversation
…nstead Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
✅ Deploy Preview for kubeapps-dev canceled.
|
dashboard/src/shared/schema.ts
Outdated
@@ -4,9 +4,9 @@ | |||
import Ajv, { ErrorObject, JSONSchemaType } from "ajv"; | |||
import * as jsonpatch from "fast-json-patch"; | |||
import * as yaml from "js-yaml"; | |||
import { isEmpty, set } from "lodash"; | |||
import _ from "lodash"; |
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.
Why using _
instead of importing the needed functions?
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.
You're right, we should import them explicitly (see this benchmark). I just added some ongoing changes in my working branch, where I just used the usual _
import for lodash, but we should decrease the bundle size when possible. Thanks!
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
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!
Description of the change
Before start adding deep changes to the deployment form, this PR is extracting those views related to operators (which will get refactored once we encapsulate the operators as a plugin) and aligning the views to the new "in-line diff editor".
Therefore, the old (and pretty unmaintained)
Differential
component, has been removed in these views (but they have not in the non-operators ones for now).Also, adding a couple of minor changes in the utility functions.
Benefits
The non-operator-related views can be now safely modified in subsequent PRs.
Possible drawbacks
N/A
Applicable issues
Additional information
I'll be stacking more PRs on top of this one.