Commit be5501b
authored
Feat: Various fixes across the application (#127)
* chore(pyproject): update install steps and change to using uv
* chore: python version pinned to 3.11
* chore(format): ran the formatter over the entire project
* fix(ci): split test and dev dependencies again, update action script
* fix(ci): removed requirements.txt requirement
* fix(uv): update uv.lock to current state
* refactor(permissions): rewrote permissions to integrate admin types
* fix: type errors in officers crud
* refactor(permissions): restructured most endpoints to use Depends
* tests: whole test suite can now be run
* fix: missing awaits on permission check calls
* fix: move `conftest.py` to only work on integrations tests
* feat: add GET all registrations
* feat(nominee): add create endpoint
* feat: add GET all nominees
* feat: add DELETE nominee_info
* fix(Elections): duplicate operation id in nominees URLs
* refactor: split election tests into multiple functions
* fix(tests): split admin elections tests
* fix(permissions): fixed some permission tests to be more efficient
* refactor: update Nominee model names
* fix(registrations): change return type to list
* fix(registration): fix list being sent as a JSON response
* refactor(officers): response for current officers changed to list
* fix(officers): tests that expect a dict response for current officers
* fix(Officers): merged the public and private models
* chore(OfficerInfoDB): remove unused methods
* fix(test): user client is now module scoped
* fix(officers): model fields use OfficerPositionEnum
* refactor: made a computed field
* fix(officers): term_id added to Officer response, id is now an int
* refactor: rename OfficerUpdate to OfficerInfoUpdate
* refactor: change csss_email to a computed field
* chore(officers): delete old dataclass types
* fix: remove csss_email
* fix: check that end_date is null for current officers
* fix: tests failed after the check for current admin changed
* fix: made all timestamps timezone aware, UTC stored now
* chore(tables): rename the rest of the DB tables
* refactor(nominee): update nominee models and PATCH request
* refactor(candidates): renamed registrations to candidates
* fix(alembic): registration renamed to candidates
* fix(nominee): update POST to use create model
* fix(candidates): missed some renames
* fix(candidates): updating a candidate with the same position failed
* tests(nominee): created base tests
* fix(tests): databases now persist for an entire test module (file)
* note: this has broken some tests1 parent 43a943f commit be5501b
File tree
71 files changed
+3620
-2954
lines changed- .github/workflows
- src
- admin
- alembic
- versions
- auth
- blog
- candidates
- cron
- data
- discord
- elections
- exambank
- github
- google_api
- nominees
- officers
- permission
- registrations
- scripts
- utils
- tests/integration
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
71 files changed
+3620
-2954
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
15 | 44 | | |
16 | 45 | | |
17 | 46 | | |
| |||
26 | 55 | | |
27 | 56 | | |
28 | 57 | | |
29 | | - | |
| 58 | + | |
30 | 59 | | |
31 | 60 | | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
5 | 32 | | |
6 | 33 | | |
7 | 34 | | |
8 | 35 | | |
| 36 | + | |
9 | 37 | | |
10 | 38 | | |
11 | 39 | | |
12 | 40 | | |
13 | 41 | | |
14 | 42 | | |
15 | | - | |
| 43 | + | |
16 | 44 | | |
17 | 45 | | |
18 | 46 | | |
19 | 47 | | |
| 48 | + | |
20 | 49 | | |
21 | 50 | | |
22 | 51 | | |
23 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
24 | 56 | | |
25 | 57 | | |
26 | 58 | | |
| |||
31 | 63 | | |
32 | 64 | | |
33 | 65 | | |
| 66 | + | |
34 | 67 | | |
35 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
36 | 72 | | |
| 73 | + | |
| 74 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
Lines changed: 0 additions & 53 deletions
This file was deleted.
0 commit comments