layerindex-web/layerindex/migrations/0024_layerupdate_vcs_revs.py
Paul Eggleton db08df4a86 Improve collection/display of LayerUpdate records
Make layerupdate collection slightly more reliable and make it easier
to see when updates have actually been captured:

* Split layerbranch into separate layer and branch fields, since there
  may not be a layerbranch in existence but we might want to log an
  error relating to the branch and layer.
* Show all layerupdates on the update detail page, not just those with
  log messages
* Record before and after revisions and show these in the update detail
  and layerupdate detail (with links)
* Record return code of update_layer process
* Highlight layer updates with a non-zero return code, errors or
  warnings in the output on the update detail page
* Show duration on the layerupdate detail page

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-08-14 15:07:34 +02:00

36 lines
1.0 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-08-13 23:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('layerindex', '0023_layerupdate_layer_branch_finalise'),
]
operations = [
migrations.AddField(
model_name='layerupdate',
name='vcs_after_rev',
field=models.CharField(blank=True, max_length=80, verbose_name='Revision after'),
),
migrations.AddField(
model_name='layerupdate',
name='vcs_before_rev',
field=models.CharField(blank=True, max_length=80, verbose_name='Revision before'),
),
migrations.AddField(
model_name='layerupdate',
name='retcode',
field=models.IntegerField(default=0),
),
migrations.AlterField(
model_name='layerupdate',
name='finished',
field=models.DateTimeField(blank=True, null=True),
),
]