-
Notifications
You must be signed in to change notification settings - Fork 67
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
chore(weave): refactor objects query into a simple query builder #3223
base: master
Are you sure you want to change the base?
Conversation
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=efa2e7bba40e293f7bf3cf04602d76782857d07b |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
||
|
||
def test_make_object_id_conditions_part(): | ||
assert _make_object_id_conditions_part(None) == "" |
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.
seems like a weird function to me - it assumes that it always comes after a non-empty where clause?
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.
Its meant to be an internal fn but i see your point. i'll rename and add a bit of logic here
Description
Straight refactor for readability. Use a query builder to handle adding conditions to the objects query. Considerably less extensive or flexible as the other query builders, but the objects query is also much more complex. Not sure we need as much flexibility here, this pr should be a balance between risky and merely surface level.
Testing
Existing code coverage + unit tests