Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: pagination is broken on the dashboard list page #5516

Merged
merged 2 commits into from
Jun 15, 2021
Merged

Conversation

susodapop
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Bug Fix

Description

The Dashboard.all() query fetches duplicate rows because of its outer join conditions. This PR adds back a .distinct() construct de-duplicates the resullt set. DISTINCT is called on created_at and slug because a generic distinct() fails when comparing the JSON fields.

Related Tickets & Documents

Closes #5466

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Before

CleanShot 2021-06-15 at 14 50 10

After

CleanShot 2021-06-15 at 14 51 14

@susodapop susodapop changed the base branch from master to release/10.0.x June 15, 2021 19:55
@susodapop susodapop requested review from rauchy and arikfr June 15, 2021 19:58
@arikfr arikfr merged commit dec8879 into release/10.0.x Jun 15, 2021
@arikfr arikfr deleted the issue-5466 branch June 15, 2021 20:04
susodapop pushed a commit that referenced this pull request Jun 17, 2021
* Add test that reproduces issue #5466

* Fix: Duplicate dashboard rows were returned by Dashboard.all() (#5466)
guerrerocarlos pushed a commit to MasterworksIO/redash that referenced this pull request Jun 30, 2021
* Add test that reproduces issue getredash#5466

* Fix: Duplicate dashboard rows were returned by Dashboard.all() (getredash#5466)
susodapop pushed a commit that referenced this pull request Oct 2, 2021
* Add test that reproduces issue #5466

* Fix: Duplicate dashboard rows were returned by Dashboard.all() (#5466)
@susodapop susodapop mentioned this pull request Oct 2, 2021
1 task
susodapop added a commit that referenced this pull request Oct 2, 2021
susodapop added a commit that referenced this pull request Oct 2, 2021
denisov-vlad pushed a commit to denisov-vlad/redash that referenced this pull request Oct 19, 2021
commit 9c928bd
Author: Jesse Whitehouse <jesse@whitehouse.dev>
Date:   Fri Oct 1 21:13:13 2021 -0500

    Bump version to 10.0.0

commit f312adf
Author: Jesse <jesse.whitehouse@databricks.com>
Date:   Fri Oct 1 18:02:27 2021 -0500

    Apply V10 beta period feedback / fixes (getredash#5611)

    The following PR's were cherry-picked:

    * Excel & CSV query runner (getredash#2478)
    * Pin python3 image version (getredash#5570)
    * Fix: Edit Source button disappeared for users without CanEdit perms (getredash#5568)
    * Fix: Specify the protobuf version (getredash#5608)

    Plus one additional change exclusive to this branch:
    * Replace reference to yarn with NPM

    This happened because we cherry-picked getredash#5570 but did not also incorporate
    getredash#5541 into V10.

    Co-authored-by: deecay <deecay@users.noreply.github.com>
    Co-authored-by: Levko Kravets <levko.ne@gmail.com>
    Co-authored-by: zoomdot <gninggoon@gmail.com>

commit 92e5d78
Author: Jesse <jesse.whitehouse@databricks.com>
Date:   Thu Jun 17 13:42:07 2021 -0500

    Update changelog details for snowflake (getredash#5519)

commit 0983e69
Author: Jesse <jesse.whitehouse@databricks.com>
Date:   Thu Jun 17 12:45:17 2021 -0500

    update changelog for v10-beta (getredash#5517)

commit dec8879
Author: Jesse <jesse.whitehouse@databricks.com>
Date:   Tue Jun 15 15:04:36 2021 -0500

    Fix: pagination is broken on the dashboard list page (getredash#5516)

    * Add test that reproduces issue getredash#5466

    * Fix: Duplicate dashboard rows were returned by Dashboard.all() (getredash#5466)

commit 64a1d7a
Author: Jesse Whitehouse <jesse@whitehouse.dev>
Date:   Tue Jun 1 11:21:49 2021 -0500

    Update version for CircleCI build.
susodapop pushed a commit that referenced this pull request Oct 21, 2021
* Fix: pagination is broken on the dashboard list page (#5516)
* Add test that reproduces issue #5466
* Fix: Duplicate dashboard rows were returned by Dashboard.all() (#5466)
* Update changelog for V10
* Update changelog for #5516
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.

The item count DashBoards View displayed per page is not correct
2 participants