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: add success log whenever a connection is working #13811

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Mar 26, 2021

SUMMARY

We want to start understanding how many successful connection occur per engine

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Mar 26, 2021

Codecov Report

Merging #13811 (01b26c7) into master (64f967c) will increase coverage by 0.09%.
The diff coverage is 100.00%.

❗ Current head 01b26c7 differs from pull request most recent head a312897. Consider uploading reports for the commit a312897 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13811      +/-   ##
==========================================
+ Coverage   77.45%   77.54%   +0.09%     
==========================================
  Files         934      934              
  Lines       47249    47267      +18     
  Branches     5892     5898       +6     
==========================================
+ Hits        36595    36654      +59     
+ Misses      10508    10469      -39     
+ Partials      146      144       -2     
Flag Coverage Δ
cypress 56.04% <ø> (+0.13%) ⬆️
hive 80.27% <100.00%> (+<0.01%) ⬆️
mysql 80.58% <100.00%> (+<0.01%) ⬆️
postgres 80.61% <100.00%> (+<0.01%) ⬆️
presto 80.27% <100.00%> (?)
python 81.12% <100.00%> (+0.12%) ⬆️
sqlite 80.17% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/databases/commands/test_connection.py 98.43% <100.00%> (+0.02%) ⬆️
...frontend/src/components/DatabaseSelector/index.tsx 89.32% <0.00%> (-2.35%) ⬇️
...set-frontend/src/dashboard/util/getDropPosition.js 90.90% <0.00%> (ø)
superset/models/core.py 89.37% <0.00%> (+0.27%) ⬆️
...et-frontend/src/components/TableSelector/index.tsx 85.29% <0.00%> (+0.37%) ⬆️
superset/connectors/sqla/models.py 90.48% <0.00%> (+0.60%) ⬆️
...e/components/controls/FilterControl/AdhocFilter.js 96.92% <0.00%> (+3.07%) ⬆️
...t-frontend/src/dashboard/actions/dashboardState.js 68.87% <0.00%> (+5.29%) ⬆️
superset/db_engine_specs/presto.py 88.28% <0.00%> (+5.43%) ⬆️
...rontend/src/views/CRUD/dashboard/DashboardCard.tsx 82.05% <0.00%> (+7.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 64f967c...a312897. Read the comment docs.

@hughhhh hughhhh changed the title chore: add success log whenever a connection is mad chore: add success log whenever a connection is working Mar 26, 2021
@etr2460
Copy link
Member

etr2460 commented Mar 26, 2021

if you want to know a count here, any reason why not to use statsd instead of the event logger?

@hughhhh
Copy link
Member Author

hughhhh commented Mar 26, 2021

@etr2460 we want to group by engine with the other test_connection_error to anaylze which engines are connecting better

@junlincc junlincc requested a review from betodealmeida March 26, 2021 18:11
Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@hughhhh hughhhh merged commit 9f53c6c into master Mar 29, 2021
@hughhhh hughhhh deleted the hugh/add-db-conn-success-log branch March 29, 2021 17:22
amitmiran137 pushed a commit that referenced this pull request Mar 31, 2021
* master: (56 commits)
  test: Adds tests and storybook to CertifiedIcon component (#13457)
  chore: Moves CheckboxIcons to Checkbox folder (#13459)
  chore: Removes Popover duplication (#13462)
  build(deps): bump elliptic from 6.5.3 to 6.5.4 in /docs (#13527)
  fix: allow spaces in DB names (#13800)
  chore: Update PR template for SIP-59 DB migrations process (#13855)
  Add CODEOWNERS (#13759)
  feat(alerts & reports): Easier to read execution logs (#13752)
  fix: Disallows negative options remaining (#13749)
  Fix broken link (#13861)
  fix(native-filters): add global async query support to native filters (#13837)
  Displays row limit warning with Alert component (#13854)
  fix(errors): Downgrade error on stop query to a warning (#13826)
  fix(alerts and reports): Unify timestamp format on execution log view (#13718)
  fix(sqllab): warning message when rows limited (#13841)
  chore: add success log whenever a connection is working (#13811)
  fix(native-filters): improve loading styles for filter component (#13794)
  chore: update change log with cherry-picks for release 1.1 (#13824)
  feat: added support to configure the default explorer viz (#13610)
  fix(#13734): Properly escape special characters in CSV output  (#13735)
  ...
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants