Commit Graph

9275 Commits

Author SHA1 Message Date
Michael Manganiello
c075da089b Merge pull request #2265 from rommapp/misc/upgrade-ruffle-2025-08-14
misc: Upgrade Ruffle to v2025-08-14
2025-08-15 13:03:43 -03:00
Georges-Antoine Assi
2fd25d9e64 Merge pull request #2264 from rommapp/fs-size-column-props
Use column properties to calculate fs_size_bytes
2025-08-15 10:52:53 -05:00
Michael Manganiello
6e7edd2b89 misc: Upgrade Ruffle to v2025-08-14 2025-08-15 12:16:34 -03: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
a02e320922 Merge pull request #2262 from rommapp/fix/disable-otel-integration-if-not-configured
fix: Disable OpenTelemetry integration if not configured
4.1.0-beta.1
2025-08-14 10:14:53 -03:00
Michael Manganiello
eaad91422a fix: Disable OpenTelemetry integration if not configured
OpenTelemetry tries to send traces to a default `localhost:4317`
endpoint if no configuration is provided, which is not what we want if
users don't configure OpenTelemetry explicitly.

This change sets the `OTEL_SDK_DISABLED` environment variable to
`true` if no `OTEL_` prefixed environment variables are found, which
disables the OpenTelemetry SDK.
2025-08-14 09:45:04 -03:00
Georges-Antoine Assi
b617e87545 Merge pull request #2255 from rommapp/scroll-on-scan
Scroll to window bottom on scan
2025-08-13 13:23:03 -05:00
Georges-Antoine Assi
dea606ad80 Merge pull request #2261 from rommapp/hash-largest-file
Always hash the largest file in compressed multi file roms
2025-08-13 13:21:59 -05:00
Michael Manganiello
1b5fca62b8 Merge pull request #2260 from rommapp/misc/move-cache-initialization-to-startup-script
misc: Move cache initialization to startup script
2025-08-13 15:16:09 -03:00
Georges-Antoine Assi
4936ea5121 changes from code review 2025-08-13 14:11:33 -04:00
Georges-Antoine Assi
8fb4769776 changes from code review 2025-08-13 14:03:45 -04:00
Georges-Antoine Assi
81a04e4ab4 Always hash the largest file in compressed multi file roms 2025-08-13 13:43:07 -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
Georges-Antoine Assi
423924cf24 nit from review 2025-08-13 10:45:52 -04:00
Michael Manganiello
57e9a9f0fd Merge pull request #2258 from rommapp/misc/create-startup-script
misc: Create startup script to run initial tasks before main application
2025-08-13 11:16:00 -03:00
Georges-Antoine Assi
43d5c10826 implement custom auto scroll 2025-08-13 09:56:08 -04:00
Georges-Antoine Assi
0cacac944c reduce and debounce 2025-08-12 22:51:04 -04:00
Georges-Antoine Assi
795a0a3534 add to header footer for fun 2025-08-12 22:48:03 -04:00
Georges-Antoine Assi
fbaaab2676 jump to next game with arrow keys 2025-08-12 22:20:18 -04:00
Michael Manganiello
63f84b78d5 misc: Create startup script to run initial tasks before main application
For steps that need to run before the web application starts, such as
scheduling tasks, this new `startup.py` script is introduced.

This fixes a recently introduced issue where task scheduling was not
being triggered, because of it being included in the
`if __name__ == "__main__":` block, which is not executed when
the application is run by Gunicorn in production environments.

We do not include this logic as part of FastAPI's lifespan
implementation, as running multiple workers with Gunicorn would
cause this logic to be executed multiple times.
2025-08-12 23:14:26 -03:00
Georges-Antoine Assi
4980e8938e change from review 2025-08-12 18:37:39 -04:00
Georges-Antoine Assi
6b31a64347 Merge pull request #2256 from rommapp/romm-2163
[ROMM-2163] Fix excluding single roms without extensions
2025-08-12 17:35:21 -05:00
Georges-Antoine Assi
47e9138cbb lower the extension in config manager 2025-08-12 18:24:21 -04:00
Georges-Antoine Assi
774be0cbde [ROMM-2163] Fix excluding single roms without extensions 2025-08-12 18:18:29 -04:00
Georges-Antoine Assi
8902a309c8 Scroll to window bottom on scan 2025-08-12 17:59:49 -04:00
Georges-Antoine Assi
8dfdcc923e fix select on platform picker scan 2025-08-12 15:44:05 -04:00
Michael Manganiello
83b893723e Merge pull request #2254 from rommapp/fix/upload-manual-path
fix: Correctly upload manual to resources path
2025-08-12 16:27:10 -03: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
6aca53fa38 Merge pull request #2252 from rommapp/feat/opentelemetry-integration-watcher
feat: Add OpenTelemetry integration to file watcher
2025-08-12 12:34:18 -03:00
Michael Manganiello
f95e0edff4 feat: Add OpenTelemetry integration to file watcher
Run file watcher using `opentelemetry-instrument` to enable tracing for
the watcher service.
2025-08-12 11:25:40 -03:00
Michael Manganiello
92e11beb8b Merge pull request #2251 from rommapp/feat/opentelemetry-integration
feat: Add OpenTelemetry integration for API service
2025-08-12 09:56:56 -03:00
Michael Manganiello
652df5d4cd feat: Add OpenTelemetry integration for API service
This change introduces OpenTelemetry dependencies, and uses
`opentelemetry-instrument` auto-instrumentation to allow users to
configure OpenTelemetry settings via environment variables [1].

The only custom environment variable added is
`OTEL_SERVICE_NAME_PREFIX`, which allows users to set a prefix to the
service names included by RomM to differentiate between `api`, `worker`,
and `watcher` services.

The instrumentation of RQ workers and file watcher will be added in
subsequent pull requests.

[1] https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
2025-08-12 09:18:59 -03:00
Georges-Antoine Assi
649a6dc7f7 Remove link from aikido report 2025-08-11 09:18:39 -04:00
Michael Manganiello
edbff6b7e8 Merge pull request #2248 from rommapp/fix/performance-asset-screenshot
fix: Improve performance on asset screenshot retrieval
2025-08-10 16:05:35 -03:00
Georges-Antoine Assi
c135847889 Merge pull request #2249 from rommapp/romm-2247
[ROMM-2247] Return early if cover write fails
2025-08-10 15:01:21 -04:00
Georges-Antoine Assi
4728e5da67 [ROMM-2247] Return early if cover write fails 2025-08-10 14:51:06 -04: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
40e824db2c Merge pull request #2244 from rommapp/feat/database-query-string
feat: Add support for database query string using DB_QUERY_JSON variable
2025-08-10 10:54:10 -03:00
Michael Manganiello
889c71444b feat: Add support for database query string using DB_QUERY_JSON variable
This change adds a new environment variable `DB_QUERY_JSON` that allows
users to specify querystring values for additional database connection
parameters. This is useful for passing custom query parameters to the
database connection URL.

The `DB_QUERY_JSON` variable should contain a JSON string with key-value
pairs of strings, which is the required format for the SQLAlchemy URL
`query` parameter. If the variable is not set, no additional query
parameters will be added to the database connection URL.

Closes #2093.
2025-08-10 00:31:03 -03:00
Michael Manganiello
0e9f977e60 Merge pull request #2243 from rommapp/misc/no-warning-on-redis-host
misc: Do not warn when REDIS_HOST is set
2025-08-09 21:31:08 -03:00
Michael Manganiello
4eea761d87 misc: Do not warn when REDIS_HOST is set
Change log level to info when REDIS_HOST is set, as this is a valid
and common configuration.
2025-08-09 21:21:24 -03:00
Michael Manganiello
c0483832ac Merge pull request #2240 from rommapp/fix/retroachievements-case-insensitive-hash-match
fix: Make RetroAchievements hash matching case-insensitive
4.1.0-alpha.1
2025-08-09 16:13:41 -03:00
Georges-Antoine Assi
e164b8581b Merge pull request #2231 from rommapp/find-best-match
Use best-match algo for more providers
2025-08-09 15:11:21 -04:00
Georges-Antoine Assi
29ddcb45a4 fix all i18n locales 2025-08-09 15:04:49 -04:00
Georges-Antoine Assi
84ded3bc24 pick largest file from the list 2025-08-09 14:47:34 -04:00
Michael Manganiello
f13d2198db fix: Make RetroAchievements hash matching case-insensitive
Fixes #2182.
2025-08-09 12:48:28 -03:00
Georges-Antoine Assi
d005dba90b fix a bunch of shit 2025-08-09 11:16:12 -04:00