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

webhook handler: Add computed DB column for infrastructure errors #1021

Merged
merged 7 commits into from
Jan 3, 2025

Conversation

mvandenburgh
Copy link
Member

This will allow us to just rely on this one column in our metabase dashboards, instead of adding a filtering clause for the different error taxonomy types that imply an infrastructure error and having to keep each dashboard up to date if we decide to add more.

Note, GeneratedField was introduced to the ORM in Django 5, so that's why I also did that upgrade here.

@mvandenburgh
Copy link
Member Author

I noticed we're including dev dependencies in requirements.txt. I think we should remove those so the production server doesn't install them, and just install directly from setup.py when dev dependencies are needed. To keep this PR scoped, I just left it as is.

Instead of manually filtering these out in metabase, this introduces
a DB computed column that will handle that logic.
Copy link
Collaborator

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

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

One suggestion but otherwise LGTM

@mvandenburgh mvandenburgh merged commit 33637c5 into main Jan 3, 2025
15 checks passed
@mvandenburgh mvandenburgh deleted the analyics-django5 branch January 3, 2025 16:46
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.

2 participants