Commit Graph

554 Commits

Author SHA1 Message Date
ed3019bb92 membershipworks: Remove STATIC_URL prefix in LazyViteAssetUrl
Some checks failed
Ruff / ruff (push) Has been cancelled
Test / test (push) Has been cancelled
2024-09-09 22:42:26 -04:00
efb15dd118 membershipworks: Show change link in EventMeetingTimeInline
Some checks are pending
Ruff / ruff (push) Waiting to run
Test / test (push) Waiting to run
2024-09-09 22:33:01 -04:00
ccc7a595ba reservations: Fix Reservation.__repr__ being sometimes recursively defined 2024-09-09 22:33:01 -04:00
69defab388 membershipworks: Indicate in admin events with meeting times not matching event start/end 2024-09-09 22:33:01 -04:00
59d2ff4cb7 membershipworks: Add more useful MW links to EventAdmin change page 2024-09-09 22:33:01 -04:00
d19b2d19fb reservations: Add generated Reservation.timespan field and use it for filtering 2024-09-09 22:33:01 -04:00
d25f1e673a membershipworks: Copy EventMeetingTime start date to end in admin, when blank
just a minor improvement in UX
2024-09-09 22:33:01 -04:00
f2a17d3ea4 membershipworks: Remove unrelated comment
not really sure where that came from...
2024-09-09 13:51:35 -04:00
56f49f8784 membershipworks: Use more consistent and readable format for money columns
Some checks are pending
Ruff / ruff (push) Waiting to run
Test / test (push) Waiting to run
2024-09-09 13:50:14 -04:00
9198503572 Bump dependencies 2024-09-09 10:53:42 -04:00
8c424c7e49 Add coverage dev dependency, with basic config 2024-09-07 11:19:48 -04:00
1348bd8fdf Add some more paths to .gitignore 2024-09-07 11:15:51 -04:00
0e865512ba Bump dependencies
All checks were successful
Ruff / ruff (push) Successful in 52s
Test / test (push) Successful in 3m29s
2024-09-03 11:08:58 -04:00
de36c6844c doorcontrol: Convert HIDEvent.raw_card_number to TextField
Turns out that those are not just representing a uint, and can be much
longer. Also Text fields in Postgres doesn't have any performance
penalty.
2024-09-03 11:05:32 -04:00
6c80ed05bd Enable pre-commit hook to check django migrations 2024-09-03 11:00:38 -04:00
62e48c6e6f membershipworks: Use bulk upsert when scraping transactions
All checks were successful
Ruff / ruff (push) Successful in 29s
Test / test (push) Successful in 3m9s
Instead of trying to do fiddly things with relative times, which turns
out not to work very well. This will break if anyone changes the sid
or timestamp of a transaction though (because of course
MembershipWorks allows editing those).
2024-09-02 12:50:08 -04:00
b056eb04ed doorcontrol: Add some more debug logging in update_doors task
All checks were successful
Ruff / ruff (push) Successful in 1m14s
Test / test (push) Successful in 3m48s
2024-09-01 21:36:24 -04:00
ee48d286c2 doorcontrol: Fix Credential odd parity calculation
whoops!
2024-09-01 21:36:11 -04:00
bde7828865 doorcontrol: Show hex value in hid.Credential exceptions 2024-09-01 09:47:50 -04:00
33b01af78a doorcontrol: Explicity cast Credential.bits to Bits, as Bitstream is not hashable
All checks were successful
Ruff / ruff (push) Successful in 36s
Test / test (push) Successful in 3m7s
2024-09-01 02:21:34 -04:00
f29010469a doorcontrol: Define Credential as frozen to allow hashing
All checks were successful
Ruff / ruff (push) Successful in 32s
Test / test (push) Successful in 3m11s
2024-09-01 02:09:09 -04:00
8d3f548e8b Add django-postgres-metrics
All checks were successful
Ruff / ruff (push) Successful in 39s
Test / test (push) Successful in 3m48s
2024-08-30 11:49:21 -04:00
5e6ae8ee75 doorcontrol: Fix divide by zero in access report deltas 2024-08-29 21:45:56 -04:00
fdd7011920 Don't use postgres connection pool for qclusters 2024-08-29 21:45:56 -04:00
1255d0ddc6 membershipworks: Remove simple-history duplicates every hour 2024-08-29 21:45:56 -04:00
0cd88c00f1 membershipworks: Add refresh action in EventAdmin 2024-08-29 21:45:56 -04:00
c356913a8b membershipworks: Clean up Event admin change view 2024-08-29 21:45:56 -04:00
e34ccbfb48 membershipworks: Set action labels without overriding _get_tool_dict 2024-08-29 21:45:56 -04:00
b98804e514 membershipworks: Use django-simple-history for Member, Flag, and MemberFlag 2024-08-29 21:45:56 -04:00
ee61451759 Convert from MariaDB to PostgreSQL
MariaDB has become far too annoying/buggy, and there are some neat
features only available in PostgreSQL
2024-08-29 21:45:56 -04:00
97b746ba3a doorcontrol: Add basic unit tests for Credential 2024-08-29 21:45:56 -04:00
cbe684d918 doorcontrol: Move HID card number decoding out of database query
Not really needed, and hard to make portable
2024-08-29 21:45:56 -04:00
32a91315ef doorcontrol: Improve pagination behavior of DoorController.get_records()
Use `DR` method to get total count of elements then paginate by
defined page size, instead of hacky bad automatically sized pagination
2024-08-29 21:45:56 -04:00
017e70b7d1 paperwork: Suppress PermissionDenied exception logging during tests 2024-08-29 21:45:56 -04:00
612c126c9d Bump dependencies, fix type dependencies group 2024-08-29 21:45:56 -04:00
deb1165afc reservations: Refactor sync_google_calendar to use class 2024-08-29 21:45:56 -04:00
06fd819acf reservations: Refactor out insert_or_update_calendar_event function 2024-08-29 21:45:56 -04:00
0e486babb7 Use header to expose healthcheck status instead of status code
All checks were successful
Ruff / ruff (push) Successful in 1m14s
Test / test (push) Successful in 4m57s
This is mostly to prevent it sending me emails on every GET of the
page when erroring
2024-08-29 21:35:12 -04:00
e4c6fab011 doorcontrol: Simplify querystring handling using new querystring tag
Some checks failed
Ruff / ruff (push) Successful in 1m4s
Test / test (push) Failing after 5m1s
2024-08-17 00:26:22 -04:00
bf3433bb3d Bump dependencies 2024-08-16 17:56:57 -04:00
6591eee3ba CI: Pin MariaDB version to avoid recently introduced bug
All checks were successful
Ruff / ruff (push) Successful in 44s
Test / test (push) Successful in 5m28s
2024-08-16 00:22:37 -04:00
02e86bd079 CI: Build Vite assets for test workflow 2024-08-16 00:22:32 -04:00
8868c0b5ef membershipworks: Add basic tests for validity of Event financial queries 2024-08-15 23:56:03 -04:00
5ddecaaea8 Add reservations to known first-party packages list 2024-08-15 12:41:30 -04:00
db79a23dc4 Bump dependencies 2024-08-15 12:41:30 -04:00
91da3736ec Add type stubs for Google API client and dateutil 2024-08-14 16:58:41 -04:00
cc31f97bc4 membershipworks: Delete Events that don't exist in membershipworks during scrape 2024-08-14 16:58:27 -04:00
cd054bd716 membershipworks: Ignore deletions of related EventExt in View Models 2024-08-14 16:58:22 -04:00
996331c7a0 doorcontrol: Remove broken hid tests 2024-08-09 01:47:32 -04:00
20fcac99a8 Apply Ruff's flake8-bugbear (B) rules 2024-08-09 01:47:32 -04:00