[Kimchi-devel] [PATCH] Github #368: Removing 'resend' tag from getHostStats JSON

Daniel Barboza danielhb at linux.vnet.ibm.com
Wed May 7 14:45:42 UTC 2014


From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>

As described in #368, the Hosts tab wasn't appearing after
relogging (due to restarting kimchid or even when the session
expires). The issue was in the getHostStats JSON, which was
marked with the 'resend' flag, preventing the Host tab from
reloading.

This behavior is set in the kimchi.login_window.js. This flag
isn't used for any other purpose, thus its removal does not
break the refresh of the System Statistics frame in the Hosts
tab. A description of the right usage of the 'resend' tag can
be found in the header of kimchi.api.js.

Signed-off-by: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.api.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index fe56eaf..7d85fdf 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -84,7 +84,6 @@ var kimchi = {
         kimchi.requestJSON({
             url : kimchi.url + 'host/stats',
             type : 'GET',
-            resend: true,
             contentType : 'application/json',
             headers: {'Kimchi-Robot': 'kimchi-robot'},
             dataType : 'json',
-- 
1.8.3.1




More information about the Kimchi-devel mailing list