Bug 1059535
Summary: | System activity is updated via power form, irrespective of whether changes were actually made. | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Raymond Mancy <rmancy> |
Component: | web UI | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 0.14 | CC: | aigao, asaha, dcallagh, ebaak, jingwang, jzhao, qwan, rmancy, tools-bugs |
Target Milestone: | 19.0 | Keywords: | Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-11-25 07:18:20 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1070036 | ||
Bug Blocks: |
Description
Raymond Mancy
2014-01-30 05:37:17 UTC
There are a couple of issues here. The issue with the power type is simple, it's comparing a string and an int on the controller code. The reprovision distro and release action are not even checked as to whether or not there has been a change. Even once the code is changed so that they are checked, we should probably be supplying a default (if there is one available in the case of the distro) so we don't get the 'None -> 'PowerOff' etc. This is fixed by the patch for bug 1070036: http://gerrit.beaker-project.org/2865 This was merged to develop as part of the new-system-page branch. (In reply to xuezhi ma from comment #6) > Whether we not format the '' before compare it with system.power.power_user? > if 'power_user' in data and data['power_user'] != system.power.power_user: Right, we are treating None (NULL) distinct from '' (empty string), and so we are logging it as a change even if you just save the form leaving the fields empty. http://gerrit.beaker-project.org/3349 Beaker 19.0 has been released. |