Fields should not be named the built-in type keyword
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| python-watcherclient |
Undecided
|
Digambar | ||
| watcher |
Low
|
Digambar | ||
| watcher-dashboard |
Low
|
David TARDIVEL |
Bug Description
There's a number of places where a field of an object is named "type", which isn't the best thing to do since type is a python built-in. For example, see Audit and Event.
Changed in watcher: | |
assignee: | nobody → Taylor Peoples (tpeoples) |
Changed in watcher: | |
milestone: | none → mitaka-3 |
tags: | added: low-hanging-fruit |
Changed in watcher: | |
milestone: | mitaka-3 → mitaka-rc-1 |
Changed in watcher: | |
status: | New → Triaged |
importance: | Wishlist → Low |
Changed in watcher: | |
milestone: | mitaka-rc-1 → mitaka-rc-final |
Changed in watcher: | |
milestone: | mitaka-rc-final → newton-1 |
Changed in watcher: | |
milestone: | newton-1 → newton-2 |
Jean-Emile DARTOIS (jed56) wrote : | #1 |
Changed in watcher: | |
assignee: | Taylor Peoples (tpeoples) → nobody |
Changed in watcher: | |
assignee: | nobody → Digambar (digambarpatil15) |
Fix proposed to branch: master
Review: https:/
Changed in watcher: | |
status: | Triaged → In Progress |
Digambar (digambarpatil15) wrote : | #3 |
I think this is not only about changing the type keyword to audit_type but it requires changes in db models & if we want to add or update field name in models it requires sqlalchemy migration.
Changed in python-watcherclient: | |
assignee: | nobody → Digambar (digambarpatil15) |
Fix proposed to branch: master
Review: https:/
Changed in python-watcherclient: | |
status: | New → In Progress |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 75dd8dc561ed38a
Author: digambar <email address hidden>
Date: Wed Jul 6 21:55:10 2016 +0530
Fix field type to audit_type
There's a number of places where a field of an object is named "type",
which isn't good thing. Actually type is keyword in python, so wherever
I found type used in models/
audit_type in the audit files
Change-Id: Ic09458b4558207
Closes-Bug: #1533392
Changed in python-watcherclient: | |
status: | In Progress → Fix Released |
Changed in watcher: | |
status: | In Progress → Fix Released |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 47ff9bb105b78d1
Author: digambar <email address hidden>
Date: Mon Jul 4 22:50:53 2016 +0530
Fix field type to audit_type
There's a number of places where a field of an object is named "type",
which isn't good thing. Actually type is keyword in python, so wherever
I found type used in models/
audit_type in the audit files
Change-Id: Iea6bd3acb0b2af
Closes-Bug: #1533392
This issue was fixed in the openstack/
This issue was fixed in the openstack/watcher 0.28.0 release.
Changed in watcher-dashboard: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in watcher-dashboard: | |
milestone: | none → newton-rc-final |
Fix proposed to branch: master
Review: https:/
Changed in watcher-dashboard: | |
status: | Triaged → In Progress |
assignee: | nobody → David TARDIVEL (david-tardivel) |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit ea6c773facb3c47
Author: David TARDIVEL <email address hidden>
Date: Mon Sep 19 17:31:57 2016 +0200
Clean the code by renaming 'type' parameters
Closes-bug: #1533392
Change-Id: I02b6aae718a3a7
This issue was fixed in the openstack/
Changed in watcher-dashboard: | |
status: | In Progress → Fix Released |
Hello Talyor,
Are you still working on this bug ?