Commit cc7e86fa authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Steve Mcintyre

Remove dashboard_app

Change-Id: I6455448550cdf55ef5e9cc8f788e8628aeb49406
Signed-off-by: default avatarRémi Duraffort <remi.duraffort@linaro.org>
parent c4a4c3e3
This diff is collapsed.
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='bundle',
name='is_deserialized',
field=models.BooleanField(default=False, help_text='Set when document has been analyzed and loaded into the database', verbose_name='Is deserialized', editable=False),
),
migrations.AlterField(
model_name='bundlestream',
name='is_anonymous',
field=models.BooleanField(default=False),
),
migrations.AlterField(
model_name='testrun',
name='time_check_performed',
field=models.BooleanField(default=False, help_text="Indicator on wether timestamps in the log file (and any data derived from them) should be trusted.<br/>Many pre-production or development devices do not have a battery-powered RTC and it's not common for development images not to synchronize time with internet time servers.<br/>This field allows us to track tests results that <em>certainly</em> have correct time if we ever end up with lots of tests results from 1972", verbose_name='Time check performed'),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dashboard_app', '0002_auto_20140917_1935'),
]
operations = [
migrations.CreateModel(
name='ImageChartTestAttributeUser',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('is_visible', models.BooleanField(default=True, verbose_name='Visible')),
('image_chart_test_attribute', models.ForeignKey(to='dashboard_app.ImageChartTestAttribute')),
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
],
options={
},
bases=(models.Model,),
),
migrations.AlterUniqueTogether(
name='imagecharttestattributeuser',
unique_together=set([('image_chart_test_attribute', 'user')]),
),
migrations.AlterField(
model_name='imagereportchart',
name='chart_type',
field=models.CharField(default='pass/fail', max_length=20, verbose_name='Chart type', choices=[('pass/fail', 'Pass/Fail'), ('measurement', 'Measurement'), ('attributes', 'Attributes')]),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0003_auto_20140926_1208'),
]
operations = [
migrations.AddField(
model_name='imagereportchart',
name='is_delta',
field=models.BooleanField(default=False, verbose_name='Delta reporting'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0004_imagereportchart_is_delta'),
]
operations = [
migrations.AddField(
model_name='imagereportchart',
name='chart_height',
field=models.PositiveIntegerField(default=200, verbose_name='Chart height', validators=[django.core.validators.MinValueValidator(200), django.core.validators.MaxValueValidator(400)]),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0005_imagereportchart_chart_height'),
]
operations = [
migrations.RemoveField(
model_name='imagechartuser',
name='toggle_percentage',
),
migrations.AddField(
model_name='imagereportchart',
name='is_percentage',
field=models.BooleanField(default=False, verbose_name='Percentage'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0006_auto_20141028_1146'),
]
operations = [
migrations.AddField(
model_name='imagereportchart',
name='chart_visibility',
field=models.CharField(default='chart', max_length=20, verbose_name='Chart visibility', choices=[('chart', 'Chart only'), ('table', 'Result table only'), ('both', 'Both')]),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0007_imagereportchart_chart_visibility'),
]
operations = [
migrations.AddField(
model_name='imagechartfilter',
name='is_all_tests_included',
field=models.BooleanField(default=False, verbose_name='Include all tests from this filter'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0008_imagechartfilter_is_all_tests_included'),
]
operations = [
migrations.AlterField(
model_name='testresult',
name='measurement',
field=models.CharField(blank=True, max_length=512, help_text="Arbitrary value that was measured as a part of this test.", null=True, verbose_name="Measurement"),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0009_auto_20150108_0711'),
]
operations = [
migrations.AddField(
model_name='imagereportchart',
name='is_build_number',
field=models.BooleanField(default=False, verbose_name='Use build number'),
preserve_default=True,
),
migrations.AddField(
model_name='imagereportchart',
name='xaxis_attribute',
field=models.CharField(max_length=20, null=True, verbose_name='X-axis attribute', blank=True),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0010_auto_20150116_1533'),
]
operations = [
migrations.AddField(
model_name='imagereportchart',
name='is_aggregate_results',
field=models.BooleanField(default=False, verbose_name='Aggregate parametrized results'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0011_imagereportchart_is_aggregate_results'),
]
operations = [
migrations.AlterModelOptions(
name='imagereportchart',
options={'ordering': ['relative_index']},
),
migrations.AddField(
model_name='imagereportchart',
name='relative_index',
field=models.PositiveIntegerField(default=0, verbose_name='Order in the report'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0012_auto_20150126_1644'),
]
operations = [
migrations.RemoveField(
model_name='imagereportchart',
name='is_delta',
),
migrations.AddField(
model_name='imagechartuser',
name='is_delta',
field=models.BooleanField(default=False, verbose_name='Delta reporting'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0013_auto_20150127_1341'),
]
operations = [
migrations.AlterField(
model_name='imagereportchart',
name='chart_height',
field=models.PositiveIntegerField(default=300, verbose_name='Chart height', validators=[django.core.validators.MinValueValidator(200), django.core.validators.MaxValueValidator(400)]),
preserve_default=True,
),
migrations.AlterField(
model_name='imagereportchart',
name='is_aggregate_results',
field=models.BooleanField(default=True, verbose_name='Aggregate parametrized results'),
preserve_default=True,
),
migrations.AlterField(
model_name='imagereportchart',
name='is_build_number',
field=models.BooleanField(default=True, verbose_name='Use build number'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
def remove_stale_content_types(apps, schema_editor):
# Remove known stale objects from django_content_type table.
ContentType = apps.get_model("contenttypes", "ContentType")
models = {
("auth", "message"),
("dashboard_app", "launchpadbug"),
("dashboard_app", "imagecharttestrun"),
("dashboard_app", "testingeffort"),
("dashboard_app", "imageattribute")
}
for model in models:
try:
ContentType.objects.get(app_label=model[0],
model=model[1]).delete()
except ContentType.DoesNotExist:
pass
def reverse_func(apps, schema_editor):
# Content types are automatically added by django.
pass
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0014_auto_20150212_0604'),
]
operations = [
migrations.RunPython(
remove_stale_content_types,
reverse_func
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0015_remove_stale_content_types'),
]
operations = [
migrations.AlterField(
model_name='testrunfiltertest',
name='test',
field=models.ForeignKey(related_name='testrunfilters', to='dashboard_app.Test'),
preserve_default=True,
),
migrations.AlterField(
model_name='testrunfiltertestcase',
name='test_case',
field=models.ForeignKey(related_name='testrunfilters', to='dashboard_app.TestCase'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0016_auto_20150325_1235'),
]
operations = [
migrations.AddField(
model_name='namedattribute',
name='is_manual',
field=models.NullBooleanField(),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
('dashboard_app', '0017_namedattribute_is_manual'),
]
operations = [
migrations.AddField(
model_name='imagereport',
name='group',
field=models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, default=None, to='auth.Group', null=True),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0018_imagereport_group'),
]
operations = [
migrations.RunSQL(
sql="SET LOCAL statement_timeout to 10000000;",
reverse_sql="SET LOCAL statement_timeout to 30000;"
),
migrations.AlterUniqueTogether(
name='namedattribute',
unique_together=set([('object_id', 'name', 'content_type')]),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0019_auto_20150702_1529'),
]
operations = [
migrations.AddField(
model_name='imagereport',
name='is_archived',
field=models.BooleanField(default=False, verbose_name='Archived'),
preserve_default=True,
),
migrations.AlterField(
model_name='imagereport',
name='group',
field=models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, default=None, blank=True, to='auth.Group', null=True),
preserve_default=True,
),
migrations.AlterField(
model_name='imagereport',
name='image_report_group',
field=models.ForeignKey(default=None, blank=True, to='dashboard_app.ImageReportGroup', null=True),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-07 09:21
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0020_auto_20151124_1419'),
]
operations = [
migrations.AlterOrderWithRespectTo(
name='testresult',
order_with_respect_to=None,
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-14 13:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0021_auto_20151207_0921'),
]
operations = [
migrations.AlterField(
model_name='imagechartfilter',
name='filter',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard_app.TestRunFilter'),
),
]
This diff is collapsed.
# Copyright (C) 2010, 2011 Linaro Limited
#
# Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
#
# This file is part of Lava Dashboard.
#
# Lava Dashboard is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3
# as published by the Free Software Foundation
#
# Lava Dashboard is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Lava Dashboard. If not, see <http://www.gnu.org/licenses/>.
"""
Database models of the Dashboard application
"""
from __future__ import unicode_literals
import gzip
from django.core.files import File
from django.core.files.storage import FileSystemStorage
class GzipFileSystemStorage(FileSystemStorage):
def _open(self, name, mode='rb'):
full_path = self.path(name)
gzip_file = gzip.GzipFile(full_path, mode)
gzip_file.name = full_path
return File(gzip_file)
# Copyright (C) 2010 Linaro Limited
#
# Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
#
# This file is part of Lava Dashboard.
#
# Lava Dashboard is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3
# as published by the Free Software Foundation
#
# Lava Dashboard is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Lava Dashboard. If not, see <http://www.gnu.org/licenses/>.
"""
URL mappings for the Dashboard application
https://docs.djangoproject.com/en/1.8/topics/http/urls/#naming-url-patterns
https://docs.djangoproject.com/en/1.8/releases/1.8/#passing-a-dotted-path-to-reverse-and-url
Avoid letting the name attribute of a url look like a python path - use underscore
instead of period. The name is just a label, using it as a path is deprecated and
support will be removed in Django1.10. Equally, always provide a name if the URL
needs to be reversed elsewhere in the code, e.g. the view. (Best practice is to
use a name for all new urls, even if not yet used elsewhere.)
"""
from django.conf.urls import url
urlpatterns = [
]
# Copyright (C) 2010 Linaro Limited
#
# Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
#
# This file is part of LAVA Dashboard
#
# Lava Dashboard is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3
# as published by the Free Software Foundation
#
# Lava Dashboard is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Lava Dashboard. If not, see <http://www.gnu.org/licenses/>.
"""
XMP-RPC API
"""
import logging
from linaro_django_xmlrpc.models import (
ExposedAPI,
Mapper,
xml_rpc_signature,
)
class errors:
"""
A namespace for error codes that may be returned by various XML-RPC
methods. Where applicable existing status codes from HTTP protocol
are reused
"""
AUTH_FAILED = 100
AUTH_BLOCKED = 101
BAD_REQUEST = 400
AUTH_REQUIRED = 401
FORBIDDEN = 403
NOT_FOUND = 404
CONFLICT = 409
INTERNAL_SERVER_ERROR = 500
NOT_IMPLEMENTED = 501
class DashboardAPI(ExposedAPI):
"""
Dashboard API object.
All public methods are automatically exposed as XML-RPC methods
"""
def __init__(self, context=None):
super(DashboardAPI, self).__init__(context)
self.logger = logging.getLogger(__name__ + 'DashboardAPI')
@xml_rpc_signature('str')
def version(self):
"""
Name
----
`version` ()
Deprecated
----------
This function has been disabled in api_version 2. It is
retained as a stub for older versions of clients. Please
update your tool to use LAVA V2.
See system.api_version()
"""
return 'unknown'
@xml_rpc_signature('str', 'str', 'str', 'str')
def put(self, content, content_filename, pathname):
"""