-
Notifications
You must be signed in to change notification settings - Fork 14k
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(datasets): REST API bulk delete #11237
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11237 +/- ##
==========================================
+ Coverage 65.51% 65.56% +0.04%
==========================================
Files 831 832 +1
Lines 39303 39388 +85
Branches 3592 3592
==========================================
+ Hits 25751 25823 +72
- Misses 13443 13456 +13
Partials 109 109
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM. Just one question that probably isn't relevant (just me thinking out lout).
message=ngettext( | ||
"Deleted %(num)d dataset", | ||
"Deleted %(num)d datasets", | ||
num=len(item_ids), | ||
), |
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.
Nice, I'll have to start using this, too 👍
self._models: Optional[List[SqlaTable]] = None | ||
|
||
def run(self) -> None: | ||
self.validate() |
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.
Curious, is this something that could be done in a decorator?
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.
yes, there's some repetition of this one
* feat(datasets): REST API bulk delete * doc HTTP 400
* feat(datasets): REST API bulk delete * doc HTTP 400
* feat(datasets): REST API bulk delete * doc HTTP 400
SUMMARY
New REST API endpoint for bulk deleting datasets
ADDITIONAL INFORMATION