[datesets] feat: add statsd to datasets api#9577
Conversation
|
|
||
| @expose("/<pk>/refresh", methods=["PUT"]) | ||
| @protect() | ||
| @statsd_metrics |
There was a problem hiding this comment.
Change the position, after the safe decorator
Codecov Report
@@ Coverage Diff @@
## master #9577 +/- ##
==========================================
+ Coverage 65.62% 70.47% +4.85%
==========================================
Files 574 574
Lines 30060 30081 +21
Branches 3054 3054
==========================================
+ Hits 19726 21199 +1473
+ Misses 10150 8771 -1379
+ Partials 184 111 -73
Continue to review full report at Codecov.
|
|
Can you please fill the "Summary" to add a bit of context to this PR? |
dpgaspar
left a comment
There was a problem hiding this comment.
Just missing 2 metric assertions
| def test_dataset_item_refresh_not_found(self): | ||
| """ | ||
| Dataset API: Test item refresh not found dataset | ||
| Dataset API: Test item refresh not found dataset |
There was a problem hiding this comment.
Can we add the metric assert here?
| def test_dataset_item_refresh_not_owned(self): | ||
| """ | ||
| Dataset API: Test item refresh not owned dataset | ||
| Dataset API: Test item refresh not owned dataset |
There was a problem hiding this comment.
Can we add the metric assert here?
454b4f8 to
095e76c
Compare
etr2460
left a comment
There was a problem hiding this comment.
Could you add a test plan to the PR as well? Thanks!
etr2460
left a comment
There was a problem hiding this comment.
cool, makes sense to me. thanks for the test plan!
* add statsd to tables api * [datasets] update export endpoint * [datasets] update charts api test
CATEGORY
Choose one
SUMMARY
Adding statds metrics to datesets API endpoints (POST, PUT, DELETE, bulk_delete, data). This is an extension from #9519
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
superset.DatasetRestApi.[endpoints]overenvironment:sandboxADDITIONAL INFORMATION
REVIEWERS