Description of problem: We currently have a couple of different places in the code where we determine what the default release action should be. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: Unfortunately we can't set this default on the DB schema because sqlalchemy does not support the 'Enum' type in the 'default_server' kwarg. Setting the 'default' kwarg is the next best thing.
http://gerrit.beaker-project.org/#/c/2874/
(In reply to Raymond Mancy from comment #0) > Unfortunately we can't set this default on the DB schema because sqlalchemy > does not support the 'Enum' type in the 'default_server' kwarg. Setting the > 'default' kwarg is the next best thing. That seems surprising, it should treat an enum value like any other literal (it becomes a string literal on the database side). Is this a documented issue? What error did you get?
(In reply to Dan Callaghan from comment #3) > (In reply to Raymond Mancy from comment #0) > > Unfortunately we can't set this default on the DB schema because sqlalchemy > > does not support the 'Enum' type in the 'default_server' kwarg. Setting the > > 'default' kwarg is the next best thing. > > That seems surprising, it should treat an enum value like any other literal > (it becomes a string literal on the database side). > > Is this a documented issue? What error did you get? So it won't let you pass in an Enum type. It doesn't convert it to a string literal itself. However, you can actually pass it in as a string literal, so server_default=unicode(ReleaseAction.power_off) does work.
http://gerrit.beaker-project.org/#/c/2874
This has been merged onto the new-system-page branch
This was merged to develop as part of the new-system-page branch.
Beaker 19.0 has been released.