Skip to content

Conversation

Copy link

Copilot AI commented Nov 24, 2025

The grant system had hardcoded reimbursement amounts for ticket, accommodation, and travel categories in the Conference model. This prevented conferences from defining custom reimbursement categories or adjusting amounts per grant.

Changes

  • Removed hardcoded conference fields: grants_default_ticket_amount, grants_default_accommodation_amount, grants_default_travel_from_italy_amount, grants_default_travel_from_europe_amount
  • Added GrantReimbursement model: Links grants to GrantReimbursementCategory with configurable amounts per grant
  • Migration to new schema: Backfills existing grants with reimbursements based on legacy fields
  • Updated admin interface: Displays reimbursement breakdown in grant summary and review pages
  • Updated GraphQL API: Returns reimbursements as part of grant queries

Grants now support arbitrary reimbursement categories configured per conference, enabling flexible grant allocation beyond the original three categories.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

estyxx and others added 2 commits November 22, 2025 17:04
Remove hardcoded default grant amounts for ticket, accommodation, and travel
from `Conference` in favor of using `GrantReimbursementCategory`. Update
all relevant admin forms, models, and templates to reference flexible
categories instead of fixed fields.

- Remove legacy fields: `grants_default_ticket_amount`,
  `grants_default_accommodation_amount`, `grants_default_travel_from_italy_amount`,
  and `grants_default_travel_from_europe_amount` from `Conference`
- Update `Grant` and `GrantReimbursement` logic to work exclusively with
  `GrantReimbursementCategory`
- Refactor grant review admin and summary logic to support multiple,
  configurable reimbursement categories per grant
- Migrate existing grants to new reimbursement category scheme
- Add and update tests and migrations to cover flexible grant categories

This change allows flexible reimbursement types (and amounts) to be
configured per conference, supports granular grant allocation, and
paves the way for internationalization and more complex business rules.
@vercel
Copy link

vercel bot commented Nov 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
pycon Ready Ready Preview Nov 24, 2025 0:02am

Copilot AI changed the title [WIP] Add flexible grant reimbursement categories Flexible Grant categories Nov 24, 2025
Copilot AI requested a review from estyxx November 24, 2025 12:01
Copilot finished work on behalf of estyxx November 24, 2025 12:01
@estyxx estyxx marked this pull request as ready for review November 24, 2025 12:06
@estyxx estyxx force-pushed the feature/flexible-grant-categories branch 4 times, most recently from 0932ae1 to 0a1ec12 Compare December 1, 2025 15:45
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