Skip to content
Snippets Groups Projects
Commit dff7f1e6 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add 2 additional flags in Activity for future use (doing all database changes in 1 migration)

parent 0384de4b
No related branches found
No related tags found
1 merge request!343added mechanism and structure to check if a task is a 'summary' task
Pipeline #73242 failed
# Generated by Django 5.0 on 2024-02-22 13:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('taskdatabase', '0042_task_is_summary'),
]
operations = [
migrations.AddField(
model_name='activity',
name='is_combined',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='activity',
name='is_validated',
field=models.BooleanField(default=False),
),
]
......@@ -111,7 +111,15 @@ class Activity(models.Model):
# this is the JSON blob that is filled in by the ldv_archiver during the ingest process
archive = models.JSONField(null=True, blank=True)
is_verified = models.BooleanField(default=False)
# set by update_activity, used by Validation Page
is_verified = models.BooleanField(default=False)
# TODO: flag set by the 'validate' step in ATDB, used by combine service
is_validated = models.BooleanField(default=False)
# TODO: flag set (and used) by the combine service, so that it doesn't do double work
is_combined = models.BooleanField(default=False)
finished_fraction = models.FloatField(blank=True, null=True)
ingested_fraction = models.FloatField(blank=True, null=True)
total_size = models.FloatField(blank=True, null=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment