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

[CHORE] Moving QueryLinter input objects to signature #3250

Merged
merged 5 commits into from
Nov 19, 2024

Conversation

JCZuurmond
Copy link
Member

@JCZuurmond JCZuurmond commented Nov 12, 2024

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

  • modified unit tests
  • modified integration tests

@JCZuurmond JCZuurmond added the internal this pull request won't appear in release notes label Nov 12, 2024
@JCZuurmond JCZuurmond self-assigned this Nov 12, 2024
@JCZuurmond JCZuurmond requested a review from a team as a code owner November 12, 2024 10:29
Copy link

github-actions bot commented Nov 12, 2024

✅ 90/90 passed, 1 flaky, 4 skipped, 57m55s total

Flaky tests:

  • 🤪 test_running_real_assessment_job_ext_hms (1m49.752s)

Running from acceptance #7441

@JCZuurmond JCZuurmond changed the title [CHOIR] Moving QueryLinter input objects to signature [CHORE] Moving QueryLinter input objects to signature Nov 12, 2024
@JCZuurmond JCZuurmond mentioned this pull request Nov 13, 2024
5 tasks
Copy link
Collaborator

@nfx nfx left a 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()
Copy link
Collaborator

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()

@JCZuurmond JCZuurmond force-pushed the fix/move-query-linter-objects-to-signature branch from 374f199 to ba8bcdc Compare November 18, 2024 12:16
@JCZuurmond JCZuurmond requested a review from a team as a code owner November 18, 2024 12:16
@nfx nfx enabled auto-merge November 18, 2024 12:17
@JCZuurmond JCZuurmond force-pushed the fix/move-query-linter-objects-to-signature branch from 326d2f3 to 0e66e58 Compare November 19, 2024 09:05
@nfx nfx added this pull request to the merge queue Nov 19, 2024
Merged via the queue into main with commit b971bb8 Nov 19, 2024
7 checks passed
@nfx nfx deleted the fix/move-query-linter-objects-to-signature branch November 19, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal this pull request won't appear in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants