Commit Graph

312 Commits

Author SHA1 Message Date
Georges-Antoine Assi
f9c2c2f916 remove unused import 2025-08-23 15:25:05 -04:00
Georges-Antoine Assi
e615f39905 grab file size from rom for paltform 2025-08-23 15:22:29 -04: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
0cc9789a12 fix get_scalar_roms 2025-08-19 23:40:23 -04:00
Georges-Antoine Assi
048f8ba248 move fs_size_bytes back to db 2025-08-19 19:38:56 -04:00
Georges-Antoine Assi
cde0c0681f changes from review 2025-08-19 17:07:05 -04:00
Georges-Antoine Assi
5a5abe4e62 changes from self review 2025-08-19 16:27:46 -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
078b140ddb simplify group_id 2025-08-19 12:50:25 -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
f3bace0a7d bit of metadata cleanup 2025-08-15 09:50:29 -04:00
Georges-Antoine Assi
40c628aa1a simplify multi check 2025-08-15 09:49:35 -04:00
Georges-Antoine Assi
488dcc28d8 fix tests 2025-08-15 09:47:16 -04:00
Georges-Antoine Assi
4cf3641fa3 Use column properties to calculate fs_size_bytes 2025-08-14 23:14:41 -04:00
Michael Manganiello
80291f4be1 misc: Move cache initialization to startup script
Guarantee that cache is initialized during startup, and only once,
instead of every time a `MetadataHandler` object is instantiated.

Also, improve logic to determine `fixtures` paths.
2025-08-13 12:26:15 -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
Georges-Antoine Assi
03c8eede8b Merge branch 'master' into smart-collections 2025-08-02 00:30:58 -04:00
Georges-Antoine Assi
9f53f6eccc complete smart collection 2025-07-25 17:37:55 -04:00
Georges-Antoine Assi
1a57ff2c6b complete cycle of creation 2025-07-25 17:24:38 -04:00
Georges-Antoine Assi
2a8fec94e6 update smart collection model 2025-07-25 16:27:10 -04:00
Georges-Antoine Assi
59a2e5d5aa move away from explicit LIST use 2025-07-24 16:41:17 -04:00
Georges-Antoine Assi
1bb33be803 more work migrating slugs 2025-07-24 09:30:57 -04:00
Georges-Antoine Assi
595c52bcab Unify singular slugs 2025-07-23 21:52:52 -04:00
Georges-Antoine Assi
f7b030ba10 get backend working sorta 2025-07-22 18:10:12 -04:00
Georges-Antoine Assi
75b8181451 start work on smart collections 2025-07-22 15:49:43 -04:00
Georges-Antoine Assi
aaf6741e93 Create safe filesystem handler 2025-07-17 12:30:57 -04:00
Georges-Antoine Assi
778f1052bf actually fix psql 2025-07-15 11:34:27 -04:00
Georges-Antoine Assi
6440dbd851 update roms_metadata virtual table 2025-07-15 11:07:13 -04:00
Georges-Antoine Assi
ba7c1e1977 set extraw fields on default scan obj 2025-07-14 11:20:59 -04:00
Georges-Antoine Assi
c5f3379957 remove is_fully_iden 2025-07-12 20:40:08 -04:00
Georges-Antoine Assi
8613a9739d add ra and hasheous to is_identified 2025-07-12 20:35:32 -04:00
Georges-Antoine Assi
4b2c46f73b fix setting cache conditional 2025-07-09 11:46:27 -04:00
Georges-Antoine Assi
056a6a06ac complete hasheous scanning 2025-06-15 22:53:12 -04:00
Georges-Antoine Assi
37fd3031bf updates to hasheous 2025-06-15 22:17:05 -04:00
Georges-Antoine Assi
88130a60f8 First batch of work for hasheous 2025-06-15 21:52:36 -04:00
Georges-Antoine Assi
56117e8105 really fix it this time 2025-06-13 22:27:36 -04:00
Georges-Antoine Assi
318661bc45 Merge branch 'master' into romm-403 2025-06-13 11:51:45 -04:00
zurdi
8370b79a83 feat: add 'missing_from_fs' property to various schemas and update related logic for better tracking of missing files 2025-06-12 22:18:06 +00:00
zurdi
cb01b82846 feat: add 'missing' property to asset and firmware schemas for tracking missing entries 2025-06-12 12:24:30 +00:00
zurdi
b52ea89115 feat: add 'missing' flag to platforms and roms, update related handlers and schemas 2025-06-12 01:20:20 +00:00
Georges-Antoine Assi
fd705e41ce add and store fake launchbox IDs 2025-05-23 14:13:19 -04:00
Georges-Antoine Assi
2d7c3be6ae update frontnend to support launchbox 2025-05-20 17:07:05 -04:00
Georges-Antoine Assi
97edbbdcf9 complete launchbox handler 2025-05-20 16:50:14 -04:00
zurdi
98ce9bd633 fix: unit tests 2025-05-14 11:37:27 +00:00
zurdi
0271fbf49a feat: add exclusion option for deleting ROMs and platforms 2025-05-14 11:16:34 +00:00
zurdi
910dea3470 feat: integrate RAHasher for retroachievement hash calculation and improve UI responsiveness 2025-05-10 21:55:12 +00:00
zurdi
957c306003 Merge remote-tracking branch 'origin/master' into feature/retroachievements 2025-04-25 00:07:40 +00:00