Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3320

WebConsole UX: actions and status on bundle details don't update properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • webconsole-4.0.0
    • Web Console
    • None

    Description

      When looking at a bundle detail (both inline at /system/console/bundles and at the dedicated page: /system/console/bundles/id) the actions related to the bundle don't properly update the status and related actions.
      For example:

      • I install a bundle 27,
      • I navigate to /system/console/bundles/27: Status 'Installed' and under Actions I can start it (among other things)
      • Start the bundle:
      • it doesn't update the proper 'Status' column. Instead the Status remains Installed and the 'Version' label td gets replaced with the new status
      • the 'Start' action doesn't get replaced with the 'Stop' action (this gets lost)

      This happens in bundles.js namely because of using find() instead of children() [0].
      Explanation: "The .find() and .children() methods are similar, except that the latter only travels a single level down the DOM tree." (from the jquery api). This affects bundle details page only, as it has an embedded table containing the details that is shown only on this page, thus making the find() calls select wrong components.

      Will attach a patch shortly.

      [0] http://api.jquery.com/children/

      Attachments

        1. FELIX-3320.patch
          3 kB
          Alex Deparvu

        Activity

          People

            fmeschbe Felix Meschberger
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: