Commit Graph

4705 Commits

Author SHA1 Message Date
Georges-Antoine Assi
3fcce6606c complete updating the endpoints and models 2024-12-20 22:41:56 -05:00
Georges-Antoine Assi
0850c0cbcf migration to create and move to rom_file 2024-12-20 18:09:31 -05:00
Georges-Antoine Assi
e1ef8225c3 Create migration for new romfile 2024-12-20 10:42:53 -05:00
Georges-Antoine Assi
49c50ad810 Move hash calc for roms to bacakground task 2024-12-19 22:21:51 -05:00
Georges-Antoine Assi
651558c78b Merge pull request #1321 from rommapp/openid-connect
[ROMM-540] OIDC Support
2024-12-18 11:15:17 -05:00
Georges-Antoine Assi
37db255328 refactor oidc handler and fix tests 2024-12-18 10:49:45 -05:00
Georges-Antoine Assi
1a9735645e Merge branch 'master' into openid-connect 2024-12-18 00:17:40 -05:00
Michael Manganiello
1f5e1712b8 Merge pull request #1365 from rommapp/fix/parallel_n64-typo
fix: Typo in parallel_n64 core name
2024-12-17 10:01:45 -03:00
Michael Manganiello
067ddd1f21 Merge pull request #1364 from rommapp/misc/remove-print-leftover
misc: Remove print leftover in CallbackIO class
2024-12-17 10:01:36 -03:00
zurdi
97b6d35765 fix: added missing OIDC variables to template 2024-12-17 12:55:05 +00:00
Michael Manganiello
7bfa08df14 fix: Typo in parallel_n64 core name
Fixes #1219. Typo found by @Subtixx in that same issue.
2024-12-17 00:07:21 -03:00
Michael Manganiello
3eb9d902d6 misc: Remove print leftover in CallbackIO class 2024-12-16 22:50:28 -03:00
Michael Manganiello
7fb34d7e8b Merge pull request #1361 from rommapp/fix/i18n-pluralization
fix: Improve i18n pluralization
2024-12-14 13:51:56 -03:00
Michael Manganiello
b340260a66 fix: Improve i18n pluralization
Add some `-n` i18n key variations, which are intended to be used with
the `t` function to provide the correct pluralization for the given
number.

Also started using `scan.roms-scanned-n`, which wasn't being used.
2024-12-14 12:16:58 -03:00
Michael Manganiello
4d6013dbc7 Merge pull request #1360 from rommapp/misc/igdb-remove-unneeded-redis-key
misc: Remove unneeded Redis key for Twitch token expiration
2024-12-13 17:05:17 -03:00
Michael Manganiello
099f6e6fe2 misc: Remove unneeded Redis key for Twitch token expiration
The key `romm:twitch_token_expires_at` is not needed, as we already
set an expiration time for the token key itself. If the token is still
present in Redis, it is valid. If not, it means we either never fetched
it, or it was too close to expiration.

With this change, fetching the Twitch token makes a single Redis call
instead of two.
2024-12-13 14:33:56 -03:00
Michael Manganiello
f78611e8bb Merge pull request #1359 from rommapp/misc/sort-roms-at-handler
misc: Sort roms in get_roms method
2024-12-13 14:29:01 -03:00
Michael Manganiello
df09a55f69 Merge pull request #1358 from rommapp/misc/use-async-cache-for-igdb-handler
misc: Use async cache in IGDB handler
2024-12-13 14:28:46 -03:00
Georges-Antoine Assi
34d49e6494 changes from self review 2024-12-13 11:33:39 -05:00
Georges-Antoine Assi
1ca4d894dd Merge branch 'master' into openid-connect 2024-12-13 11:24:04 -05:00
Zurdi
6854f82b99 Merge pull request #1353 from rommapp/feature/multi-language-support
feat: Multi language support
2024-12-13 15:52:23 +01:00
Michael Manganiello
bcaecbd311 misc: Sort roms in get_roms method
The `get_roms` method is used during scanning and to generate feeds.
Sorting by filename is not perfect (e.g. prefixes like "The" or "A"),
but should be good enough for users to better visualize how the scanning
process is going, and how close it's to finish.
2024-12-13 10:01:49 -03:00
Michael Manganiello
09c32f2376 misc: Use async cache in IGDB handler
One of the only places we are still using the sync cache, can be easily
changed to use the async one.
2024-12-13 09:21:47 -03:00
Georges-Antoine Assi
a7e20cd947 Merge pull request #1357 from rommapp/hotfix-update-user
[HOTFIX] Lower permission on update user endpoint and check perms internally
2024-12-12 21:25:58 -05:00
Georges-Antoine Assi
0a4643f4a3 Merge branch 'master' into feature/multi-language-support 2024-12-12 17:43:06 -05:00
Georges-Antoine Assi
6efc362987 add german language 2024-12-12 17:40:49 -05:00
Georges-Antoine Assi
2d5bc34e9c add tests for oidc handler 2024-12-12 17:37:30 -05:00
Georges-Antoine Assi
9e844801ed disable oidc in pytest 2024-12-12 16:42:50 -05:00
Georges-Antoine Assi
776d3c6547 fix user endpoint tests 2024-12-12 16:17:54 -05:00
Georges-Antoine Assi
fa1eceed7a [HOTFIX] Lower permission on update user endpoint and check perms internally 2024-12-12 10:47:27 -05:00
Georges-Antoine Assi
e953398cab add email to user create 2024-12-12 10:43:45 -05:00
Georges-Antoine Assi
82ac766c9e oidc login using email 2024-12-12 10:08:27 -05:00
Georges-Antoine Assi
bb43767249 Merge branch 'master' into openid-connect 2024-12-11 23:20:40 -05:00
Georges-Antoine Assi
0e2866f0f5 dont setup OIDC if disabled 2024-12-11 23:20:21 -05:00
Zurdi
125627f513 Merge pull request #1355 from rommapp/fix/setup-wizard-redirect
fix: Setup wizard redirection
2024-12-12 01:15:44 +01:00
zurdi
1fecbe7c98 fix: setup view redirection 2024-12-11 16:15:40 +00:00
zurdi
12cf599090 fix: fixed typescript null on state 2024-12-10 18:41:32 +00:00
Georges-Antoine Assi
b85f12e374 Merge pull request #1351 from rommapp/hotfix-sqlalchm-models
Hotfixes for some sqlalchemy models
2024-12-10 11:28:58 -05:00
zurdi
ba329d54d5 fix: typescript check for locales index 2024-12-10 10:45:32 +00:00
Georges-Antoine Assi
cae4089ccf add email field 2024-12-09 19:57:13 -05:00
Georges-Antoine Assi
2cd9041e85 Merge branch 'master' into openid-connect 2024-12-09 19:25:44 -05:00
Georges-Antoine Assi
d172f2f3ef hotfix some sqlalchemy models 2024-12-09 19:21:00 -05:00
Georges-Antoine Assi
530e7ddb57 Merge pull request #1350 from rommapp/romm-1348
[ROMM-1348] Log when a user downloads a game
2024-12-09 18:59:33 -05:00
Georges-Antoine Assi
f9129d4ded improvements to franch tranlsation 2024-12-09 18:57:44 -05:00
zurdi
50ae9b34e3 Merge remote-tracking branch 'refs/remotes/origin/feature/multi-language-support' into feature/multi-language-support 2024-12-09 23:40:16 +00:00
zurdi
ff992fac9f feat: reorder language options and sort by name 2024-12-09 23:39:39 +00:00
Zurdi
95ca5ccba6 Update rom.json 2024-12-09 19:10:37 +01:00
Zurdi
4e0d9ff266 Update play.json 2024-12-09 19:10:19 +01:00
Zurdi
1bfd88ba79 Update common.json 2024-12-09 19:09:48 +01:00
Zurdi
d7fad606ad Update collection.json 2024-12-09 19:09:38 +01:00