-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Change Graph logger call sites #4165
Conversation
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.
Just a small issue.
core/dbt/events/types.py
Outdated
@@ -264,3 +306,4 @@ def cli_msg(self) -> str: | |||
SystemStdOutMsg(bmsg=b'') | |||
SystemStdErrMsg(bmsg=b'') | |||
SystemReportReturnCode(code=0) | |||
SelectorReportInvalidSelector(selector_methods={'':''}, spec_method='', raw_spec='') |
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.
missing SelectorAlertAllUnusedNodes
and SelectorAlertUpto3UnusedNodes
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.
good catch!
@@ -103,11 +94,11 @@ def get_nodes_from_criteria( | |||
try: | |||
collected = self.select_included(nodes, spec) | |||
except InvalidSelectorException: | |||
valid_selectors = ", ".join(self.SELECTOR_METHODS) |
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.
Is there a reason to move this into SelectorReportInvalidSelector
?
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.
I'm trying to take the approach where the event represents all the necessary data, and the responsibility to turn data into human-readable strings is entirely up to the event methods. valid_selectors
looks like it's entirely about turning data into strings so I moved it.
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.
Makes sense. Just want to make sure I'm consistent.
graph call sites for structured logging
graph call sites for structured logging
graph call sites for structured logging
graph call sites for structured logging
graph call sites for structured logging automatic commit by git-black, original commits: 51d8440
waiting to merge till #4163 is in the feature branch, but it's ready for review.
Description
Changes log call sites in graph module
TODO:
Checklist
CHANGELOG.md
and added information about my change