sentry-demos / empower

Monorepo for web app (Empower Plant) and its backend implementations in multiple languages/frameworks used in SE-demos, as well as for testing and sample events across the company. NOTE: used to be called "application-monitoring".
https://application-monitoring-react-dot-sales-engineering-sf.appspot.com/
2 stars 6 forks source link

fix(app): avoid n+1 query #610

Closed cathteng closed 2 weeks ago

cathteng commented 2 weeks ago

Fixes FLASK-ZY

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
empower ❌ Failed (Inspect) Oct 28, 2024 6:20pm
codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 38.46%. Comparing base (482a52c) to head (ed24cdd). Report is 24 commits behind head on master.

:white_check_mark: All tests successful. No failed tests found.

Files with missing lines Patch % Lines
flask/src/db.py 0.00% 8 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #610 +/- ## ========================================== - Coverage 39.78% 38.46% -1.33% ========================================== Files 37 38 +1 Lines 847 910 +63 Branches 99 109 +10 ========================================== + Hits 337 350 +13 - Misses 498 541 +43 - Partials 12 19 +7 ``` | [Flag](https://app.codecov.io/gh/sentry-demos/empower/pull/610/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos) | Coverage Δ | | |---|---|---| | [api](https://app.codecov.io/gh/sentry-demos/empower/pull/610/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos) | `16.06% <0.00%> (-0.93%)` | :arrow_down: | | [frontend](https://app.codecov.io/gh/sentry-demos/empower/pull/610/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos) | `54.96% <ø> (-2.10%)` | :arrow_down: | | [Components](https://app.codecov.io/gh/sentry-demos/empower/pull/610/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos) | Coverage Δ | | |---|---|---| | [checkout_module](https://app.codecov.io/gh/sentry-demos/empower/pull/610/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos) | `16.06% <0.00%> (-0.93%)` | :arrow_down: | | [product_component](https://app.codecov.io/gh/sentry-demos/empower/pull/610/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos) | `56.77% <ø> (-2.24%)` | :arrow_down: | | [Files with missing lines](https://app.codecov.io/gh/sentry-demos/empower/pull/610?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos) | Coverage Δ | | |---|---|---| | [flask/src/db.py](https://app.codecov.io/gh/sentry-demos/empower/pull/610?src=pr&el=tree&filepath=flask%2Fsrc%2Fdb.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos#diff-Zmxhc2svc3JjL2RiLnB5) | `0.00% <0.00%> (ø)` | | ... and [10 files with indirect coverage changes](https://app.codecov.io/gh/sentry-demos/empower/pull/610/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sentry-demos)