You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/10/12 00:32:50 UTC
[GitHub] [druid] vogievetsky commented on a change in pull request #10408: Web console: single instance of axios for all network requests
vogievetsky commented on a change in pull request #10408:
URL: https://github.com/apache/druid/pull/10408#discussion_r502988225
##########
File path: web-console/src/views/datasource-view/datasource-view.tsx
##########
@@ -425,7 +425,7 @@ GROUP BY 1`;
return (
<AsyncActionDialog
action={async () => {
- const resp = await axios.delete(
+ const resp = await Api.delete(
`/druid/coordinator/v1/datasources/${datasourceToMarkAsUnusedAllSegmentsIn}`,
Review comment:
In the theme of listing all the API endpoints in once file, I think this one could be extracted also for consistency. Maybe extract it as `/druid/coordinator/v1/datasources/%s` and then do a `.replace('%s', datasourceToMarkAsUnusedAllSegmentsIn)` in this function?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org