From: Michael Tremer Date: Tue, 25 Oct 2022 10:41:04 +0000 (+0000) Subject: builds: Drop state X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d5b5e435ccb8e35ed991268c9e2faea96ddcae0;p=pbs.git builds: Drop state Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index ecca71ed..dbc94d8c 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -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" diff --git a/src/database.sql b/src/database.sql index 4c3fcdf3..848a4a67 100644 --- a/src/database.sql +++ b/src/database.sql @@ -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, diff --git a/src/hub/handlers.py b/src/hub/handlers.py index bfd73f6a..340afec9 100644 --- a/src/hub/handlers.py +++ b/src/hub/handlers.py @@ -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,