HUE-9131 [jb] Query browser does not load interfaces anymore

Review Request #14732 — Created Jan. 31, 2020 and submitted

romain
hue
master
HUE-9131
hue
johan, ranade, romain, weixia, yingc
commit f46505da3b1161ec6cddbf3154e4f3023bf94619
Author: Romain <romain.rigaux@gmail.com>
Date:   Fri Jan 31 17:42:50 2020 -0800

    HUE-9131 [jb] Query browser does not load interfaces anymore
    
    The issue seemed to be with the pubsub refactoring. However, if we
    do a get of the config and it is not loaded yet, shouldn't it does
    automatically a refresh of the config?
    (or it is a timing issue in the Job Browser code)

:100644 100644 bdf73fc88d f7dacc0964 M	apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

manual

  • 1
  • 0
  • 0
  • 0
  • 1
Description From Last Updated
I changed this to prevent updating everywhere on the set.config pub (assist etc.). Now it's via callback instead. So, in ... johan johan
johan
  1. Ship It!
  2. I changed this to prevent updating everywhere on the set.config pub (assist etc.). Now it's via callback instead. So, in this case, extract the function from the set sub above to:

    var configUpdated = function (clusterConfig) { ... }

    huePubSub.subscribe('cluster.config.set.config', configUpdated);
    huePubSub.publish('cluster.config.get.config', configUpdated);

    1. Got it, updated and it works too!

  3. 
      
romain
Review request changed

Status: Closed (submitted)

Loading...