Fix release blockers and deployment build
deploy / deploy (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-21 21:22:29 +02:00
parent b8091e59bd
commit a4eced8be5
64 changed files with 1011 additions and 675 deletions
+16 -9
View File
@@ -1,7 +1,7 @@
from __future__ import annotations
from decimal import Decimal
import uuid
from decimal import Decimal
from django.conf import settings
from django.db import models
@@ -193,8 +193,12 @@ class GeocodeLocationLookup(TimeStampedModel):
class Meta:
ordering = ["query_kind", "query_value", "municipality"]
indexes = [
models.Index(fields=["query_kind", "query_value"]),
models.Index(fields=["source_name", "source_version"]),
models.Index(
fields=["query_kind", "query_value"], name="geocode_lookup_kind_query_idx"
),
models.Index(
fields=["source_name", "source_version"], name="geocode_lookup_source_idx"
),
]
constraints = [
models.UniqueConstraint(
@@ -272,7 +276,7 @@ class AiAnalysisCache(TimeStampedModel):
status = models.CharField(max_length=16, choices=Status.choices)
error_category = models.CharField(max_length=120, blank=True)
summary_nl = models.TextField(blank=True)
features = models.JSONField(default=dict, blank=True)
features = models.JSONField(default=dict)
warnings = models.JSONField(default=list, blank=True)
class Meta:
@@ -284,8 +288,11 @@ class AiAnalysisCache(TimeStampedModel):
)
]
indexes = [
models.Index(fields=["content_hash"]),
models.Index(fields=["model_name", "prompt_version", "schema_version"]),
models.Index(fields=["content_hash"], name="jobs_aianal_cache_content_idx"),
models.Index(
fields=["model_name", "prompt_version", "schema_version"],
name="jobs_aianal_cache_model_idx",
),
]
def __str__(self) -> str:
@@ -364,9 +371,9 @@ class ApplicationTimelineEvent(TimeStampedModel):
class Meta:
ordering = ["-created_at"]
indexes = [
models.Index(fields=["application", "created_at"]),
models.Index(fields=["user", "created_at"]),
models.Index(fields=["application", "created_at"], name="jobs_app_timeline_app_idx"),
models.Index(fields=["user", "created_at"], name="jobs_app_timeline_user_idx"),
]
def __str__(self) -> str:
return f"{self.application} — {self.event_type}"
return f"{self.application} — {self.event_type}"