Add comprehensive audit reports, design assessment, and non-authenticated features testing for ThrillWiki application

- Created critical functionality audit report identifying 7 critical issues affecting production readiness.
- Added design assessment report highlighting exceptional design quality and minor cosmetic fixes needed.
- Documented non-authenticated features testing results confirming successful functionality and public access.
- Implemented ride search form with autocomplete functionality and corresponding templates for search results.
- Developed tests for ride autocomplete functionality, ensuring proper filtering and authentication checks.
This commit is contained in:
pacnpal
2025-06-25 20:30:02 -04:00
parent 401449201c
commit de05a5abda
35 changed files with 3598 additions and 380 deletions

View File

@@ -214,8 +214,8 @@ class ParkArea(TrackedModel):
return f"{self.name} at {self.park.name}"
def save(self, *args: Any, **kwargs: Any) -> None:
if not self.slug:
self.slug = slugify(self.name)
# Always update slug when name changes
self.slug = slugify(self.name)
super().save(*args, **kwargs)
def get_absolute_url(self) -> str:
@@ -230,15 +230,17 @@ class ParkArea(TrackedModel):
try:
return cls.objects.get(slug=slug), False
except cls.DoesNotExist:
# Check historical slugs using pghistory
history_model = cls.get_history_model()
history = history_model.objects.filter(
slug=slug
).order_by('-pgh_created_at').first()
# Check pghistory events
event_model = getattr(cls, 'event_model', None)
if event_model:
historical_event = event_model.objects.filter(
slug=slug
).order_by('-pgh_created_at').first()
if historical_event:
try:
return cls.objects.get(pk=historical_event.pgh_obj_id), True
except cls.DoesNotExist:
pass
if history:
try:
return cls.objects.get(pk=history.pgh_obj_id), True
except cls.DoesNotExist as e:
raise cls.DoesNotExist("No park area found with this slug") from e
raise cls.DoesNotExist("No park area found with this slug")