4080 Commits

Author SHA1 Message Date
Zurdi
0eac452377 Merge pull request #989 from rommapp/master
v3.3.0
3.3.0
2024-07-19 23:25:16 +02:00
Zurdi
dd4f9e4c63 Merge pull request #1008 from rommapp/catch-json-decode-errs-0022
Catch and ignore json decode errors in 0022 migration
2024-07-19 17:29:48 +02:00
Georges-Antoine Assi
bfeddcf623 Catch and ignore json decode errors in migration 2024-07-18 21:01:57 -04:00
Georges-Antoine Assi
3073e16ca9 Merge pull request #1006 from adamantike/fix/handle-switch-titledb-empty-product-id
fix: Filter Switch titledb entries with empty id
2024-07-18 10:15:11 -04:00
Michael Manganiello
04b64f1d97 fix: Filter Switch titledb entries with empty id
The existing code was failing after changes on the upstream JSON file
that included entries with `null` ID.
2024-07-18 11:00:30 -03:00
Zurdi
27c5749ac5 Merge pull request #1004 from rommapp/romm-1003
[ROMM-1003] Fix aborting mid-scan
2024-07-16 08:27:56 +02:00
Georges-Antoine Assi
6ec091e5da [ROMM-1003] Fix aborting mid-scan 2024-07-15 13:08:52 -04:00
Zurdi
da295bc14a Merge branch 'release' into master 2024-07-15 10:02:14 +02:00
Zurdi
7617daf232 Merge pull request #1002 from rommapp/fix-delete-cover-on-rescan
Fix covers deleted when uploading extension other then PNG
2024-07-15 10:00:47 +02:00
Georges-Antoine Assi
d05a539871 Fix covers deleted when uploading extension other then PNG 2024-07-14 17:30:05 -04:00
Georges-Antoine Assi
d8ffc1a309 Merge pull request #999 from adamantike/misc/enable-gzip-compression
misc: Enable GZip compression for backend responses
2024-07-14 11:12:55 -04:00
Georges-Antoine Assi
f1f8dd6005 Merge pull request #1001 from rommapp/dependabot/npm_and_yarn/frontend/braces-3.0.3
Bump braces from 3.0.2 to 3.0.3 in /frontend
2024-07-14 11:03:38 -04:00
Georges-Antoine Assi
3dc48638d8 Merge pull request #998 from adamantike/fix/avoid-unneeded-recursive-os-walk
fix: Avoid recursive os.walk calls
2024-07-14 11:03:20 -04:00
dependabot[bot]
08de3e4a64 Bump braces from 3.0.2 to 3.0.3 in /frontend
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-14 14:21:08 +00:00
Michael Manganiello
d94f5428a8 misc: Enable GZip compression for backend responses
With the introduction of non-paginated responses for ROMs, JSON
responses for big collection could easily be at >1MiB.

This change adds a FastAPI-provided middleware to enable GZip
compression for responses greater than 1KiB.
2024-07-13 16:10:46 -03:00
Michael Manganiello
f20a9ffe34 fix: Avoid recursive os.walk calls
`os.walk` is a generator that can iteratively navigate from the
specified path, top-bottom. However, most of the calls to `os.walk` in
the project cast the call to `list()`, which makes it traverse the path
and recursively find all nested directories.

This is commonly not needed, as we end up just using a `[0]` index to
only access the root path.

This change adds a few utils that simplifies listing files/directories,
and by default does it non-recursively. Performance gains shouldn't be
noticeable in systems with high-speed storage, but we can avoid the edge
cases of users having too many nested directories, by avoiding unneeded
I/O.
2024-07-13 15:30:04 -03:00
Zurdi
1329dbbbc3 Merge pull request #996 from rommapp/fix-nav-guards-returns
Have navigation guards return true or explicitly call next
2024-07-12 08:21:04 +02:00
Georges-Antoine Assi
9b3aa45d89 Have navigation guards return true or explicitly call next 2024-07-11 22:28:19 -04:00
Zurdi
9991aaa3e5 Merge pull request #993 from rommapp/fix/download-removed-cover
Fixed re-download lost covers
3.3.0-rc.2
2024-07-11 17:15:00 +02:00
Zurdi
6d6cb35cda Merge pull request #992 from rommapp/fix/collections-migration
Avoid orphan collections table on migration fail
2024-07-11 17:13:30 +02:00
zurdi
884e7a35ac fixed re-download lost covers 2024-07-11 08:47:59 +02:00
Zurdi
da6adfe719 fixed if not exists collections logic 2024-07-10 23:47:44 +02:00
Zurdi
a2c55de602 create collections table if not exists 2024-07-10 23:30:10 +02:00
Zurdi
7ac11a1156 avoid orphan collections table on migration fail 2024-07-10 22:21:07 +02:00
Zurdi
7590fd3ee5 Merge pull request #991 from adamantike/feat/use-async-requests-for-sgdb
feat: Use async requests to retrieve SteamGridDB covers
2024-07-10 09:02:11 +02:00
Michael Manganiello
b61bb11bce feat: Use async requests to retrieve SteamGridDB covers
This change avoids blocking requests when retrieving covers from
SteamGridDB, which is the main bottleneck as the current implementation
iterates over paginated results for multiple games.

Using an asynchronous client like `httpx` provides a good performance
improvement, and reduces the latency when calling this endpoint.
Also, the inclusion of FastAPI `lifespan` allows instantiating a single
client on startup.

When testing with "Final Fantasy V Advance", the endpoint goes from ~9s
to ~1.5s to retrieve all covers.
2024-07-09 22:37:14 -03:00
Zurdi
c82ae97869 Merge pull request #990 from rommapp/fix/fixes-from-trunk
Fixed everything from trunk
3.3.0-rc.1
2024-07-09 15:06:00 +02:00
Zurdi
300262eb08 Merge branch 'master' into fix/fixes-from-trunk 2024-07-09 15:03:49 +02:00
Zurdi
008d62aaa6 Update CHANGELOG.md
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2024-07-09 15:03:06 +02:00
zurdi
05939eccf1 platform icon on card tweaked 2024-07-09 15:01:45 +02:00
Zurdi
13723278ba Merge pull request #988 from rommapp/fix/config-example
Fix config.example.yml
2024-07-09 14:47:41 +02:00
zurdi
f7b14b43d6 fixed everything from trunk 2024-07-09 13:43:14 +02:00
zurdi
4bd6a121d6 placeholder for config dictionaries 2024-07-09 10:35:07 +02:00
zurdi
93c36a4fce removed upgrade to 3.0 warning 2024-07-09 10:28:26 +02:00
zurdi
08d6948ad1 fixed config.example.yml 2024-07-09 10:25:48 +02:00
Zurdi
0cb83bb388 Merge pull request #987 from rommapp/prevent-mass-purge
Prevent mass purging of games and platforms during scan
2024-07-08 19:49:29 +02:00
Georges-Antoine Assi
5e3522ce40 Merge branch 'master' into prevent-mass-purge 2024-07-08 12:39:39 -04:00
Zurdi
4872141de1 fixed scrappers assets on build 2024-07-08 16:30:23 +02:00
zurdi
eb1b231ac9 simplified platform icon logic 2024-07-08 15:33:16 +02:00
Zurdi
ed0c7569a3 Merge pull request #986 from rommapp/fix/fixes_from_testing
Fixes from beta testing
2024-07-08 15:24:08 +02:00
zurdi
919773a792 autoselect most recent state on play 2024-07-08 14:54:00 +02:00
zurdi
51bc201079 added bulk add/remove from favourites 2024-07-08 13:56:33 +02:00
zurdi
18d956b1bb fixed game cover edit action buttons 2024-07-08 13:08:53 +02:00
Zurdi
d7d739a9e4 Merge branch 'master' into fix/fixes_from_testing 2024-07-08 13:00:31 +02:00
Zurdi
2d1fa686d0 Merge pull request #985 from adamantike/fix/correctly-request-paginated-api-steamgriddb
fix: Correctly traverse SteamGridDB API pages
2024-07-08 13:00:15 +02:00
zurdi
6dd6bfd984 improved states selector 2024-07-08 12:37:56 +02:00
zurdi
20fb8218aa fixes from trunk 2024-07-08 12:37:39 +02:00
zurdi
285c9c28a7 show state info on state selector on play view 2024-07-08 12:23:03 +02:00
zurdi
5de77e52ad Merge remote-tracking branch 'origin/master' into fix/fixes_from_testing 2024-07-08 11:57:07 +02:00
zurdi
1a3f74e8ac check username already exists on setup wizard 2024-07-08 11:56:10 +02:00