[PATCH v2] REST: Don't iterate through models at class level

Denis Laxalde denis at laxalde.org
Thu Feb 9 08:12:09 AEDT 2017


Stephen Finucane a écrit :
> On Tue, 2017-02-07 at 14:15 +0100, Denis Laxalde wrote:
>> Stephen Finucane a écrit :
>>> On Tue, 2017-02-07 at 13:47 +0100, Denis Laxalde wrote:
>>>> Stephen Finucane a écrit :
>>>>> his causes two issues. Firstly, on fresh installs you see the
>>>>> following
>>>>> error message:
>>>>>
>>>>>   "Table 'patchwork.patchwork_state' doesn't exist"
>>>>>
>>>>> Secondly, any new states created when the process is running
>>>>> will
>>>>> not be
>>>>> reflected in the API until the server process is restarted.
>>>>
>>>> I can confirm that this version fixes both issues now. Thanks!
>>>
>>> Excellent. Any chance of a 'Tested-by'? :)
>>>
>>
>> Sure!
>>
>> Tested-By: Denis Laxalde <denis at laxalde.org>
>
> This is merged now. Be sure to let me know if you encounter any other
> issues getting this up and running and I'll take a look.

Thank you for your work, everything is fine now.

For the record, I'm working on a Saltstack formula to install and
configure a patchwork instance using salt:
   https://github.com/dlax/patchwork-formula.
I encountered the aforementioned issue while running tests there.




More information about the Patchwork mailing list