-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Insights short share URL #4513
Insights short share URL #4513
Conversation
1fc10fa
to
3df6c81
Compare
Ready for a review, not sure why tests are failing, they pass locally. Seems like the issue with webpack (related thread), see screenshot of failed tests. |
Merging this,
|
def create_short_ids(apps, schema_editor): | ||
DashboardItem = apps.get_model("posthog", "DashboardItem") | ||
for obj in DashboardItem.objects.all(): | ||
obj.short_id = posthog.models.dashboard_item.generate_short_id() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will likely cause users to be unable to update in the future if we ever rename the method in the model
Rather than relying on app code in a migration it's smarter to inline the code, even if it means duplication.
This reverts commit 1b0240d.
Changes
This PR sets some groundwork for saved reports & facilitating collaboration with insights (#3408).
short_id
(~8 alpha character) so saved insights can be shared easily (think like a YT video)./i/{id}
, making it easy to share them with other team members (e.g.https://app.posthog.com/i/DXQRFh3F
.Checklist