#404 Support querying events with state names
Merged by jkaluza. Opened by qwan.
qwan/freshmaker query-event-with-state-names  into  master

Download 404.patch

With this change, we can query events with state names, like:

/api/1/events/?state=ready
/api/1/events/?state=done&state=ready

rebased onto 12e44e1bc9847063589dd70a027be08106b19e44

rebased onto 995abd4cc9228d85450f884ceebf468269a938a0

Actually, you need to use freshmaker.types.EventState to map state name to number. the MBS.BUILD_STATES is dict with Module Build Service build states, but here you are filtering freshmaker.models.Event.

rebased onto 6d0fcdae815f96af9769c962c9e196c479dc6c83

oops, thanks for pointing it out, fixed and rebased.

rebased onto a6362edeb92153301192f97a56cb3e3de888e511

rebased onto 370034cd571d1fd051f59883c79f66d3385c8522

Pull-Request has been merged by jkaluza

Metadata