Michael Manganiello
004c0b634e
fix: Make some DB columns non-nullable
...
This change makes some database columns non-nullable, and includes the
migration to seamlessly upgrade the schema.
It includes:
* User and Platform names
* Every boolean column
2024-07-07 11:07:27 -03:00
Michael Manganiello
e1bcd9cc06
misc: Use Python future annotations
...
Simplify annotations by using `__future__.annotations`, so there's no
need to add typing using types as strings.
2024-06-30 12:19:37 -03:00
Michael Manganiello
b99ededced
misc: Migrate to SQLAlchemy declarative models
...
This change applies the guided migration process recommended by
SQLAlchemy [1], up to step 4, to have declarative ORM models that better
support Python typing.
The change was tested by running `alembic check`, which does not find
any schema changes.
Errors reported by `mypy` go down to 170, from the original 223 in the
current `master` commit.
[1] https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html#migrating-an-existing-mapping
2024-06-25 23:03:20 -03:00
Georges-Antoine Assi
b075e93321
Merge branch 'master' into trunk-io
2024-05-24 16:47:19 -04:00
Georges-Antoine Assi
ac59fa16eb
hotfix scanning rom_count field
2024-05-24 09:56:41 -04:00
Georges-Antoine Assi
7c5da34ddf
fix slow fetching of platform
2024-05-23 23:18:19 -04:00
Georges-Antoine Assi
10479bdc9f
run formatter
2024-05-23 10:06:43 -04:00
Georges-Antoine Assi
fcb34f9088
Merge branch 'master' into trunk-io
2024-05-23 10:06:13 -04:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files
2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
0922e5e1e2
add comments for some changes
2024-05-18 21:00:15 -04:00
Georges-Antoine Assi
66510c0327
Improve fetch times of platforms endpoint
2024-05-18 17:24:07 -04:00
Georges-Antoine Assi
2749aaee4a
rename back to old names
2024-05-05 16:59:30 -04:00
Georges-Antoine Assi
9ad28f3294
more refactoring again
2024-05-05 16:32:40 -04:00
Georges-Antoine Assi
def2608c28
refactor db handlers
2024-05-05 15:46:07 -04:00
Georges-Antoine Assi
1a2c914045
refactor handlers out into own files
2024-05-05 12:45:56 -04:00
Georges-Antoine Assi
eca1eb1136
model and scanning
2024-05-01 15:27:16 -04:00
Georges-Antoine Assi
ce9deb4f3c
Rebuild moby api on new code
2024-02-13 18:46:31 -05:00
Zurdi
37c359fa97
path_cover and url_cover refactored
2024-02-01 00:22:44 +01:00
Georges-Antoine Assi
092df45e4a
Misc hotfixes from backend refactor
2024-01-18 16:55:35 -05:00
Georges-Antoine Assi
81b5bcf9ba
refactor handler names
2024-01-18 14:04:35 -05:00
Zurdi
1d2c9e7d05
standarized GET endpoints for roms and platforms
2024-01-14 02:34:37 +01:00
Zurdi
4b9e76f550
backend structure refactor
2024-01-12 23:44:27 +01:00
Georges-Antoine Assi
5762270f62
Merge branch 'master' into romm-55
2024-01-09 13:06:51 -05:00
Zurdi
eea7e41940
docstrings added to endpoints + organized imports + formatted code
2024-01-09 16:22:31 +01:00
Georges-Antoine Assi
91d2562597
Support screenshots outside platforms
2024-01-06 17:24:51 -05:00
Georges-Antoine Assi
05da20963f
remove support for bios and emulatores
2024-01-06 10:21:43 -05:00
Georges-Antoine Assi
678b6c2c98
Add support for emulator files related to platforms
2023-11-29 14:41:12 -05:00
Georges-Antoine Assi
009c0f391a
Switch to eager loading
2023-11-21 23:45:24 -05:00
Georges-Antoine Assi
f560d03b86
Get saves and states loading
2023-11-14 00:00:33 -05:00
zurdi
5121996a90
some typed attributes added
2023-11-08 17:40:21 +01:00
Georges-Antoine Assi
04ba6f493b
Switch igdb/sgdb IDs to int + update fastapi/pydantic
2023-09-14 10:06:43 -04:00
Georges-Antoine Assi
08846d304f
Mega cool refactor of dbhandler
2023-09-13 22:30:34 -04:00
Georges-Antoine Assi
a1c62553f1
Imrpvements to file upload + api fixes
2023-09-13 18:36:41 -04:00
Georges-Antoine Assi
0bae24da6a
Refactor the backend
2023-09-12 23:42:26 -04:00
Georges-Antoine Assi
9c3bc6b842
Add jwt based auth
2023-08-09 22:15:05 -04:00
Georges-Antoine Assi
88ac2a7353
introduce mypy with lib types + remove ignores + fix types
2023-08-08 23:31:59 -04:00
zurdi
579160378a
pylint tweaks
2023-08-09 00:33:21 +02:00
Georges-Antoine Assi
917dbc3295
Rewrite dev setup, switch to poetry and refactor folder strucutre
2023-05-08 19:01:21 -04:00