Commit 60283360 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Stevan Radakovic
Browse files

Remove TestJob._results_link

This is not used anymore

Change-Id: I30068fe2b249ebeff69e389ccc83725dbea4fcba
parent e9fc34f0
......@@ -728,7 +728,7 @@ def _export_query(query_results, content_type, filename):
# Remove non-relevant columns for CSV file.
removed_fields = [
# TestJob fields:
"_results_link", "user_id", "actual_device_id", "definition",
"user_id", "actual_device_id", "definition",
"group_id", "id", "original_definition",
"sub_id", "submitter_id", "testdata", "testsuite",
# TestSuite fields:
......
......@@ -256,7 +256,7 @@ class TestJobAdmin(admin.ModelAdmin):
('Current status', {
'fields': ('actual_device', 'state', 'health')}),
('Results & Failures', {
'fields': ('failure_tags', 'failure_comment', '_results_link')}),
'fields': ('failure_tags', 'failure_comment')}),
)
readonly_fields = ('state', )
list_display = ('id', 'state', 'health', 'submitter', 'requested_device_type_name',
......
......@@ -782,7 +782,7 @@ class SchedulerAPI(ExposedAPI):
the user is authenticated with an username and token.
The elements available in XML-RPC structure include:
_results_link, _state, submitter_id, is_pipeline, id, failure_comment,
_state, submitter_id, is_pipeline, id, failure_comment,
multinode_definition, user_id, priority, _actual_device_cache,
original_definition, status, health_check, description,
admin_notifications, start_time, target_group, visibility,
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-07 09:56
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('lava_scheduler_app', '0034_worker_last_ping'),
]
operations = [
migrations.RemoveField(
model_name='testjob',
name='_results_link',
),
]
......@@ -1674,9 +1674,6 @@ class TestJob(RestrictedResource):
JobFailureTag, blank=True, related_name='failure_tags')
failure_comment = models.TextField(null=True, blank=True)
_results_link = models.CharField(
max_length=400, default=None, null=True, blank=True, db_column="results_link")
@property
def results_link(self):
if self.is_pipeline:
......
......@@ -218,7 +218,6 @@ class JobTable(LavaTable):
'original_definition',
'multinode_definition',
'admin_notifications',
'_results_link',
'requested_device_type',
'start_time',
'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