Skip to content

Conversation

@XingY
Copy link
Contributor

@XingY XingY commented Dec 17, 2025

Rationale

This pull request adds workflow automation features for task actions to filter samples, introducing a new capability to lock read-only filters and prevent their deletion. The changes also include a significant refactoring of the FieldFilter interface to EntityFieldFilter for better semantic clarity.

Related Pull Requests

Changes

  • Added lockReadOnlyForDelete prop for workflow filter components to prevent modification of read-only filters used for deletion.
  • Introduced EntityFieldFilter type (renamed from FieldFilter) for improved clarity and consistency across workflow task filters.
  • Added new filter action helper functions: getActionValuesForFilterProps and removeFilterValueForFilterProps to simplify reading and updating filter values.
  • Added support for supportAllValueInQuery in entity data types so workflow filters can include an "All" option when querying entities.

This comment was marked as resolved.

@XingY XingY requested a review from labkey-susanh December 19, 2025 18:35
});

it('excludes read-only action values when lockReadOnlyForDelete is true', () => {
const result = filterActionValuesByType(mockActionValues, 'search', true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be looking for 'filter' instead of 'search'?

});

it('returns non-readonly filter action values when lockReadOnlyForDelete is true', () => {
const result = filterActionValuesByType(mockActionValues, 'filter', true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as test on line 64?

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.

3 participants