Skip to content

GitHub Issue 954: Add error for duplicate values for parent inputs#1977

Open
XingY wants to merge 4 commits intodevelopfrom
fb_duplicateParents
Open

GitHub Issue 954: Add error for duplicate values for parent inputs#1977
XingY wants to merge 4 commits intodevelopfrom
fb_duplicateParents

Conversation

@XingY
Copy link
Copy Markdown
Contributor

@XingY XingY commented Apr 7, 2026

@XingY XingY changed the title Fb duplicate parents GitHub Issue 954: Add error for duplicate values for parent inputs Apr 7, 2026
@XingY XingY requested a review from labkey-susanh April 8, 2026 22:24
});

test('duplicate values', () => {
// single duplicate
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rather than one test with comments on the test cases, this could be better done as separate tests with the comments acting as the test name.

message = { message: lookupValidationErrorMessage(valueStr, true) };
} else if (dupValues.size > 0) {
const valueStr = Array.from(dupValues)
.slice(0, 4)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I assume the slicing is to keep the message size small and see that it's done in the previous block too, but it seems somewhat magical.

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.

2 participants