Skip to content

fix(events/org): patch event creation API and organizer deletion#3122

Merged
mariobehling merged 2 commits intofossasia:devfrom
Sak1012:dev
Apr 1, 2026
Merged

fix(events/org): patch event creation API and organizer deletion#3122
mariobehling merged 2 commits intofossasia:devfrom
Sak1012:dev

Conversation

@Sak1012
Copy link
Copy Markdown
Member

@Sak1012 Sak1012 commented Apr 1, 2026

These PR has the following changes

  • Set a default create_for='all' so API-created events correctly show the Talks navigation and dashboard.
  • Fix organizer deletion timeouts by detaching queued mail references before deleting event mail templates.
  • Unblock organizer deletion by clearing protected team API token log references and adding deletion-stage logs for debugging.

Copilot AI review requested due to automatic review settings April 1, 2026 12:12
@github-project-automation github-project-automation bot moved this to Backlog in Eventyay Next Apr 1, 2026
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Sorry @Sak1012, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Copy link
Copy Markdown
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 adjusts default event settings to ensure API-created events behave consistently in the UI, and hardens organizer/event deletion flows to avoid protected-relation failures and provide better operational visibility during deletions.

Changes:

  • Add a default create_for='all' setting so events created without explicit configuration still expose Talks-related navigation.
  • Improve organizer deletion reliability by clearing LogEntry.api_token references before deleting teams/tokens, and add deletion-stage logging.
  • Reduce deletion failures/timeouts by detaching queued mail references before deleting event mail templates, plus add deletion-stage logging in event cleanup.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
app/eventyay/control/views/organizer_views/organizer_view.py Adds start/finish and protected-relation logging around organizer deletion.
app/eventyay/base/settings.py Adds create_for default and minor formatting cleanup for serializer helpers / validation blocks.
app/eventyay/base/models/organizer.py Adds deletion-stage logs and clears protected LogEntry.api_token references prior to team deletion.
app/eventyay/base/models/event.py Adds deletion-stage logs; detaches queued mail → template references before deleting mail templates; adjusts stored file deletion query.

@mariobehling mariobehling merged commit cfd8c71 into fossasia:dev Apr 1, 2026
9 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Eventyay Next Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants