Skip to content

dbeaver/pro#5910 fix: sorting only for result sets - #3506

Merged
Wroud merged 2 commits into
develfrom
fix/dbeaver/pro#5910/sorting-only-for-result-sets
Jun 4, 2025
Merged

Wroud merged 2 commits into
develfrom
fix/dbeaver/pro#5910/sorting-only-for-result-sets

Conversation

@Wroud

@Wroud Wroud commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

closes dbeaver/pro#5910

@Wroud Wroud self-assigned this Jun 4, 2025
sergeyteleshev
sergeyteleshev previously approved these changes Jun 4, 2025
@sergeyteleshev
sergeyteleshev requested a review from Copilot June 4, 2025 11:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Limits column sorting to result-set data models only and verifies that the sorting action is supported before returning a sort state.

  • Added a supported check on constraintsAction
  • Added a guard to verify isResultSetDataModel(model)
Comments suppressed due to low confidence (1)

webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/DataGridTable.tsx:356

  • Add unit tests for getColumnSortingState to cover the new guard: assert that it returns null when model is not a result-set or when constraintsAction.supported is false, and returns the expected state otherwise.
if (!column || !constraintsAction?.supported || !isResultSetDataModel(model)) {

SychevAndrey
SychevAndrey previously approved these changes Jun 4, 2025
@Wroud
Wroud dismissed stale reviews from SychevAndrey and sergeyteleshev via d161ab8 June 4, 2025 13:21
@Wroud
Wroud merged commit 419f8b5 into devel Jun 4, 2025
@Wroud
Wroud deleted the fix/dbeaver/pro#5910/sorting-only-for-result-sets branch June 4, 2025 14:23
Wroud added a commit that referenced this pull request Jun 4, 2025
* dbeaver/pro#5910 fix: sorting only for result sets

* dbeaver/pro#5910 fix: require result set constraints only when needed
Wroud added a commit that referenced this pull request Jun 10, 2025
* dbeaver/pro#5910 fix: sorting only for result sets

* dbeaver/pro#5910 fix: require result set constraints only when needed
Wroud added a commit that referenced this pull request Jun 10, 2025
…3502)

* dbeaver/pro#5218 fix: limit websocket connection retry to 4 attempts

* Update README.md - update contribution info (#3505)

* dbeaver/pro#5910 fix: sorting only for result sets (#3506)

* dbeaver/pro#5910 fix: sorting only for result sets

* dbeaver/pro#5910 fix: require result set constraints only when needed

* dbeaver/pro#5915 Delete legacy name service API usage + code style (#3510)

* dbeaver/pro#5842 add validation for unset value (#3483)

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>

---------

Co-authored-by: Anastasiya <45152336+LonwoLonwo@users.noreply.github.com>
Co-authored-by: Serge Rider <serge@jkiss.org>
Co-authored-by: alex <48489896+devnaumov@users.noreply.github.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
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.

4 participants