-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor: Extract functions to parent #26584
refactor: Extract functions to parent #26584
Conversation
These functions will be reused in `stats_table.py`, so it makes sense to extract them one level higher. There's some extra complication on how we handle `self.query.compare` because `stats_table.py` always wants to compare.
|
@robbie-c It's not complicating me right now, but I'm always happy to remove code :) |
I was just looking at the mypy errors ;) |
@robbie-c Oh, duh :). Might remove it then, thx |
This isnt being used anymore, and it's just complicating some of our code changes
This is complicated because `self.query` doesn't always have `self.query.compare`, so this would fail a lot of tests
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
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.
Ahn, looks very wrong, hog is gone 🔥, I will make it regenerate this once Depot is back online
bdcbb72
to
cbcb8a9
Compare
@robbie-c tests are passing now :) |
These functions will be reused in
stats_table.py
, so it makes sense to extract them one level higher. There's some extra complication on how we handleself.query.compare
becausestats_table.py
always wants to compare, so we need that to be a parameterThis is just refactoring work to allow us to better filter by
ConversionGoal
onstats_table.py
. If anything, this is just better code (to some definition of better)