Commit Graph

2056 Commits

Author SHA1 Message Date
Georges-Antoine Assi
5e6229a59d Fix RA platform IDs for matching 2025-06-11 08:51:47 -04:00
Michael Manganiello
51528d8b3b Merge pull request #1972 from rommapp/feat/retroachievements-display-hardcore-earned
feat: Display achievements earned in hardcore mode
2025-06-11 08:57:06 -03:00
Georges-Antoine Assi
bd1391e225 remove ipdb 2025-06-10 22:32:52 -04:00
Michael Manganiello
bdc5fa5c41 feat: Display achievements earned in hardcore mode
Differentiate between achievements earned in softcore and hardcore
modes, by using the characteristic gold color for hardcore ones.

Also, update the progress bar to show both softcore and hardcore
completion percentages.
2025-06-10 22:19:41 -03:00
Georges-Antoine Assi
3041d6d97a Corrected IGDB age ratings 2025-06-10 17:15:49 -04:00
Georges-Antoine Assi
6633a4c88d Create the parent folder on game upload 2025-06-10 16:44:59 -04:00
Michael Manganiello
0e8daf61ef Merge pull request #1963 from rommapp/feat/get-roms-optional-flags-instead-of-bools
feat: Use optional flags instead of booleans for Rom filtering
2025-06-10 14:46:20 -03:00
Michael Manganiello
47a7f84b9a feat: Use optional flags instead of booleans for Rom filtering
This change replaces boolean flags for filtering Roms with optional
flags. This allows clients to specify whether they want to include
or exclude certain types of Roms, such as matched, favourite,
duplicate, or playable.

The boolean flags are still supported for backwards compatibility,
but they are marked as deprecated. Clients should transition to
using the new optional flags in future versions.

The main reason for this change is to allow the exclusion of certain
results, without the need to add additional boolean flags, which are
also confusing if both its `True` and `False` values are used within
the same request.
2025-06-10 00:19:21 -03:00
Michael Manganiello
a44db9767a fix: Iterate through user completion progress in RetroAchievements
Iterate through all pages of user completion progress in the
RetroAchievements service, instead of limiting the data retrieval to the
first 500 results.
2025-06-09 19:19:39 -03:00
Michael Manganiello
6768e25321 Merge pull request #1956 from rommapp/fix/retroachievements-api-use-aiohttp
fix: Use aiohttp for RetroAchievements API calls
2025-06-09 14:51:10 -03:00
Georges-Antoine Assi
d18f85b943 Fix and uupdate more rahasher IDs 2025-06-09 10:18:50 -04:00
Georges-Antoine Assi
0abb41d9db Use correct ID for genesis/metadrive 2025-06-09 09:51:55 -04:00
Michael Manganiello
fe1a9ce2a7 fix: Use aiohttp for RetroAchievements API calls
This change replaces the `httpx` client with `aiohttp` for the
RetroAchievements API service.

The main reason for this change is that `httpx` has an unavoidable log
line with `INFO` level, which includes the request full URL, containing
the user's API key.

`httpx` has had an
[open discussion](https://github.com/encode/httpx/discussions/2765)
regarding this security issue for almost two years.

The change to `aiohttp` is painless, and would allow us to migrate more
of the codebase to it in the future, to avoid leaking sensitive
information in logs.
2025-06-09 09:59:56 -03:00
Michael Manganiello
e885586edb misc: Create RetroAchievements service adapter
Add a new service adapter for the RetroAchievements 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.

The API authorization was also improved to be handled by a specific
`httpx.Auth` class that sets the `y` parameter for each request.
2025-06-09 00:47:05 -03:00
Michael Manganiello
3f8baed220 misc: Add typing to RetroAchievements API responses
Include detailed type information for RetroAchievements API responses,
based on the official API documentation.
2025-06-07 17:56:29 -03:00
Michael Manganiello
9ba787f6d1 fix: Remove critical log messages for 403 and 404 exceptions
These critical log messages are unnecessary and can clutter the logs,
based on user requests. This is even more notorious when RomM is
integrated to an error tracking system like Sentry.
2025-06-06 21:40:31 -03:00
Georges-Antoine Assi
fd18d8e1c9 small tweaks from copilot comments 2025-06-06 12:12:38 -04:00
Georges-Antoine Assi
5e711b457a fix the mariadb migration 2025-06-06 11:33:09 -04:00
Georges-Antoine Assi
587c45d900 get ra_id to be safe 2025-06-06 11:10:13 -04:00
Georges-Antoine Assi
d059193c43 Cleanup lingeting t_thumb in cover and screenshto art 2025-06-06 10:58:57 -04:00
Georges-Antoine Assi
54a62413c0 use single quotes 2025-06-05 23:16:05 -04:00
Georges-Antoine Assi
f87f403555 search for hash instead of matching 2025-06-05 23:12:55 -04:00
Georges-Antoine Assi
d6406771cb Star multifile games 2025-06-05 22:44:35 -04:00
Georges-Antoine Assi
8c817c7f4b stop RA from crashing when not available 2025-06-05 11:44:47 -04:00
Georges-Antoine Assi
3c2f32053b fix typo + bump redis + change heartbeat keys 2025-06-04 11:34:08 -04:00
zurdi
df55e3dbed fix: change root logger level from DEBUG to INFO 2025-05-29 16:26:55 +00:00
zurdi
cf575cc92d fix: ensure logger propagation is disabled for the main logger 2025-05-29 15:53:58 +00:00
zurdi
1de6e7afb2 refactor: move LOGGING_CONFIG to log_middleware.py for better organization 2025-05-27 10:38:15 +00:00
zurdi
60bece51af Merge branch 'master' into feature/unify-uvicorn-logs 2025-05-24 14:08:15 +00:00
zurdi
1603e61245 feat: add Retroachievements filter and related UI components 2025-05-23 01:11:00 +00:00
zurdi
491d351eb1 feat: implement custom logging middleware and configure logging settings 2025-05-23 00:15:33 +00:00
Zurdi
fb75715f06 Merge pull request #1886 from rommapp/feature/more-frontend-accessibility-info
misc: Improve accessibility
2025-05-23 00:30:28 +02:00
zurdi
96cdf4ee5f fix: hidden games on PR #1899 2025-05-22 10:48:09 +00:00
mjmfighter
c709b8ae2e fix: correct user creation logic in OpenIDHandler 2025-05-21 23:07:53 -05:00
zurdi
3bad6ef1a4 fix: remove unused import of Platform model in stats_handler.py 2025-05-21 11:41:05 +00:00
zurdi
c2faccabc3 refactor: update StatsReturn structure and related components; remove unused code and enhance platform stats display 2025-05-20 16:09:03 +00:00
zurdi
a53e809687 Merge remote-tracking branch 'origin/master' into feature/server-stats 2025-05-20 09:07:12 +00:00
Georges-Antoine Assi
becd203801 Merge pull request #1899 from rommapp/romm-1895
[ROMM-1895] Fix hiding hidden roms in lists
2025-05-19 15:51:08 -04:00
zurdi
2cca4c7367 refactor: update StatsReturn structure and enhance stats retrieval; add PlatformsSize component for detailed platform stats 2025-05-19 17:50:11 +00:00
Georges-Antoine Assi
1e0c5527ee fix conftest to create romuser 2025-05-19 12:47:47 -04:00
Georges-Antoine Assi
6d590dd03f fix check isues 2025-05-19 12:28:32 -04:00
Georges-Antoine Assi
51ad1ed214 make it a bit more robust 2025-05-19 12:18:00 -04:00
Georges-Antoine Assi
e8416cfcaf [ROMM-1895] Fix hiding hidden roms in lists 2025-05-19 12:13:58 -04:00
Georges-Antoine Assi
be3718dfdd support sorting games by file size 2025-05-19 11:46:03 -04:00
zurdi
171ee954c8 Merge remote-tracking branch 'origin/master' into refactor/saves-states-path 2025-05-16 17:13:35 +00:00
zurdi
3e4b77bdec refactor: improve error logging and clean up code formatting in asset migration and UI components 2025-05-16 12:15:07 +00:00
Georges-Antoine Assi
b9b6e17fd0 Merge pull request #1891 from ianfhunter/patch-1
During a scan, if an image fails to be read, the scan is aborted
2025-05-15 09:33:00 -04:00
Georges-Antoine Assi
9f27c81f73 run trunk check 2025-05-15 09:30:11 -04:00
Ian Hunter
6a52d43169 Update resources_handler.py 2025-05-15 12:28:15 +01:00
Zurdi
54798a8c0b Merge pull request #1887 from rommapp/feature/create-user-by-invite-link
feat: Register user by invite link
2025-05-14 23:56:43 +02:00