Skip to content

Comments

GitHub Issue 442: don't default to SORT_ASC during clearSort#7436

Merged
cnathe merged 1 commit intodevelopfrom
fb_clearSort442
Feb 20, 2026
Merged

GitHub Issue 442: don't default to SORT_ASC during clearSort#7436
cnathe merged 1 commit intodevelopfrom
fb_clearSort442

Conversation

@cnathe
Copy link
Contributor

@cnathe cnathe commented Feb 19, 2026

Rationale

Related to the changes made in this PR for https://github.com/LabKey/internal-issues/issues/442

In DataRegion.js _alterSortString (which is called when sort direction changes or is cleared), prior to the previous PR changes it would check for a SORT_ASC direction and use an empty string instead. The change was made so that instead it would check for no direction value and set it to SORT_ASC. This means that when clearSort() calls this function it would set the sort to SORT_ASC instead of clearing it. This resulted in a failure in the ListTest.testCustomViews.

Related Pull Requests

Changes

  • DataRegion.js don't default to SORT_ASC during clearSort

Tasks 📍

  • Manual Testing @DariaBod
  • Needs Automation
  • Verify Fix

@cnathe cnathe self-assigned this Feb 19, 2026
@cnathe cnathe merged commit 2ba6ea6 into develop Feb 20, 2026
22 of 23 checks passed
@cnathe cnathe deleted the fb_clearSort442 branch February 20, 2026 14:19
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