Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-5912

[editor] huePubSub.subscribe should be active only for the current editor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.12.0
    • Fix Version/s: 4.0.0
    • Component/s: app.editor, core.ui
    • Labels:
      None

      Description

      unregistering the huePubSub.subscribe? In notebook.ko.js there are a lot of those (which later conflicts in responsive).

      huePubSub.subscribe("editor.workload.upload", function ()

      { self.loadQueryHistory(10); }

      );

      etc..

      What would be the correct pattern
      huePubSub.subscribeOne()

      type:table tax --> print 'tags:taxes' in result row too
      owner:romain ca --> print 'owner:romain' in result row too

      // TODO: It should only publish if this belongs to the currently active app in responsive
      huePubSub.subscribe('get.active.snippet.type', function () {
      if (self.inFocus() || notebook.snippets().length === 1)

      { huePubSub.publish('set.active.snippet.type', self.type()); }

      });

        Attachments

          Activity

            People

            • Assignee:
              enricoberti Enrico Berti
              Reporter:
              romain Romain Rigaux
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: