~offspring-committers/offspring/trunk

« back to all changes in this revision

Viewing changes to lib/offspring/web/queuemanager/models.py

  • Committer: Timothy R. Chavez
  • Date: 2013-05-23 14:03:53 UTC
  • mfrom: (162.1.3 offspring-fix-lp-1095621)
  • Revision ID: timothy.chavez@canonical.com-20130523140353-e33l1zcjxyvizd1q
Introduce a 'is_retired' attribute for Lexbuilder which denotes that the
builder has permanently been removed from service. This is different from
'is_active=False' which denotes that a builder is not accepting build jobs
due to some intermittent disruption like an on-going upgrade or downtime
caused by hardware failure. The "is_retired" flag will hide builders when
set to true in the Builders List view and 404 on Builders Detail view. They
will not get scanned by the master nor selected for building. They will remain
visible in the admin (but the is_retired flag is exposed and filterable for
the admin's convenience) [r=bigkevmcd,schwuk]

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
    updated_at = models.DateTimeField('date updated', auto_now=True)
165
165
    is_active = models.BooleanField(default=True)
166
166
    is_okay = models.BooleanField(default=True, editable=False)
 
167
    is_retired = models.BooleanField(default=False)
167
168
    machine_type = models.CharField(max_length=200, default="x86_64")
168
169
    current_job = models.ForeignKey("BuildResult", db_column="current_job_id", editable=False, blank=True, null=True)
169
170
    notes = models.TextField('whiteboard', blank=True, null=True)