Skip to content

Added support for editing event priority groups.#218

Merged
maffe03 merged 3 commits into
mainfrom
event_priority_support
Jul 6, 2025
Merged

Added support for editing event priority groups.#218
maffe03 merged 3 commits into
mainfrom
event_priority_support

Conversation

@georgelgeback
Copy link
Copy Markdown
Contributor

Tested with fsek/WWW-Web#67 and just works.

@georgelgeback georgelgeback requested a review from Copilot June 21, 2025 16:31
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 adds support for editing event priority groups by modifying the event update logic, exposing a new API endpoint to retrieve priority roles, and updating the event schema with a priorities field.

  • Updated event update logic to handle priority groups separately.
  • Introduced a new endpoint to retrieve event priority roles.
  • Extended the event schema to include a priorities field.

Reviewed Changes

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

File Description
services/event_service.py Added conditional logic to delete and recreate priority groups
routes/event_router.py Added new GET endpoint to return event priority roles
api_schemas/event_schemas.py Updated EventUpdate schema with a new priorities field

Comment thread services/event_service.py
Comment thread routes/event_router.py Outdated
@georgelgeback georgelgeback marked this pull request as draft June 25, 2025 16:49
@georgelgeback
Copy link
Copy Markdown
Contributor Author

Potential hold to await #220 ?

@georgelgeback georgelgeback marked this pull request as ready for review July 1, 2025 17:02
@georgelgeback georgelgeback requested a review from Trobbi July 1, 2025 17:02
Copy link
Copy Markdown
Member

@maffe03 maffe03 left a comment

Choose a reason for hiding this comment

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

MEMBER_ROLES is constant right?
In that case it LGTM

@georgelgeback
Copy link
Copy Markdown
Contributor Author

As the code is currently written MEMBER_ROLES is a constant. Not sure if we want the ability to add more priority groups via API in the future

@maffe03
Copy link
Copy Markdown
Member

maffe03 commented Jul 6, 2025

Maybe, but not a priority for the foreseeable future. Merging this now!

@maffe03 maffe03 merged commit 1528517 into main Jul 6, 2025
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.

3 participants