Nailgun Release columns should be 'NOT NULLABLE'

Bug #1546964 reported by Ihor Kalnytskyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
Medium
Fuel Sustaining
Mitaka
Won't Fix
Medium
Fuel Python (Deprecated)
Newton
Confirmed
Medium
Fuel Sustaining

Bug Description

In Nailgun there's a releases table, which has a bunch of columns that might be 'NOT NULLABLE' [1]. Some of them are:

* networks_metadata
* attributes_metadata
* volumes_metadata
* modes_metadata
* roles_metadata
* wizard_metadata
* deployment_tasks
* vmware_attributes_metadata

There're a lot of code in Nailgun which expects it to be a proper JSON, however some tests create release entries with 'NULL' in that field, which might break some code. It causes a random test failures, depending on which order tests are executing, since our tests do not clear temporary created records.

In order to prevent such mistakes, it'd be better to add 'NOT NULLABLE' constraint for that field, and force test authors to properly fill that field.

[1] http://xsnippet.org/361430/raw/

Changed in fuel:
status: New → Confirmed
Dmitry Pyzhov (dpyzhov)
tags: added: tech-debt
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.