Skip to content

Commit c0ee84d

Browse files
Issue 53360: User comments for domain changes are not being saved when there are naming pattern warnings. (#1818)
1 parent 2db48c0 commit c0ee84d

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

packages/components/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/components",
3-
"version": "6.52.4",
3+
"version": "6.52.5",
44
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
55
"sideEffects": false,
66
"files": [

packages/components/releaseNotes/components.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# @labkey/components
22
Components, models, actions, and utility functions for LabKey applications and pages
33

4+
### version 6.52.5
5+
*Released*: 30 June 2025
6+
- Issue 53360: Pass user comment through after naming pattern warning
7+
48
### version 6.52.4
59
*Released*: 30 June 2025
610
- Issue 53118: Filter modal change to multiValue type to account for numeric value when parsing

packages/components/src/internal/components/domainproperties/samples/SampleTypeDesigner.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,22 +357,22 @@ export class SampleTypeDesignerImpl extends React.PureComponent<Props & Injected
357357
});
358358
};
359359

360-
onFinish = (auditUserComment?: string): void => {
360+
onFinish = (comment?: string): void => {
361361
const { defaultSampleFieldConfig, setSubmitting, metricUnitProps } = this.props;
362-
const { model, uniqueIdsConfirmed } = this.state;
362+
const { model, uniqueIdsConfirmed, auditUserComment } = this.state;
363363

364364
if (!model.isNew() && this.getNumNewUniqueIdFields() > 0 && !uniqueIdsConfirmed) {
365365
this.setState({
366366
showUniqueIdConfirmation: true,
367-
auditUserComment
367+
auditUserComment: comment,
368368
});
369369
return;
370370
}
371371

372372
const metricUnitRequired = metricUnitProps?.metricUnitRequired;
373373
const isValid = model.isValid(defaultSampleFieldConfig, metricUnitRequired);
374374

375-
this.props.onFinish(isValid, () => this.saveDomain(false, auditUserComment));
375+
this.props.onFinish(isValid, () => this.saveDomain(false, comment ?? auditUserComment));
376376

377377
if (isValid) return;
378378

@@ -397,7 +397,7 @@ export class SampleTypeDesignerImpl extends React.PureComponent<Props & Injected
397397
this.setState(
398398
{
399399
model: updatedModel,
400-
auditUserComment,
400+
auditUserComment: comment,
401401
},
402402
() => {
403403
scrollDomainErrorIntoView();
@@ -475,6 +475,7 @@ export class SampleTypeDesignerImpl extends React.PureComponent<Props & Injected
475475
nameExpressionWarnings: response.warnings,
476476
namePreviews: response.previews,
477477
showUniqueIdConfirmation: false,
478+
auditUserComment: comment,
478479
}),
479480
() => {
480481
scrollDomainErrorIntoView();

0 commit comments

Comments
 (0)