You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/06/05 03:42:48 UTC

[GitHub] [pulsar] tuteng commented on a change in pull request #4468: Add delete and peek functionality to dashboard

tuteng commented on a change in pull request #4468: Add delete and peek functionality to dashboard
URL: https://github.com/apache/pulsar/pull/4468#discussion_r290568583
 
 

 ##########
 File path: dashboard/django/stats/views.py
 ##########
 @@ -282,3 +305,55 @@ def clusters(request):
     return render(request, 'stats/clusters.html', {
         'clusters' : clusters,
     })
+
+
+def clearSubscription(request, topic_name, subscription_name):
+    url = settings.SERVICE_URL + '/admin/v2/' + topic_name + '/subscription/' + subscription_name + '/skip_all'
 
 Review comment:
   This option settings.SERVICE_URL needs to be included in the configuration file settings.
   
   

----------------------------------------------------------------
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


With regards,
Apache Git Services