Skip to content

test setRequired()#2937

Merged
labkey-matthewb merged 2 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_blank_sql
Apr 7, 2026
Merged

test setRequired()#2937
labkey-matthewb merged 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.

@labkey-matthewb labkey-matthewb changed the title test set required test setRequired() Apr 7, 2026
@labkey-matthewb labkey-matthewb merged commit a9b1c39 into release26.3-SNAPSHOT Apr 7, 2026
5 checks passed
@labkey-matthewb labkey-matthewb deleted the 26.3_fb_blank_sql branch April 7, 2026 17:29
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