Files
website-v2/versions/migrations/0009_alter_version_release_date.py
Lacey Williams Henschel 7e847cc17f - Move GitHub retrieval and parser classes to the core/ app from the libraries/ app; moved tests, too, and updated import statements
- Add `verbose` flag to `import_versions` to allow user to silence the output
- Removed some unused options from `import_versions`
- Moved the exclusion logic in `import_versions` to its own function
- Stop getting the `github_url` from the github API. Instead, generate it from the tag. (reason: in older tags, the best URL GitHub gives us is a less-useful one to a _commit_ and not a tag. We can generate the url, though.)
- Move the retrieval of the `release_date` to its own task, so it can be loaded async. (reason: it's a separate API call per version to get the date)
- Make `release_date` optional on the `Version` model (reason: make the field easier to load async)
- Simplify logic to retrieve `release_date` and just always retrieve it from the commit
- Stop loading the version `description` from GitHub. We don't use it on the frontend anyway, and in all but the most recent couple of versions, the `description` is the comment from the commit, which is usually not useful.
2023-08-31 15:32:16 -07:00

18 lines
428 B
Python

# Generated by Django 4.2.2 on 2023-08-31 18:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("versions", "0008_remove_versionfile_file_versionfile_display_name_and_more"),
]
operations = [
migrations.AlterField(
model_name="version",
name="release_date",
field=models.DateField(null=True),
),
]