Skip to content

General car renting fixes#452

Merged
georgelgeback merged 12 commits intofsek:mainfrom
Armadillan:car-renting-fixes
Mar 27, 2026
Merged

General car renting fixes#452
georgelgeback merged 12 commits intofsek:mainfrom
Armadillan:car-renting-fixes

Conversation

@Armadillan
Copy link
Copy Markdown
Contributor

@Armadillan Armadillan commented Dec 21, 2025

Changes based on my (Vic, BilF 25/26) opinions:

  • Personal bookings are never automatically confirmed when created.

General bug fixes:

  • Non-admin bookings are no longer automatically confirmed when updated.
  • Council bookings are no longer autmatically unconfirmed on update (for any reason, including falling outside of school hours).
  • Fixed time zone shenanigans when checking for bookings outside of school hours.

@Armadillan
Copy link
Copy Markdown
Contributor Author

I'll write some tests tihi

@Armadillan
Copy link
Copy Markdown
Contributor Author

Changed tests to always expect personal bookings to be unconfirmed and council bookings to be confirmed, irrespective of time (as per my spec, see pr comment). Also added some new tests.

@georgelgeback georgelgeback self-requested a review March 27, 2026 04:48
>24h booking unconfirm and so do moving by >24h
Copy link
Copy Markdown
Contributor

@georgelgeback georgelgeback left a comment

Choose a reason for hiding this comment

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

I trust BilF that this booking logic is best for them. Code looks great. Sorry for the wait.

@georgelgeback georgelgeback merged commit 1330290 into fsek:main Mar 27, 2026
1 check passed
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