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

[core] Broken template for multiple custom apps

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: docs
    • Labels:
    • Environment:

      Fresh centos 7

    • Target Version:
    • Easy:
      Easy

      Description

      To recreate:
      make apps
      #Create two apps, and add them
      ./build/env/bin/hue create_desktop_app calc
      ./build/env/bin/hue create_desktop_app calc2
      ./build/env/bin/python tools/app_reg/app_reg.py --install calc --relative-paths
      ./build/env/bin/python tools/app_reg/app_reg.py --install calc2 --relative-paths

      #Run, Log in and try and open the nav
      build/env/bin/hue runserver

       

      Patch attached, Jira is having issues with the attachment, so here it is again:

      From 1abb8655361d1a6cb86893a7cfbab58d6cb7df81 Mon Sep 17 00:00:00 2001
      From: cisco <cisco@localhost.localdomain>
      Date: Tue, 22 May 2018 05:02:52 -0400
      Subject: [PATCH] Fixed bug with multiple custom apps


      desktop/core/src/desktop/templates/hue.mako | 2 +-
      1 file changed, 1 insertion, 1 deletion

      diff --git a/desktop/core/src/desktop/templates/hue.mako b/desktop/core/src/desktop/templates/hue.mako
      index 874afeb5e1594e3f8dd97007316616b584e88127..b721f8ed0a730c71b5807367ae807d532daa9020 100644
      — a/desktop/core/src/desktop/templates/hue.mako
      +++ b/desktop/core/src/desktop/templates/hue.mako
      @@ -1308,7 +1308,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
      self.currentContextParams(ctx.params);
      self.currentQueryString(ctx.querystring);
      self.loadApp('${ other.display_name }', true)

      • }}
        + }},
        % endfor
        % endif
        ];

        • 1.8.3.1

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                max.tarasuik Max Tarasuik
                Reporter:
                max.tarasuik Max Tarasuik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: