Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-9942

Improve view URL interaction with ambari-web's location bar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 2.1.0
    • None
    • None

    Description

      Currently views are embedded inside ambari-web via an IFrame. Though this
      provides a clean separation of ambari-web and view-ui, it raises the issue
      that the view-ui URLs are completely disconnected from ambari-web's URLs.

      So if user wanted to bookmark a particular page inside the view, it is not
      possible as the location bar is completely owned by ambari-web. Some of the
      interactions that have to work are

      1. As user interacts within a view, ambari-web location-bar should be updated (bottom-up) so that user can copy location from location-bar and send it to someone.
      2. When another user gets URL and pastes into location-bar, it should propagate down to the view and show correct UI (top-down)
      3. When user right-clicks on any link inside the view and copies its location, that location should be accessible to any other user. Another user should get login screen if need be, following which they should be redirected to correct UI

      Ambari-web uses EmberJS which relies heavily on the URL's hash. The views
      however are free to choose whatever relative paths they want. Trying to merge
      EmberJS hash and view relative paths is problematic in some cases:

      1. '=' onwards is chopped off in Firefox
      2. Having two '#' hashes in the URL is not standard

      Ambari-web needs to provide some help/guidance in better managing view URLs.

      Attachments

        Activity

          People

            aonishuk Andrew Onischuk
            aonishuk Andrew Onischuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: