Skip to content

fix: support application versions longer than 50 characters - #700

Open
Manny7717 wants to merge 1 commit into
Exodus-Privacy:v1from
Manny7717:fix/long-version-support
Open

fix: support application versions longer than 50 characters#700
Manny7717 wants to merge 1 commit into
Exodus-Privacy:v1from
Manny7717:fix/long-version-support

Conversation

@Manny7717

Copy link
Copy Markdown

Description

Closes #300.

Application version names longer than 50 characters (e.g. the Play Store value flavorpreviewRelease-10.0.0.191210.1822.126-RELEASE) could not be stored in the Application.version field, which aborted the analysis right after the "Tracker analysis: success" message.

This PR:

  • increases Application.version to max_length=100 (matching version_code, per the discussion in Handle app with version name with > 50 characters #300)
  • adds a migration for the change
  • shows the full version string as a tooltip in the reports list (the label is already truncated at 20 chars there)
  • adds a regression test that stores and round-trips the exact version string from the issue

How it was tested

  • New regression test fails against the old 50-char schema (DataError: value too long) and passes with the fix
  • Full test suite: 69 tests, all OK (python manage.py test, settings exodus.settings.dev, PostgreSQL 15 — same as CI)
  • flake8 exodus/ clean
  • djhtml --check clean on the modified template
  • makemigrations --check reports no drift

Limitations

No changes to the analysis pipeline itself; the analysis was already made to fail cleanly in #300's earlier work — this fixes storage of the long value so analysis can complete.

Version names longer than 50 characters (e.g. the Play Store value
'flavorpreviewRelease-10.0.0.191210.1822.126-RELEASE') could not be
stored, aborting analysis right after 'Tracker analysis: success'.

Increase Application.version to 100 characters, matching version_code,
and surface the full version string as a tooltip in the reports list
(already truncated at 20 chars).

Closes Exodus-Privacy#300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle app with version name with > 50 characters

1 participant