Commit Graph

369 Commits

Author SHA1 Message Date
dc648d6770 membershipworks: Move scrape task to 'tasks' submodule 2023-12-20 13:04:56 -05:00
68c9b3f82d membershipworks: Add methods to get event listing and events by eid/url 2023-12-20 13:04:56 -05:00
cf55c2aed5 membershipworks: Handle Byte Order Mark (BOM) in CSVs 2023-12-20 13:04:56 -05:00
3fcfddb221 membershipworks: Allow missing fields in transactions json 2023-12-20 13:04:56 -05:00
b8b6e7abf1 membershipworks: Use get_attname_column() to get correct field name/column 2023-12-20 13:04:56 -05:00
18a811ce44 membershipworks: Move scraping logic to tasks module 2023-12-20 13:04:56 -05:00
0ee423c079 membershipworks: Expand undersized Transaction.sid field 2023-12-20 13:04:56 -05:00
ea94d9a3df membershipworks: Move member and transaction scraping into separate functions 2023-12-20 13:04:56 -05:00
02c9be5ae6 membershipworks: Get only transactions since last in database + 1 second
This avoids having to deduplicate transactions, at the cost of
hypothetically missing transactions in some unlikely edge cases
2023-12-20 13:04:56 -05:00
7563e5dcea membershipworks: Ensure that all expected fields are present in data 2023-12-20 13:04:56 -05:00
cd63a169aa membershipworks: Scrape Transactions 2023-12-20 13:04:56 -05:00
0a92c28efc membershipworks: Scrape folder membership from membershipworks api 2023-12-20 12:47:46 -05:00
dfacf813e2 membershipworks: Add API module and command for scraping data 2023-12-20 12:47:46 -05:00
6b3113e839 membershipworks: Remove Member fields that no longer exist in MembershipWorks 2023-12-20 12:47:46 -05:00
42f75f0858 membershipworks: Sync initial migration to current state of database 2023-12-20 12:47:46 -05:00
365efdacf7 membershipworks: Allow migrations for membershipworks database 2023-12-20 12:47:46 -05:00
bfefa840ea membershipworks: Set models as managed 2023-12-20 12:47:46 -05:00
01b20cd844 membershipworks: Define nullable fields as blank 2023-12-20 12:47:46 -05:00
7f7c6484ea membershipworks: Add Transaction model and admin
Retroactively adding to the initial migration as this table already
existed, just wasn't represented in the Django app yet
2023-12-20 00:26:42 -05:00
017aea4b3e doorcontrol: Improve responsiveness of form controls and table in reports 2023-12-06 21:53:59 -05:00
e03b9e3c70 Always show admin facet counts in most models with filters
New feature in Django 5.0

Didn't enable always on HIDEvent admin, as the table size is relatively large
2023-12-04 13:09:13 -05:00
cacde865c0 doorcontrol: Convert HIDEvent.is_red to newly added GeneratedField
model.GeneratedField is new in Django 5.0
2023-12-04 12:05:37 -05:00
71ab17b2ce Update django to 5.0 2023-12-04 11:38:32 -05:00
f53a8c601a Bump dependencies 2023-12-04 11:35:34 -05:00
d2f87fd37b membershipworks: Add task to sync members with UCS users
UCS = Univention Corporate Server.
Ported from memberPlumbing
2023-12-04 11:27:04 -05:00
ba58d90bf7 doorcontrol: Move task scheduling into doorcontrol.apps directly 2023-12-01 23:50:41 -05:00
a50112c534 paperwork: Use window functions for CertificationVersion is_current/is_latest
This should be a lot more efficient, and is much cleaner code too
2023-12-01 13:07:17 -05:00
caf8c2cf45 doorcontrol: Generate dashboard links for all reports 2023-12-01 11:55:50 -05:00
654d5e34bd doorcontrol: Add change vs previous unit time to "Access per x" reports 2023-12-01 11:54:40 -05:00
a177ff1ed6 doorcontrol: Add busiest time of day/week reports 2023-11-30 12:06:16 -05:00
70691ff972 doorcontrol: Improve performance of door access report views 2023-11-29 21:31:29 -05:00
72fa458f6e Remove separate database for doorcontrol app 2023-11-29 17:28:41 -05:00
f35372dbcd Fix setup commands in README 2023-11-29 17:28:41 -05:00
d3da615e8e Bump pre-commit dependencies 2023-11-29 17:28:41 -05:00
db238befa6 doorcontrol: Return count of retrieved/created messages in fetch task 2023-11-29 17:28:41 -05:00
f25b67e2f1 Bump dependencies 2023-11-29 17:28:41 -05:00
6a1ced6961 Merge pull request 'chore: Configure Renovate' (#4) from renovate/configure into main
Reviewed-on: adam.goldsmith/cmsmanage#4
2023-11-18 23:21:48 -05:00
6272ed9e8b Add renovate.json 2023-11-19 04:20:05 +00:00
8c48514c04 Report django_q2 errors to admins by email 2023-11-14 13:53:17 -05:00
300397b021 doorcontrol: Add property on Door model to get associated DoorController 2023-11-14 12:53:15 -05:00
a90cd39612 doorcontrol: Register tasks in post migrate hook to fix uvicorn issue 2023-11-14 12:51:33 -05:00
6408748c3f Add django-extensions dev dependency 2023-11-09 13:01:47 -05:00
7f0de3a16f doorcontrol: Add action to Events admin to update all doors' events 2023-11-08 12:37:06 -05:00
96bcc80516 doorcontrol: Add task to periodically pull events from doors 2023-11-08 12:34:11 -05:00
215e2946d1 Make the login page look a bit better by adding some white space 2023-11-06 13:14:56 -05:00
eb42e2515b paperwork: Fix sending certification emails when shop lead flag not set 2023-09-26 23:27:31 -04:00
ee001b0256 doorcontrol: Move Door names from HIDEvents into new table 2023-09-26 23:27:31 -04:00
cb8bf3da4f doorcontrol: Use enum members instead of raw ids for "red" event types 2023-09-26 23:27:31 -04:00
05037b74fc doorcontrol: Improve styling on report pages 2023-09-26 23:27:31 -04:00
1d9102d372 Bump tabulator to v5.5.2 2023-09-26 23:27:31 -04:00