Commit 8ee187d
authored
Eddie/callsign upgrade (#642)
# Purpose
Closes #634 . Click to open!
# New Changes
- Replaced the old callsign csv with the one containing all data
- Extended AROUserCallsigns table to accommodate added fields
- Refactored callsigns.py to parse all values of csv
- Created migrate.py in backend directory to serve as the data migration
command handler with input validation
- Created alembic migration file for callsign table
Call ```python3 gs/backend/migrate.py``` to migrate all data.
Call ```python3 gs/backend/migrate.py callsigns``` or ```python3
gs/backend/migrate.py commands``` to migrate only callsigns or only main
commands respectively.
# Testing
Explain tests that you ran to verify code functionality.
- [x] I have unit-tested this PR. Otherwise, explain why it cannot be
unit-tested.
See screenshots below.
- [x] I have included screenshots of the tests performed below.
<img width="695" height="159" alt="Screenshot 2025-11-22 at 6 37 09 PM"
src="https://github.com/user-attachments/assets/b35dca92-86a4-46c7-b4f6-4a5bca9701be"
/>
<img width="1275" height="237" alt="Screenshot 2025-11-22 at 6 39 01 PM"
src="https://github.com/user-attachments/assets/95d1968b-1d58-42d5-a944-ceca379b770f"
/>
# Outstanding Changes
If there are non-critical changes (i.e. additional features) that can be
made to this feature in the future, indicate them here.
Someone please create a migration guide, took me a while to figure it
out.1 parent 832f005 commit 8ee187d
File tree
7 files changed
+91000
-90889
lines changed- gs/backend
- api
- data
- resources
- tables
- migrations/versions
7 files changed
+91000
-90889
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | 20 | | |
0 commit comments