Skip to content

test set required#2937

Open
labkey-matthewb wants to merge 2 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_blank_sql
Open

test set required#2937
labkey-matthewb wants to merge 2 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_blank_sql

Conversation

@labkey-matthewb
Copy link
Copy Markdown
Contributor

Rationale

Test that field (non-MVTC) can't be set to required if null is present

regression test for change in LabKey/platform#7549

Related Pull Requests

-

Changes

@labkey-matthewb labkey-matthewb requested a review from XingY April 6, 2026 22:37
Copy link
Copy Markdown
Contributor

@XingY XingY left a comment

Choose a reason for hiding this comment

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

Looks like we already have a DomainDesignerTest that tries to test some of the required toggle scenarios.

// insert a row with a NULL value and NON-NULL value
Map<String, String> row = new HashMap<>();
row.put(fieldA, "not null");
row.put(fieldB, "");
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.

Should there be a fieldC, that has a mixed value of empty and not empty, that also cannot be set to required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adding a second row to cover that makes sense.

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