Skip to content

Conversation

@jzgom067
Copy link
Member

@jzgom067 jzgom067 commented Jan 9, 2026

Currently, we haven't figured out a solution for dealing with expired URL codes and archiving events. Because of this, if a URL code was re-used it would make the old event it referenced inaccessible.

In addition, we haven't told the users anywhere on the website that the URL codes expire and can be "stolen". Because of this, the functionality is being removed from the backend for now to avoid confusion and frustration.

Copilot AI review requested due to automatic review settings January 9, 2026 22:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the URL code expiration functionality to prevent expired codes from being reused and making old events inaccessible. The change ensures that once a URL code is assigned to an event, it remains permanently associated with that event.

Key Changes:

  • Removed automatic cleanup of expired URL codes from scheduled tasks
  • Changed URL code creation from update_or_create to create to prevent overwriting existing codes
  • Simplified code availability checking to reject all existing codes regardless of age

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
api/tasks.py Removed url_code_cleanup() function and its invocation from daily tasks, along with related imports
api/event/views.py Changed from update_or_create to create when assigning URL codes to new events, preventing code reuse
api/event/utils.py Simplified check_code_available() to reject any existing code instead of only non-expired ones

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jzgom067 jzgom067 requested a review from mirmirmirr January 9, 2026 22:56
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.

2 participants