From 215f97182a49997cee65ce44b48f637ec6eabcc1 Mon Sep 17 00:00:00 2001 From: Adam Burdett Date: Fri, 26 Aug 2016 10:45:38 -0600 Subject: [PATCH] changes needed for v1_devtools This should change b507199x14 to v1_devtools. --- js/devtools-api.js | 2 +- ruleSets/bootstrap_prod.krl | 12 ++++++------ ruleSets/devtools_prod.krl | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/js/devtools-api.js b/js/devtools-api.js index 9760078..df87a69 100644 --- a/js/devtools-api.js +++ b/js/devtools-api.js @@ -59,7 +59,7 @@ checkForBootstrapped = function(justNeedsBootstrap, needsBootstrapRuleset) { return wrangler.bootstrapCheck(function(json) { console.log(json); - if ($.inArray('b507199x14.prod', json.rids) > -1 && $.inArray('v1_wrangler.prod', json.rids) > -1) { + if ($.inArray('v1_devtools.prod', json.rids) > -1 && $.inArray('v1_wrangler.prod', json.rids) > -1) { console.log("Pico is bootstrapped"); cb(); } diff --git a/ruleSets/bootstrap_prod.krl b/ruleSets/bootstrap_prod.krl index a9358b0..cd64ce9 100644 --- a/ruleSets/bootstrap_prod.krl +++ b/ruleSets/bootstrap_prod.krl @@ -22,7 +22,7 @@ ruleset DevTools_bootstrap { "core": [ "a169x676.prod", // PDS "a16x129.prod", // SendGrid module - "b507199x14.prod", //DevTools + "v1_devtools.prod", //DevTools "v1_wrangler.prod", //wrangler "b16x29.prod" // logging ], @@ -73,16 +73,16 @@ ruleset DevTools_bootstrap { bootstrapped = installed_rids{"rids"} .klog(">>>> pico installed_rids before filter >>>> ") - .filter(function(v){v eq "b507199x14.prod"|| v eq "v1_wrangler.prod" }) + .filter(function(v){v eq "v1_devtools.prod"|| v eq "v1_wrangler.prod" }) .klog(">>>> pico installed_rids after filter >>>> ") .length() .klog(">>>> pico installed_rids length >>>> ") - ;// check if installed_rids includes b507199x14.prod --- use a filter and check if length is > 0. + ;// check if installed_rids includes v1_devtools.prod --- use a filter and check if length is > 0. } if (bootstrapped >= 2 ) then// we have both devtools and wrangler { - send_directive("found_b507199x14.prod_&_v1_wrangler.prod_for_developer") + send_directive("found_v1_devtools.prod_&_v1_wrangler.prod_for_developer") with eci = eci; } fired { @@ -92,8 +92,8 @@ ruleset DevTools_bootstrap { log ">>>> pico needs a bootstrap >>>> "; log ">>>> pico installed_rids, saw : " + rids.encode(); log ">>>> pico installed_rids, saw : " + rids_string; - log ">>>> pico installed_rids.filter(function(k,v){v eq b507199x14.prod}), saw : " + installed_rids.filter(function(k,v){v eq "b507199x14.prod"}).encode(); - log ">>>> pico installed_rids.filter(function(k,v){v eq b507199x14.prod}).length();, saw : " + installed_rids.filter(function(k,v){v eq "b507199x14.prod"}).length(); + log ">>>> pico installed_rids.filter(function(k,v){v eq v1_devtools.prod}), saw : " + installed_rids.filter(function(k,v){v eq "v1_devtools.prod"}).encode(); + log ">>>> pico installed_rids.filter(function(k,v){v eq v1_devtools.prod}).length();, saw : " + installed_rids.filter(function(k,v){v eq "v1_devtools.prod"}).length(); raise explicit event devtools_bootstrap_needed ; // don't bootstrap everything? // we can bootstrap everythinb because you cant install the same ruleset twice. } diff --git a/ruleSets/devtools_prod.krl b/ruleSets/devtools_prod.krl index 2a95dc0..6ca8d13 100644 --- a/ruleSets/devtools_prod.krl +++ b/ruleSets/devtools_prod.krl @@ -1,5 +1,5 @@ -//b507199x14 -//Flush the ruleset webpage: http://cs.kobj.net/ruleset/flush/b507199x14.prod;b507199x14.dev +//v1_devtools +//Flush the ruleset webpage: http://cs.kobj.net/ruleset/flush/v1_devtools.prod;v1_devtools.dev ruleset devtools { meta { name "DevTools"