Commit Graph

24 Commits

Author SHA1 Message Date
Ralph Bean
f322017982 Koji build states are actually integers. 2016-07-17 00:11:13 -04:00
Ralph Bean
45bc4c55ac Some summary logging from ridad. 2016-07-17 00:11:00 -04:00
Ralph Bean
7d77463124 Get the gitref from rida.py to ridad.py. 2016-07-17 00:10:23 -04:00
Ralph Bean
2d33ee1602 Simplify this.
The code is equivalent.
2016-07-16 23:09:15 -04:00
Ralph Bean
61a1e8d89f Return None here instead of raising an exception. 2016-07-16 22:47:22 -04:00
Ralph Bean
5d914e8c35 I got these two backwards. 2016-07-16 19:27:50 -04:00
Ralph Bean
dee31ed512 Typofix. 2016-07-16 01:02:07 -04:00
Ralph Bean
0b369baf66 Rename to build_id, which is more accurate. 2016-07-16 00:53:59 -04:00
Ralph Bean
9925c238aa Another classmethod to query with, and a bugfix! 2016-07-15 23:51:47 -04:00
Ralph Bean
0ab9793305 Some more state transitions. 2016-07-15 23:20:23 -04:00
Ralph Bean
44e35c3a09 Use module.transition to change states. 2016-07-15 14:01:41 -04:00
Ralph Bean
d94042f8e7 Add reprs for some of our models. 2016-07-15 13:06:05 -04:00
Ralph Bean
2eee1c8ed6 Descriptions of the states. 2016-07-15 12:13:30 -04:00
Lubos Kocman
1857b109a2 database: use .one() instead of .all() + assert
Signed-off-by: Lubos Kocman <lkocman@redhat.com>
2016-07-15 17:53:36 +02:00
Lubos Kocman
d53f57f230 database module: fixed session is not callable and fixed filter_by -> filter (previously raised error) 2016-07-15 15:06:32 +02:00
Ralph Bean
0859641cb8 A useful utility classmethod. 2016-07-13 16:55:41 -04:00
Ralph Bean
14a4536583 Reorganize the db somewhat.. 2016-07-13 15:40:39 -04:00
Ralph Bean
12a9f6d7db Give the Database a context manager interface. 2016-07-13 14:39:00 -04:00
Ralph Bean
bd30153feb Move ridad into an importable location and validate module state strings. 2016-07-13 14:03:17 -04:00
Petr Šabata
57fd6b9e9b Merge #5 Create database with python. 2016-06-30 16:40:28 +00:00
Ralph Bean
a0c3d035a5 Create database with python. 2016-06-30 12:34:18 -04:00
Ralph Bean
c691973601 Basics of messaging. 2016-06-30 12:30:01 -04:00
Petr Šabata
d54d1dcabb Rename the Session class to Database
This feels way more natural; you don't have sessions with session properties
anymore.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-30 10:40:47 +02:00
Petr Šabata
fdfb1ed830 Implement the query bits of the API
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-28 18:31:58 +02:00