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

MMT-3418: As a metadata user, I want to CRUD draft UMM-V records #1097

Merged
merged 204 commits into from
Jan 26, 2024

Conversation

dmistry1
Copy link
Collaborator

@dmistry1 dmistry1 commented Jan 4, 2024

No description provided.

macrouch and others added 30 commits November 7, 2023 12:46
Added:
CustomSelect
CustomTextarea
CustomDateTime
CustomArrayField
Copy link
Contributor

@mandyparson mandyparson left a 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

@trevorlang trevorlang self-requested a review January 5, 2024 20:00
Copy link
Collaborator

@trevorlang trevorlang left a comment

Choose a reason for hiding this comment

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

Accidentally approved early :)

@dmistry1 dmistry1 changed the base branch from MMT-3390 to MMT-3414 January 8, 2024 18:29
Base automatically changed from MMT-3414 to MMT-3390 January 16, 2024 17:23
@dmistry1 dmistry1 requested a review from trevorlang January 17, 2024 14:15
const formArrays = Object.values(formDataParam)

// eslint-disable-next-line max-len
return formArrays.every((formArray) => formArray.filter(isNullOrUndefined).length === formArray.length)
Copy link
Collaborator

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]
// }
Copy link
Collaborator

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 = {}
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove commented code

@dmistry1 dmistry1 merged commit 0cccb44 into MMT-3390 Jan 26, 2024
@dmistry1 dmistry1 deleted the MMT-3418 branch January 26, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants