You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@warble.apache.org by hu...@apache.org on 2018/06/26 23:10:07 UTC

[incubator-warble-server] 03/03: regen yaml and js

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-warble-server.git

commit 76afd397d3f5e9bff19a420d7451e69c0ec432f4
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Jun 26 18:09:57 2018 -0500

    regen yaml and js
---
 api/yaml/openapi.yaml | 22 ++++++++++++++++++++++
 ui/js/warble.v1.js    | 10 ++++++++--
 2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/api/yaml/openapi.yaml b/api/yaml/openapi.yaml
index 5e6858f..15c9816 100644
--- a/api/yaml/openapi.yaml
+++ b/api/yaml/openapi.yaml
@@ -396,6 +396,28 @@ paths:
           description: unexpected error
       summary: Lists the nodes in the registry
   /api/node/modify:
+    delete:
+      requestBody:
+        content:
+          application/json:
+            schema:
+              $ref: '#/components/schemas/NodeDetails'
+        description: Node to remove
+        required: true
+      responses:
+        '200':
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ActionCompleted'
+          description: Node successfully removed from registry
+        default:
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Error'
+          description: unexpected error
+      summary: Deletes a registered node from the server
     post:
       requestBody:
         content:
diff --git a/ui/js/warble.v1.js b/ui/js/warble.v1.js
index f1863e5..8d55b91 100644
--- a/ui/js/warble.v1.js
+++ b/ui/js/warble.v1.js
@@ -1,5 +1,5 @@
 // Generated by CoffeeScript 1.9.3
-var API, APIVERSION, Chart, HTML, Row, WarbleLogin, WarbleLoginCallback, Widget, aSourceTypes, addSourceType, addSources, addorguser, addsources, affiliate, affiliation, affiliationWizard, altemail, app, badModal, bio, chartOnclick, chartToSvg, chartWrapperButtons, charts_donutchart, charts_gaugechart, charts_linechart, charts_linechart_stacked, charts_linked, charts_radarchart, ciexplorer, clientTypes, clientlist, cog, comShow, comstat, copyCSS, currentSources, dataTable, datepicker, da [...]
+var API, APIVERSION, Chart, HTML, Row, WarbleLogin, WarbleLoginCallback, Widget, aSourceTypes, addSourceType, addSources, addorguser, addsources, affiliate, affiliation, affiliationWizard, altemail, app, badModal, bio, chartOnclick, chartToSvg, chartWrapperButtons, charts_donutchart, charts_gaugechart, charts_linechart, charts_linechart_stacked, charts_linked, charts_radarchart, ciexplorer, clientTypes, clientlist, cog, comShow, comstat, copyCSS, currentSources, dataTable, datepicker, da [...]
   indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
 
 signup = function(form) {
@@ -4628,6 +4628,12 @@ modifyNode = function(id, stats) {
   return post('node/modify', stats, {}, location.reload());
 };
 
+deleteNode = function(id, stats) {
+  return xdelete('node/modify', {
+    id: id
+  }, {}, location.reload());
+};
+
 clientlist = function(json, state) {
   var act, d, dbtn, fp, len, q, retval, slist, source, sources, t, tbody, ts, vlist;
   slist = mk('div');
@@ -4708,7 +4714,7 @@ clientlist = function(json, state) {
       if (source.verified === false) {
         dbtn = mk('button');
         set(dbtn, 'class', 'btn btn-primary');
-        set(dbtn, 'onclick', "modifyNode(" + source.id + ", {verified: true});");
+        set(dbtn, 'onclick', "modifyNode(" + source.id + ", {verified: true, enabled: true});");
         dbtn.style.padding = "2px";
         app(dbtn, txt("Verify"));
         app(act, dbtn);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@warble.apache.org
For additional commands, e-mail: commits-help@warble.apache.org