-
Notifications
You must be signed in to change notification settings - Fork 39
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
MMT-3418: As a metadata user, I want to CRUD draft UMM-V records #1097
Conversation
Added: CustomSelect CustomTextarea CustomDateTime CustomArrayField
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's also a failing test in ManagePage.test.js
static/src/js/components/CustomSelectWidget/CustomSelectWidget.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/CustomSelectWidget/CustomSelectWidget.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/CustomSelectWidget/CustomSelectWidget.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/GridCheckboxPanel/GridCheckboxPanel.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/GridCheckboxPanel/GridCheckboxPanel.jsx
Outdated
Show resolved
Hide resolved
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.
Accidentally approved early :)
static/src/js/components/GridGroupedSinglePanel/GridGroupedSinglePanel.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/GridGroupedSinglePanel/__tests__/GridGroupedSinglePanel.test.js
Outdated
Show resolved
Hide resolved
static/src/js/components/GridGroupedSinglePanel/__tests__/GridGroupedSinglePanel.test.js
Outdated
Show resolved
Hide resolved
const formArrays = Object.values(formDataParam) | ||
|
||
// eslint-disable-next-line max-len | ||
return formArrays.every((formArray) => formArray.filter(isNullOrUndefined).length === formArray.length) |
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.
This can be reformatted to prevent the max-len error
Object.getOwnPropertyNames(formData).map((field) => ( | ||
// eslint-disable-next-line no-param-reassign | ||
delete formData[field] | ||
// } |
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.
Comment?
} | ||
|
||
// eslint-disable-next-line no-param-reassign | ||
formData = {} |
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 think its generally bad to be manipulating the keys of an object, which is why eslint is complaining. Did you try to achieve this without having to manipulate the object like this?
if (!found) { | ||
return null | ||
} | ||
// Const { oneOf } = schema |
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.
Remove commented code
No description provided.