Skip to content

Issue 46618: respect sort keys in QuerySelect#1098

Merged
labkey-nicka merged 4 commits into
release23.2-SNAPSHOTfrom
23.2_fb_fix_46618
Feb 7, 2023
Merged

Issue 46618: respect sort keys in QuerySelect#1098
labkey-nicka merged 4 commits into
release23.2-SNAPSHOTfrom
23.2_fb_fix_46618

Conversation

@labkey-nicka
Copy link
Copy Markdown
Contributor

@labkey-nicka labkey-nicka commented Feb 6, 2023

Rationale

This addresses Issue 46618 where QuerySelect-based dropdowns in our applications were not respecting the <sortColumn> property that is definable on XML query metadata for a column. With these changes if a column has a sort key specified, as determined by the server, then the QuerySelect will skip doing a client-side sort of the results.

Related Pull Requests

Changes

  • Add the hasSortKey property to the QueryColumn model. Now supported by query-getQueryDetails.api.
  • Retain result row ordering in formatSavedResults and formatResults when processing results of QuerySelect queries.

Copy link
Copy Markdown
Contributor

@labkey-alan labkey-alan left a comment

Choose a reason for hiding this comment

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

Looks good, including with manual testing.

@labkey-nicka labkey-nicka merged commit 0bf03f6 into release23.2-SNAPSHOT Feb 7, 2023
@labkey-nicka labkey-nicka deleted the 23.2_fb_fix_46618 branch February 7, 2023 00:24
@cnathe cnathe mentioned this pull request Feb 8, 2023
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