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

preparing to add JSONfields

parent af605fb6
No related branches found
No related tags found
No related merge requests found
Pipeline #7261 passed
......@@ -21,9 +21,6 @@ This diagram roughly serves as the specs for adapting ATDB for LDV.
These diagrams are the core of the ATDB documentation.
Currently they are still mostly the original ATDB diagrams. They will be adapted and kept in sync once the ATDB-LDV structure solifies a bit more.
Context Diagram:
* https://drive.google.com/file/d/1ltmzFMgOI24kIgPtaKrYl-j__ATOI3m6/view?usp=sharing
Datamodel:
* https://drive.google.com/file/d/1v5hMBQS0jT8DQJwySVISfRa1zF4o0fCQ/view?usp=sharing
......
# Generated by Django 3.1.4 on 2020-12-22 10:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('taskdatabase', '0003_auto_20201218_1500'),
]
operations = [
migrations.RemoveField(
model_name='observation',
name='metadata',
),
]
......@@ -42,7 +42,6 @@ class TaskObject(models.Model):
# and I need services to be able to filter on a status to execute their tasks.
my_status = models.CharField(db_index=True, max_length=50,default="defined")
node = models.CharField(max_length=10, null=True, blank=True)
quality = models.CharField(max_length=30, default="unknown")
def __str__(self):
......@@ -80,11 +79,8 @@ class Observation(TaskObject):
field_name = models.CharField(max_length=50, null=True)
field_ra = models.FloatField('field_ra', null = True)
field_dec = models.FloatField('field_dec', null = True)
metadata = models.CharField(max_length=255, default="unknown", null=True)
skip_auto_ingest = models.BooleanField(default=False)
progress = models.CharField(max_length=40, default="", null=True)
# this translates a view-name (from urls.py) back to a url, to avoid hardcoded url's in the html templates
......
......@@ -55,7 +55,7 @@ class ObservationSerializer(serializers.ModelSerializer):
'creationTime','starttime','endtime', 'duration', 'size',
'my_status','new_status','status_history',
'generated_dataproducts',
'data_location', 'node','metadata',
'data_location', 'node',
'skip_auto_ingest','observing_mode',
'quality','progress')
......@@ -46,7 +46,7 @@
</div>
{% include 'taskdatabase/pagination.html' %}
</div>
<p class="footer"> Version 1.0.0 (22 dec 2020 - 11:00)
<p class="footer"> Version 1.0.0 (22 dec 2020 - 11:30)
<script type="text/javascript">
(function(seconds) {
var refresh,
......
......@@ -43,7 +43,7 @@ class ObservationFilter(filters.FilterSet):
'endtime': ['gt', 'lt', 'gte', 'lte', 'contains', 'exact'],
'data_location': ['exact', 'icontains'],
'node': ['exact', 'in'],
'metadata': ['icontains'],
# 'metadata': ['icontains'],
'skip_auto_ingest': ['exact'],
'quality': ['exact', 'icontains'],
}
......
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