Murano Dashboard: dirty code with extra methods

Bug #1265165 reported by Timur Nurlygayanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Timur Nurlygayanov

Bug Description

Need to clean Murano Dashboard from the extra code.

We can see the following function in https://github.com/stackforge/murano-dashboard/blob/master/muranodashboard/environments/api.py:

def get_environment_name(request, environment_id):
    session_id = Session.get(request, environment_id)
    environment = muranoclient(request).environments.get(environment_id,
                                                         session_id)
    log.debug('Return environment name')
    return environment.name

as we can see session is extra parameter in this function and we need to remove it.
Also need to review all code and fix all dirty code.

Tags: verified
Changed in murano:
assignee: nobody → Timur Nurlygayanov (tnurlygayanov)
status: New → Confirmed
tags: added: refactoring
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-dashboard (master)

Fix proposed to branch: master
Review: https://review.openstack.org/64525

Changed in murano:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-dashboard (master)

Reviewed: https://review.openstack.org/64525
Committed: https://git.openstack.org/cgit/stackforge/murano-dashboard/commit/?id=1517de63defb8219e3a683756fc73d71e28b1394
Submitter: Jenkins
Branch: master

commit 1517de63defb8219e3a683756fc73d71e28b1394
Author: TimurNurlygayanov <email address hidden>
Date: Tue Dec 31 14:37:32 2013 +0400

    Remove extra methods of interaction with API:
      get_environment_name
      get_environment_data

    and use environment_get instead it.

    Change-Id: Ib49aecff4773773b6cf305d51db29a17bcf813f3
    Closes-Bug: #1265165

Changed in murano:
status: In Progress → Fix Committed
Changed in murano:
status: Fix Committed → New
tags: added: verified
removed: refactoring
Changed in murano:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-dashboard (release-0.4)

Fix proposed to branch: release-0.4
Review: https://review.openstack.org/68339

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-dashboard (release-0.4)

Reviewed: https://review.openstack.org/68339
Committed: https://git.openstack.org/cgit/stackforge/murano-dashboard/commit/?id=b93fb120b7f5ab2c190cb021f127c39631f0f5b3
Submitter: Jenkins
Branch: release-0.4

commit b93fb120b7f5ab2c190cb021f127c39631f0f5b3
Author: Ekaterina Fedorova <email address hidden>
Date: Thu Jan 9 14:53:40 2014 +0400

    Cherry-pick the following commits from master:

    * Extend exception messages.
      Closes-bug: #1264980
      Ia57821cd906a203b18546b9e93e38f3e1bc71025
    * Remove extra methods of interaction with API:
      and use environment_get instead it.
      Closes-Bug: #1265165
      Ib49aecff4773773b6cf305d51db29a17bcf813f3
    * Move most of code for dynamic UI form creation into metaclass.
      Implements: blueprint dynamic-ui-optimization
      I9b2617527b410abb7c60df978f9c00f7cef491d3
    * Minor refactoring of dynamic_ui.
      Move more functions to dynamic_ui.helpers.
      Ib578a24159dda4de5fecf5df35ff71bc7d704215
    * Rewrite dynamic_ui to store Services data per-session.
      Thus set of Services (and cleaned_data for them) for each
      user/tenant will be isolated supporting per-tenant isolation
      blueprint.
      Closes-bug: #1264289
      I3d0b46463470912cf6d7a36fddd84292689775da
    * Update local_settings.py.example to stable/havana.
      If56e74338449eb14b6b8a581863502287e654517
    * Hide "Upload UI file" btn in manage service table
      There is should be only one ui definition in service So need to show
      "Upload UI file" only ic case there is no any
      Closes-bug: #1263052
      Ibe8c74f20062cd213d8a53ff46d9db9d41a2e08d
    * Support per-tenant isolation for service metadata files.
      Partially implements: blueprint per-tenant-isolation
      I7393e748216ddaa59d6e90249b263514d08f9d34
    * Added empty line in KeyPair fields.
      Implements: blueprint rewrite-key-pair-for-linux-based-services
      If7dcf19084422c76d3bd1b075e4d5080254d003b

    Change-Id: I10b920a3b7cdd9b9a19d37243be81f6aa6aafa9b

Changed in murano:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.