]> git.ipfire.org Git - pbs.git/commitdiff
builds: Drop state
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Oct 2022 10:41:04 +0000 (10:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Oct 2022 10:41:04 +0000 (10:41 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builds.py
src/database.sql
src/hub/handlers.py

index ecca71ed2dea427b35991857120b05ed48accc7a..dbc94d8c480ce1e9570056bf38b480495b45c8cc 100644 (file)
@@ -336,10 +336,6 @@ class Build(base.DataObject):
                if self.data.build_group_id:
                        return self.backend.builds.groups.get_by_id(self.data.build_group_id)
 
-       @property
-       def state(self):
-               return self.data.state
-
        def is_broken(self):
                return self.state == "broken"
 
index 4c3fcdf3d842c0589e097d660a6b89c2e3d7eea9..848a4a67f538b4c69d567c4d45c5aeea7801df33 100644 (file)
@@ -194,7 +194,6 @@ CREATE TABLE public.builds (
     id integer NOT NULL,
     uuid uuid DEFAULT gen_random_uuid() NOT NULL,
     pkg_id integer NOT NULL,
-    state text DEFAULT 'building'::text NOT NULL,
     severity text,
     message text,
     created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
index bfd73f6a8f29e61ba79ffe408360c40c5a73b718..340afec94467c43528c16af0b88991c7687feeaf 100644 (file)
@@ -136,7 +136,6 @@ class BuildsGetHandler(BaseHandler):
                        "priority"     : build.priority,
                        "score"        : build.score,
                        "severity"     : build.severity,
-                       "state"        : build.state,
                        "sup_arches"   : build.supported_arches,
                        "time_created" : build.created.isoformat(),
                        "type"         : build.type,