Skip to content

add(dashboards): bulk reorder mutation#27

Draft
subinasr wants to merge 2 commits into
developfrom
feat/dashboard-reorder
Draft

add(dashboards): bulk reorder mutation#27
subinasr wants to merge 2 commits into
developfrom
feat/dashboard-reorder

Conversation

@subinasr

@subinasr subinasr commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@subinasr subinasr requested a review from sudip-khanal July 7, 2026 11:20

@sudip-khanal sudip-khanal 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.

It would be better to add tests for this changes and regenerate the graphql schema.

docker compose exec web ./manage.py graphql_schema

Comment on lines +35 to +36
dashboards.sort(key=lambda dashboard: (dashboard.page, dashboard.order))
return None, dashboards

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.

Suggested change
dashboards.sort(key=lambda dashboard: (dashboard.page, dashboard.order))
return None, dashboards
return None, sorted(
dashboards,
key=lambda d: (d.page_id, d.order),
)

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