Commit 3a16ca95 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by stevanradakovic
Browse files

Remove admin_notifications field



This field is never used.
Signed-off-by: default avatarRémi Duraffort <remi.duraffort@linaro.org>
parent 1a20620b
...@@ -142,7 +142,6 @@ class TestJobSerializer(serializers.ModelSerializer): ...@@ -142,7 +142,6 @@ class TestJobSerializer(serializers.ModelSerializer):
"definition", "definition",
"original_definition", "original_definition",
"multinode_definition", "multinode_definition",
"admin_notifications",
"failure_tags", "failure_tags",
"failure_comment", "failure_comment",
) )
...@@ -196,7 +195,6 @@ class TestJobViewSet(viewsets.ReadOnlyModelViewSet): ...@@ -196,7 +195,6 @@ class TestJobViewSet(viewsets.ReadOnlyModelViewSet):
"definition", "definition",
"original_definition", "original_definition",
"multinode_definition", "multinode_definition",
"admin_notifications",
"failure_tags", "failure_tags",
"failure_comment", "failure_comment",
) )
......
...@@ -716,7 +716,6 @@ def _export_query(query_results, content_type, filename): ...@@ -716,7 +716,6 @@ def _export_query(query_results, content_type, filename):
"user_id", "user_id",
"actual_device_id", "actual_device_id",
"definition", "definition",
"admin_notifications",
"group_id", "group_id",
"multinode_definition", "multinode_definition",
"original_definition", "original_definition",
......
...@@ -816,10 +816,10 @@ class SchedulerAPI(ExposedAPI): ...@@ -816,10 +816,10 @@ class SchedulerAPI(ExposedAPI):
_state, submitter_id, is_pipeline, id, failure_comment, _state, submitter_id, is_pipeline, id, failure_comment,
multinode_definition, user_id, priority, _actual_device_cache, multinode_definition, user_id, priority, _actual_device_cache,
original_definition, status, health_check, description, original_definition, status, health_check, description,
admin_notifications, start_time, target_group, visibility, start_time, target_group, visibility, pipeline_compatibility,
pipeline_compatibility, submit_time, is_public, _old_status, submit_time, is_public, _old_status, actual_device_id, definition,
actual_device_id, definition, sub_id, requested_device_type_id, sub_id, requested_device_type_id, end_time, group_id, absolute_url,
end_time, group_id, absolute_url, submitter_username submitter_username
""" """
self._authenticate() self._authenticate()
if not job_id: if not job_id:
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-06 14:09
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("lava_scheduler_app", "0038_set_default_device_health_maintenance")
]
operations = [
migrations.RemoveField(model_name="testjob", name="admin_notifications")
]
...@@ -1630,10 +1630,6 @@ class TestJob(RestrictedResource): ...@@ -1630,10 +1630,6 @@ class TestJob(RestrictedResource):
# calculated by the master validation process. # calculated by the master validation process.
pipeline_compatibility = models.IntegerField(default=0, editable=False) pipeline_compatibility = models.IntegerField(default=0, editable=False)
# only one value can be set as there is only one opportunity
# to transition a device from Running to Offlining.
admin_notifications = models.TextField(editable=False, blank=True)
@property @property
def size_limit(self): def size_limit(self):
return settings.LOG_SIZE_LIMIT * 1024 * 1024 return settings.LOG_SIZE_LIMIT * 1024 * 1024
......
...@@ -302,7 +302,6 @@ class JobTable(LavaTable): ...@@ -302,7 +302,6 @@ class JobTable(LavaTable):
"definition", "definition",
"original_definition", "original_definition",
"multinode_definition", "multinode_definition",
"admin_notifications",
"requested_device_type", "requested_device_type",
"start_time", "start_time",
"log_file", "log_file",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment