Commit Graph

1140 Commits

Author SHA1 Message Date
Georges-Antoine Assi
ce7b2746cb Merge branch 'master' into eslint-manual-runs 2025-09-07 21:03:18 -04:00
Georges-Antoine Assi
f5439f14ef finish compoennts 2025-09-07 19:20:46 -04:00
Georges-Antoine Assi
06768abb06 [ROMM-2336] Config entry for EJS_CacheLimit 2025-09-06 19:10:44 -04:00
Georges-Antoine Assi
27a914054e [ROMM-2375] Fix sanitizing file name on rename 2025-09-04 22:58:33 -04:00
Michael Manganiello
e4e3928d1b misc: Apply import sorting 2025-09-04 11:17:00 -03:00
Michael Manganiello
c66a6eb5b7 Merge pull request #2370 from rommapp/misc/metadata-handler-is-enabled
misc: Add MetadataHandler's is_enabled method
2025-09-04 09:47:42 -03:00
Georges-Antoine Assi
33b8e037b5 scan launchbox first on update 2025-09-03 21:28:05 -04:00
Michael Manganiello
d216bad78b misc: Add MetadataHandler's is_enabled method
Convert `MetadataHandler` to an abstract base class and add an
`is_enabled` class method that allows every metadata handler to
independently report whether it is enabled based on its configuration.

This avoids the need for global variables in the config module, allowing
us to change the enabled state of a metadata handler at runtime if
needed.
2025-09-03 22:13:28 -03:00
Georges-Antoine Assi
d760a2923e change options to settings 2025-09-02 09:10:32 -04:00
Georges-Antoine Assi
949ec85266 improve parsing default controls 2025-09-02 09:07:21 -04:00
Georges-Antoine Assi
e42acbfafc add debug and controls 2025-09-02 08:38:11 -04:00
Georges-Antoine Assi
147a94c406 Load core options from config.yml 2025-09-01 21:16:37 -04:00
Georges-Antoine Assi
45edc8fcc0 use stores for loading global data 2025-08-28 09:48:52 -04:00
Georges-Antoine Assi
bf42faf578 fix loading and converting images 2025-08-27 23:31:29 -04:00
Georges-Antoine Assi
586ce0ef30 Craete image to webp task 2025-08-27 22:12:12 -04:00
Michael Manganiello
739aa61918 Merge pull request #2325 from rommapp/feat/retroachievements-incremental-sync
feat: Add incremental sync for RetroAchievements progression
2025-08-27 11:19:29 -03:00
Michael Manganiello
9cede7680f feat: Add incremental sync for RetroAchievements progression
This change makes the RetroAchievements progression sync endpoint to
optionally perform an incremental sync (when `incremental` is true),
by only fetching new achievements since the last sync.

This reduces the amount of data fetched and speeds up the sync
process for users who frequently sync their progression. It unblocks the
implementation of automatic periodic syncs in the future.

Frontend behavior:
- When the `Apply` button is clicked in the RetroAchievements settings,
  a full sync is performed (same as before). This is because a change to
  the RA username may have occurred.
- When the `Sync` button is clicked, an incremental sync is performed.
2025-08-27 10:41:51 -03:00
Georges-Antoine Assi
e75fb13f57 add log statements on scan 2025-08-27 09:38:31 -04:00
Georges-Antoine Assi
585ad63349 use correct key for job timeout 2025-08-26 22:22:36 -04:00
Georges-Antoine Assi
9bb586b288 set timeouts 2025-08-26 21:09:13 -04:00
Georges-Antoine Assi
9fe4eca302 Merge pull request #2303 from rommapp/db-query-micro-optimize
DB query micro optimizations
2025-08-22 11:38:53 -05:00
zurdi
7f96a44190 Add validation for empty username/password in registration 2025-08-22 13:35:58 +02:00
Georges-Antoine Assi
1d5cd64fb8 move is_verified to db 2025-08-21 22:58:22 -04:00
Georges-Antoine Assi
8ed107336f only print queries once 2025-08-21 22:34:07 -04:00
Georges-Antoine Assi
e73b6cc190 add option to skip char index 2025-08-20 13:27:26 -04:00
Georges-Antoine Assi
1c0c93bb3d select only some columns for performance 2025-08-20 11:20:02 -04:00
Georges-Antoine Assi
0cc9789a12 fix get_scalar_roms 2025-08-19 23:40:23 -04:00
Georges-Antoine Assi
7850cf059f fix loading collections 2025-08-19 21:49:52 -04:00
Georges-Antoine Assi
cde0c0681f changes from review 2025-08-19 17:07:05 -04:00
Georges-Antoine Assi
7370f83b8f load sibling_roms for individual roms 2025-08-19 16:08:03 -04:00
Georges-Antoine Assi
0dadf8681e fix updating smart collections 2025-08-19 15:53:03 -04:00
Georges-Antoine Assi
13ac6104ce Raise lazy joins so all complex joins are explicit 2025-08-19 10:02:11 -04:00
Georges-Antoine Assi
159e2fac13 run trunk chck 2025-08-17 16:51:37 -04:00
Georges-Antoine Assi
5faa010e96 Only update specific values on models during scan 2025-08-17 16:42:27 -04:00
Georges-Antoine Assi
c742e8ff9d dont remove articles normalize name 2025-08-15 22:48:57 -04:00
Georges-Antoine Assi
e0d1d1cf23 run sgdb in parallel 2025-08-15 22:30:13 -04:00
Georges-Antoine Assi
7c3764802f add sgdb as a cover option 2025-08-15 22:14:48 -04:00
Georges-Antoine Assi
54adb653af Normalize result names for better merging in search 2025-08-15 21:57:18 -04:00
Michael Manganiello
1d2403d7cb fix: Correctly upload manual to resources path
Use the right filesystem handler for the manual to be uploaded to the
`resources` path instead of the `rom` path.
2025-08-12 16:17:20 -03:00
Michael Manganiello
00d7815889 fix: Improve performance on asset screenshot retrieval
When retrieving the related screenshot for a `Save` or `State`, we were
retrieving a very heavy representation of the associated `Rom` object,
only to iterate through its screenshots to find the one we needed.

This change modifies the `Save` and `State` models to directly query the
`Screenshot` model, which is much faster and more efficient. The
`DBScreenshotsHandler` has been updated to include a new `filter` method
that will simplify building queries using SQLAlchemy, something we can
extend to other handlers in the future.

Fixes #1925.
2025-08-10 15:33:13 -03:00
Michael Manganiello
ba21cbc1e1 misc: Separate tests folder from backend code
Create separate `tests/` folder for all tests. This will also simplify
not copying tests code into the Docker image.
2025-08-08 12:49:13 -03:00
Michael Manganiello
097818d560 misc: Replace emoji dependency with constants
The `emoji` library has been removed, in favor of using constants for
the few emojis used in the codebase. This reduces memory usage, and
avoids calling `emojize` for Python to discover where to replace emojis
in pre-defined strings.
2025-08-07 09:50:14 -03:00
Georges-Antoine Assi
f4a65c3680 Merge pull request #2185 from rommapp/response-cleanup
Replace MessageResponse with specific responses
2025-08-06 09:16:05 -04:00
Georges-Antoine Assi
482176bd12 make rom_ids numbers 2025-08-04 19:13:27 -04:00
Georges-Antoine Assi
d602dbae54 [ROMM-2202] Fix rom ID selected refresh metadata 2025-08-04 18:08:15 -04:00
Georges-Antoine Assi
a6d078d4f5 changes from code review 2025-08-02 22:28:00 -04:00
Georges-Antoine Assi
22665e877e remove deleted_items 2025-08-02 22:20:40 -04:00
Georges-Antoine Assi
72f5021a6a remove all_items from bulk 2025-08-02 22:19:46 -04:00
Georges-Antoine Assi
8ce943a514 use fastapi status 2025-08-02 22:17:07 -04:00
Georges-Antoine Assi
8061db40b2 fix tests and cleanup 2025-08-02 17:55:43 -04:00