Commit Graph

2186 Commits

Author SHA1 Message Date
Georges-Antoine Assi
d2cd8270b3 start work on code coverage 2025-07-05 19:17:40 -04:00
Georges-Antoine Assi
4158b278eb fix check issues 2025-07-04 17:55:45 -04:00
Georges-Antoine Assi
e8f8f1621c complete migration to uv 2025-07-04 09:54:04 -04:00
Michael Manganiello
f96adeeaee misc: Upgrade to Python 3.13
Small changes to upgrade Python to version 3.13, and fixes based on a
`pyupgrade` run using the `--py313-plus` flag.
2025-07-03 23:37:00 -03:00
Georges-Antoine Assi
6d16ca41cc have cursor fix small bugs 2025-07-03 09:46:39 -04:00
Georges-Antoine Assi
e23c86358c IGDB ID should be an int for hasheous 2025-07-01 15:33:28 -04:00
Michael Manganiello
0134600469 Merge pull request #2036 from rommapp/misc/improve-api-docs-platform-endpoints
misc: Improve API docs and annotations for platform endpoints
2025-06-29 23:34:39 -03:00
Michael Manganiello
234d8174c0 Merge pull request #2034 from rommapp/misc/pyupgrade-3.12
misc: Apply pyupgrade changes for Python 3.12 compatibility
2025-06-29 23:34:24 -03:00
Michael Manganiello
8a206cc125 misc: Improve API docs and annotations for platform endpoints
- Add type annotations for FastAPI query, and path parameters.
- Add type annotations for request body content.
- Update docstrings to clarify endpoint functionality, and remove
    unnecessary details.
2025-06-29 21:29:04 -03:00
Michael Manganiello
252722e3bc misc: Apply pyupgrade changes for Python 3.12 compatibility
Command applied:
```
find ./backend/ -type f -name "*.py" -exec pyupgrade --py312-plus {} \;
```
2025-06-29 12:27:16 -03:00
Michael Manganiello
195a1892d0 misc: Improve API docs and annotations for rom endpoints
* Add type annotations for FastAPI header, query, and path parameters.
* Add type annotations for request body content.
* Update docstrings to clarify endpoint functionality, and remove
  unnecessary details.
2025-06-29 11:56:01 -03:00
Michael Manganiello
4209ee4481 misc: Create MobyGames service adapter
Add a new service adapter for the MobyGames API, to separate concerns
with RomM's handler for metadata.

This adapter is agnostic to the handler and only provides methods to
interact with the API, and correctly return typed responses.
2025-06-27 01:15:49 -03:00
Michael Manganiello
1321c87351 Merge pull request #2017 from rommapp/misc/remove-unused-roms-handler-methods
misc: Remove unused methods from Roms handler
2025-06-26 22:08:12 -03:00
Michael Manganiello
bf9fb12f91 misc: Create SteamGridDB service adapter
Add a new service adapter for the SteamGridDB API, to separate
concerns with RomM's handler for metadata.

This adapter is agnostic to the handler and only provides methods to
interact with the API, and correctly return typed responses.
2025-06-25 09:42:32 -03:00
Michael Manganiello
57f1f2a013 misc: Remove unused methods from Roms handler
These methods are no longer used in the codebase and have been removed
to clean up the code.
2025-06-25 09:31:01 -03:00
Michael Manganiello
b6be11d4cf Merge pull request #2012 from rommapp/fix/user-endpoints-use-body
fix: Use request body for user creation and update endpoints
2025-06-25 00:47:51 -03:00
Michael Manganiello
b1ba322408 fix: Use request body for user creation and update endpoints
Stop using query parameters for user creation and update endpoints in
the API. Instead, use the request body to pass user data.

This change stops leaking sensitive information like passwords in the
URL.

Fixes #2010
2025-06-25 00:44:05 -03:00
Georges-Antoine Assi
35ad51fefb Add more platforms for ssfr 2025-06-24 21:51:18 -03:00
Michael Manganiello
8647057e54 misc: Remove _request method from RAHandler
This logic was moved to the RetroAchievements service in #1951.
2025-06-20 12:41:29 -03:00
Michael Manganiello
3f9957ab40 fix: Query filters and boolean default values 2025-06-19 14:20:52 -03:00
Michael Manganiello
fb8f234ba4 misc: Remove deprecated boolean parameters from get_roms endpoint
These parameters were replaced by optional versions that allow for more
flexibility. This change removes code already marked as deprecated.
2025-06-19 13:54:47 -03:00
Michael Manganiello
da8e7fd90c misc: Create ScreenScraper service adapter
Add a new service adapter for the ScreenScraper API, to separate
concerns with RomM's handler for metadata.

This adapter is agnostic to the handler and only provides methods to
interact with the API, and correctly return typed responses.
2025-06-19 10:17:27 -03:00
zurdi
a4c60e73a1 fix: update linter versions and improve query filter logic in roms_handler 2025-06-18 16:29:07 +00:00
Zurdi
08682d4f9a Update backend/handler/database/roms_handler.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-18 18:23:51 +02:00
zurdi
7f836b4cc9 fix: add 'c64' and 'dos' to supported platform slugs and map 'c64' to 'commodore-c64' 2025-06-18 15:44:53 +00:00
zurdi
ac036ca081 Merge remote-tracking branch 'origin/master' into misc/random_fixes 2025-06-18 15:35:09 +00:00
zurdi
686a33e559 fix: update thumbnail URL in platforms_webrcade_feed function 2025-06-18 15:34:08 +00:00
Georges-Antoine Assi
40b52924be Merge pull request #1994 from rommapp/tgdb-handler
Add TheGamesDB handler for platforms
2025-06-18 11:33:19 -04:00
zurdi
b08ac38207 add: verified filter 2025-06-18 13:29:35 +00:00
zurdi
e12114e9ef fix: update badge path handling and improve user progression refresh logic 2025-06-18 10:25:51 +00:00
zurdi
2bf7aa4ba8 Merge remote-tracking branch 'origin/master' 2025-06-18 09:29:49 +00:00
zurdi
6fe80db114 fix: playmatch scanner 2025-06-18 09:29:05 +00:00
Georges-Antoine Assi
60bbfc9b93 return if disabled 2025-06-17 19:01:18 -04:00
Georges-Antoine Assi
0206bf5b53 remove fetching platforms 2025-06-17 18:55:10 -04:00
Georges-Antoine Assi
0df705b6f2 add back to scan page 2025-06-17 18:54:48 -04:00
Georges-Antoine Assi
da74354eed fix ra platform id 2025-06-17 18:50:25 -04:00
Georges-Antoine Assi
1a6654e436 add env var 2025-06-17 18:47:30 -04:00
Georges-Antoine Assi
822c7cc659 populate platform data 2025-06-17 18:31:08 -04:00
Georges-Antoine Assi
be5678da08 setup platforms for tgdb 2025-06-17 17:04:14 -04:00
Georges-Antoine Assi
d39614e87a Merge pull request #1990 from rommapp/hasheous-matching
Hasheous matching
2025-06-17 16:24:58 -04:00
Georges-Antoine Assi
4015ab30a4 small syntax bug 2025-06-17 14:35:01 -04:00
Georges-Antoine Assi
66741474cf catch 404 errors in hasheous 2025-06-17 12:46:07 -04:00
Georges-Antoine Assi
28d9807cb9 changes from self review 2025-06-17 12:18:26 -04:00
zurdi
b1aa232ed6 fix: RA metadata file from new platform 2025-06-17 09:40:20 +00:00
Georges-Antoine Assi
183d1ccb8a remove also check on igdb for pn 2025-06-16 22:32:32 -04:00
Georges-Antoine Assi
66cf16d386 use hasheous as a populator to igdb and ra 2025-06-16 22:29:30 -04:00
Georges-Antoine Assi
00525b432c implement fetching igdb game 2025-06-16 14:50:49 -04:00
Georges-Antoine Assi
2b1297bd1a playmatch only runs under IGDB 2025-06-16 14:28:19 -04:00
Georges-Antoine Assi
0609747c6c finish migration platforms 2025-06-16 14:13:23 -04:00
Georges-Antoine Assi
187862992c start manual match of platforms 2025-06-16 08:58:03 -04:00