Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions exodus/reports/migrations/0014_alter_application_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.2.13 on 2026-08-28

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('reports', '0013_alter_application_version_code'),
]

operations = [
migrations.AlterField(
model_name='application',
name='version',
field=models.CharField(max_length=100),
),
]
2 changes: 1 addition & 1 deletion exodus/reports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Application(models.Model):
name = models.CharField(max_length=200, default='')
creator = models.CharField(max_length=200, default='')
downloads = models.CharField(max_length=200, default='')
version = models.CharField(max_length=50)
version = models.CharField(max_length=100)
version_code = models.CharField(max_length=100, default='')
icon_path = models.CharField(max_length=500, default='')
app_uid = models.CharField(max_length=128, default='')
Expand Down
2 changes: 1 addition & 1 deletion exodus/reports/templates/reports_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h4>
{% endif %}
</a>
</div>
<div class="small"><b>{% trans "Version" %} {{ app.version|truncatechars_html:20 }}{% if app.source %} - {{ app.source }}{% endif %}</b></div>
<div class="small"><b title="{{ app.version }}">{% trans "Version" %} {{ app.version|truncatechars_html:20 }}{% if app.source %} - {{ app.source }}{% endif %}</b></div>
<div>
{% with nb_trackers=report.found_trackers.count %}
<span class="mr-lg-4 mr-2">
Expand Down
17 changes: 17 additions & 0 deletions exodus/reports/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,20 @@ def test_should_ensure_reports_total_count_stays_with_filter_no_trackers(self):

self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['reports_total_count'], 2)


class ApplicationModelTests(TestCase):

def test_version_longer_than_50_chars_is_supported(self):
long_version = 'flavorpreviewRelease-10.0.0.191210.1822.126-RELEASE'
report = Report.objects.create()
application = Application.objects.create(
report=report,
handle='ch.sbb.mobile.android.preview',
version=long_version,
)

self.assertEqual(
Application.objects.get(pk=application.pk).version,
long_version,
)