Commit Graph

347 Commits

Author SHA1 Message Date
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
Georges-Antoine Assi
f8aeb37347 [HOTFIX] Only lower and strip string order_by types 2025-04-24 14:33:37 -04:00
zurdi
e17f6b44de feat: Add RetroAchievements integration and user profile syncing
- Implemented RA hash handling in ROM processing.
- Added functionality to refresh RetroAchievements data for users.
- Updated user model to store RA progression data.
- Created a new component for managing RetroAchievements settings in user profiles.
- Enhanced ROM metadata to include merged RA achievements and badge paths.
- Refactored API calls to accommodate new RA features and removed unused API key handling.
- Updated frontend components to reflect changes in RA metadata and user settings.
- Adjusted Docker configuration for database service naming.
2025-04-22 21:08:10 +00:00
zurdi
574e16cadd feat: fetch all achievements for a game 2025-04-14 16:29:03 +00:00
zurdi
716dd023c0 added ra_id for platforms and roms 2025-04-11 13:12:38 +00:00
zurdi
30a0be2c4c Merge branch 'master' into HEAD 2025-04-10 22:56:55 +00:00
Georges-Antoine Assi
672a5c6644 Merge branch 'master' into true-pagination 2025-04-05 20:41:03 -04:00
Georges-Antoine Assi
6368b32ef4 [ROMM-1795] Dont generate m3u file if folder already has one 2025-04-05 19:53:19 -04:00
Georges-Antoine Assi
d58691a79b always delete saves from fs + split delete dialogs 2025-03-27 23:37:42 -04:00
Georges-Antoine Assi
b6e0df7097 complete refactor of seleting saves and states 2025-03-26 18:49:12 -04:00
Georges-Antoine Assi
51cd16634c add dedicated emulatorjs save quick button 2025-03-26 10:56:48 -04:00
Georges-Antoine Assi
7f7b97a9cc Merge branch 'master' into true-pagination 2025-03-25 17:39:36 -04:00
Georges-Antoine Assi
490aa4d89c filter out rows when order by columnis null 2025-03-24 19:30:19 -04:00
Georges-Antoine Assi
03e2bac425 fix ordering rows in table view 2025-03-23 19:35:53 -04:00
Georges-Antoine Assi
581cdf742c fix pagination speeds 2025-03-21 00:07:27 -04:00
Georges-Antoine Assi
9543d5f9f0 Merge branch 'master' into true-pagination 2025-03-20 19:41:36 -04:00