-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
feat: add event_logger to test_connection and create_database commands #13468
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
9e2f527
leverage enter and exit magic functions for with statements
hughhhh 6730835
Merge branch 'master' of https://github.com/apache/incubator-superset…
hughhhh 80cd5bd
setup new logger pattern
hughhhh f4c8a5f
Update superset/utils/log.py
hughhhh e2ab146
update test to incorporate user_id
hughhhh 440a9d6
Merge branch 'hugh/event-logger-refactor' of https://github.com/apach…
hughhhh 1266d12
update test
hughhhh d7e1247
fix mypy
hughhhh b130962
Apply suggestions from code review
hughhhh 9718486
update test
hughhhh 2d05a37
add logs to database/create
hughhhh f9d5f3f
add logs to test_connection
hughhhh 58fcd28
Merge branch 'master' of https://github.com/apache/incubator-superset…
hughhhh 47fe377
fix pylint
hughhhh 2fda45e
Merge branch 'hugh/event-logger-refactor' of https://github.com/apach…
hughhhh 35763ef
Merge branch 'master' of https://github.com/apache/incubator-superset…
hughhhh 31abdc8
pylint
hughhhh 12e7731
Merge branch 'hugh/event-logger-refactor' of https://github.com/apach…
hughhhh e0871f0
Merge branch 'master' of https://github.com/apache/incubator-superset…
hughhhh bcf85f8
fix celery test
hughhhh f42efe2
fix celery test
hughhhh 82612ea
fix all cta test
hughhhh 9d7fc0e
add exception block for no user
hughhhh bfa5477
fixed test
hughhhh 68f25d0
reup celery test
hughhhh f483764
pylint
hughhhh 538d9dd
Merge branch 'hugh/event-logger-refactor' of https://github.com/apach…
hughhhh ea81349
event logger
hughhhh 46ce47f
add pyline
hughhhh f4eaac1
Merge branch 'master' of https://github.com/apache/incubator-superset…
hughhhh 8f6d379
Merge branch 'master' of https://github.com/apache/incubator-superset…
hughhhh cfbab0c
fix test
hughhhh 55601ee
added 1 more test
hughhhh cffe48e
add more test
hughhhh c4039f9
add name
hughhhh b2c120c
address comment
hughhhh 2f86e2a
fix docstring
hughhhh 3856999
updated test
hughhhh 33e4180
update security test
hughhhh 67d42b4
update test
hughhhh f11ab8a
fix annotation on DatabaseDAO.build_db_for_connection_test
hughhhh 7c28363
fix
hughhhh ce0240a
make the names consistent
hughhhh e20f6dd
remove unused packages
hughhhh 864173d
fix test
hughhhh a904cd8
fix test
hughhhh 46095ca
fix connection test
hughhhh c48ecd7
fix connection test
hughhhh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@hughhhh what did you want to do about making the engine string consistent around each of these logs so that we can group by the same engine later when observing the logs?
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 ended up changing all the engine references in the
event_logger.log_with_context
to pull data from thedatabase.db_engine_spec.__name__
I say we go with this for now and see the data then see if we need to create some mapping either in the service or downstream