Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labkey/components",
"version": "6.70.4",
"version": "6.70.5",
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
"sideEffects": false,
"files": [
Expand Down
5 changes: 5 additions & 0 deletions packages/components/releaseNotes/components.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# @labkey/components
Components, models, actions, and utility functions for LabKey applications and pages

### version 6.70.5
*Released*: 13 November 2025
- Issue 54186: App actions for picklists and assay run delete don't get TransactionAuditEvent
- Add 'auditBehavior' to insertRows, updateRows, deleteRows usages so app actions get TransactionAuditEvent

### version 6.70.4
*Released*: 13 November 2025
- Ability to show identifying fields during assay import of a single sample type
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/internal/components/forms/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { PermissionTypes, Security, User } from '@labkey/api';
import { AuditBehaviorTypes, PermissionTypes, Security, User } from '@labkey/api';
import { useCallback, useEffect, useState } from 'react';

import { updateRows } from '../../query/api';
Expand Down Expand Up @@ -127,5 +127,6 @@ export function updateRowFieldValue(model: QueryModel, name: string, value: any)
},
],
containerPath: model.containerPath,
auditBehavior: AuditBehaviorTypes.DETAILED,
});
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Domain, Filter, Query } from '@labkey/api';
import { AuditBehaviorTypes, Domain, Filter, Query } from '@labkey/api';

import { List } from 'immutable';

Expand Down Expand Up @@ -220,7 +220,11 @@ export async function addSamplesToPicklist(listName: string, sampleIds: number[]
const schemaQuery = new SchemaQuery(SCHEMAS.PICKLIST_TABLES.SCHEMA, listName);

if (rows.size > 0) {
return await insertRows({ schemaQuery, rows });
return await insertRows({
schemaQuery,
rows,
auditBehavior: AuditBehaviorTypes.DETAILED,
});
}

return new QueryCommandResponse({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React, { FC, memo, useCallback, useEffect, useMemo, useState } from 'react';
import { List } from 'immutable';

import { AuditBehaviorTypes } from '@labkey/api';

import { LoadingSpinner } from '../base/LoadingSpinner';
import { Alert } from '../base/Alert';
import { LockIcon } from '../base/LockIcon';
Expand Down Expand Up @@ -157,6 +159,7 @@ export const SampleStatusDetail: FC<SampleStatusDetailProps> = memo(props => {
schemaQuery: SCHEMAS.CORE_TABLES.DATA_STATES,
rows: [stateToSave],
containerPath: container?.path,
auditBehavior: AuditBehaviorTypes.DETAILED,
})
.then(() => {
onActionComplete(stateToSave.label);
Expand All @@ -171,6 +174,7 @@ export const SampleStatusDetail: FC<SampleStatusDetailProps> = memo(props => {
schemaQuery: SCHEMAS.CORE_TABLES.DATA_STATES,
rows: List([stateToSave]),
containerPath: container?.path,
auditBehavior: AuditBehaviorTypes.DETAILED,
})
.then(() => {
onActionComplete(stateToSave.label);
Expand All @@ -192,6 +196,7 @@ export const SampleStatusDetail: FC<SampleStatusDetailProps> = memo(props => {
schemaQuery: SCHEMAS.CORE_TABLES.DATA_STATES,
containerPath: container?.path,
rows: [updatedState],
auditBehavior: AuditBehaviorTypes.DETAILED,
})
.then(() => {
onActionComplete(undefined, true);
Expand Down