Skip to content

Conversation

@labkey-danield
Copy link
Contributor

Rationale

Addressing some random failures in Community.

Related Pull Requests

  • None

Changes

  • Add "()" and "{}" as exclusions when creating the default value of the name expression.
  • Wait for the indexer after adding samples (addressing an intermittent failure in MSSQL)

@labkey-danield labkey-danield requested a review from XingY August 15, 2025 15:44
// Issue 53548: Naming Pattern with a default value containing a () or {} cannot be saved.
private static final String DEFAULT_SAMPLE_PARENT_VALUE = "SS" +
EscapeUtil.escapeForNameExpression(TestDataGenerator.randomString(3));
EscapeUtil.escapeForNameExpression(TestDataGenerator.randomString(3, "{}()"));
Copy link
Contributor

Choose a reason for hiding this comment

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

I also included '_' underscore character as excluded charset due to it being used in split

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added "_" as well.

@labkey-danield labkey-danield merged commit 38aceec into develop Aug 15, 2025
5 of 6 checks passed
@labkey-danield labkey-danield deleted the fb_miscTestFixes branch August 15, 2025 20:35
XingY added a commit that referenced this pull request Aug 15, 2025
# Conflicts:
#	src/org/labkey/test/tests/SampleTypeNameExpressionTest.java
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