-
Notifications
You must be signed in to change notification settings - Fork 80
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] Moving QueryLinter
input objects to signature
#3250
base: main
Are you sure you want to change the base?
Conversation
❌ 89/90 passed, 1 flaky, 1 failed, 4 skipped, 1h15m44s total ❌ test_linter_from_context: TypeError: WorkflowLinter.refresh_report() missing 2 required positional arguments: 'sql_backend' and 'inventory_database' (6.912s)
Flaky tests:
Running from acceptance #7423 |
QueryLinter
input objects to signatureQueryLinter
input objects to signature
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.
lgtm
TableMigrationIndex([]), | ||
simple_ctx.directfs_access_crawler_for_queries, | ||
simple_ctx.used_tables_crawler_for_queries, | ||
None, | ||
) | ||
linter.refresh_report(sql_backend, simple_ctx.inventory_database) | ||
linter.refresh_report() |
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.
proper change here would be simple_ctx.query_linter.refresh_report()
374f199
to
ba8bcdc
Compare
Changes
Follow the more common pattern of expect objects in a class signature. Those objects are passed on from the context. Makes testing more straightforward
Breaking down the linked PR below.
Linked issues
Progresses #3045
Breaks up #3112
Tests