feat(dashboards): add DashboardWidget model and table migration (1/11)#60489
Merged
MattPua merged 2 commits intoMay 29, 2026
Merged
Conversation
Member
Author
This was referenced May 28, 2026
Closed
Closed
4206a12 to
416a5ab
Compare
Contributor
|
Greptile encountered an error while reviewing this PR. Please reach out to support@greptile.com for assistance. |
Contributor
Migration SQL ChangesHey 👋, we've detected some migrations on this PR. Here's the SQL output for each migration, make sure they make sense:
|
Contributor
🔍 Migration Risk AnalysisWe've analyzed your migrations for potential risks. Summary: 0 Safe | 1 Needs Review | 0 Blocked
|
…tate makemigrations --check failed because CreateModel omitted the default_manager_name and all_teams manager from DashboardWidget's TeamScopedRootMixin setup. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced May 28, 2026
Closed
This was referenced May 28, 2026
vdekrijger
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Dashboard widgets need a first-class persisted entity (
DashboardWidget) separate from insights and text tiles. This stack starts with schema-only changes so each migration can ship and deploy independently.This PR is 1/10 in the dashboard widgets Graphite stack (migration foundation).
Changes
DashboardWidgetmodel (products/dashboards/backend/models/dashboard_widget.py)0007_dashboardwidget_table— createsposthog_dashboardwidget(new table only, no locks on existing dashboard tables)products/dashboards/backend/models/__init__.pyHow did you test this code?
hogli test products/dashboards/backend/— not run on this slice alone; migration is additive-only👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Publish to changelog?
no
Docs update
skip-inkeep-docs (internal schema prep)
🤖 Agent context
dashboard-widget-foundationWIP branch into a 10-PR Graphite stack for safer review and deploy