Georges-Antoine Assi
c1cf7c958c
Merge pull request #1562 from rommapp/romm-994
...
[ROMM-994] Autogenerated collections
2025-02-11 10:40:07 -05:00
Georges-Antoine Assi
c78e3ee3a7
Merge branch 'master' into retrodeck-bios-files
2025-02-10 18:45:31 -05:00
Georges-Antoine Assi
88dc964ac4
Merge branch 'master' into romm-994
2025-02-08 21:28:38 -05:00
Georges-Antoine Assi
0f8d51193a
kiosk mode allows viewing without auth
2025-02-07 00:18:52 -05:00
Georges-Antoine Assi
6c95a03746
Read-only kiosk mode for viewers
2025-02-06 09:04:41 -05:00
Georges-Antoine Assi
06c421cdb7
fixup lazy loading
2025-01-29 10:29:24 -05:00
Georges-Antoine Assi
cd724b7d1a
migrate collections over to join table
2025-01-28 23:47:09 -05:00
Georges-Antoine Assi
21d2ce951e
more fixes to loading games
2025-01-27 22:29:38 -05:00
Georges-Antoine Assi
84c46c68eb
autogen cover for collections
2025-01-27 22:20:52 -05:00
Georges-Antoine Assi
10fbead892
autogenerate cover art
2025-01-27 20:26:33 -05:00
Georges-Antoine Assi
e2c0a5f54d
cleanup path covers
2025-01-27 18:43:01 -05:00
Georges-Antoine Assi
dbe4b71c7a
super naive appraoch to loading virtual collections
2025-01-27 18:15:52 -05:00
Georges-Antoine Assi
a35701396c
Merge branch 'master' into rom-hashing-background-task
2025-01-25 23:30:15 -05:00
Georges-Antoine Assi
b659ebe97f
[ROMM-1529]
2025-01-23 19:29:16 -05:00
Georges-Antoine Assi
429958bfb3
Merge branch 'master' into rom-hashing-background-task
2025-01-17 14:39:45 -05:00
Georges-Antoine Assi
346bbb2db3
Add category column to rom file
2025-01-16 10:49:47 -05:00
Georges-Antoine Assi
696a1c6122
Merge branch 'master' into rom-hashing-background-task
2025-01-15 21:51:23 -05:00
Georges-Antoine Assi
195b0cf742
[HOTFIX] Change all DateTime columns to TIMESTAMP
2025-01-13 21:53:00 -05:00
Georges-Antoine Assi
aacad9c697
[HOTFIX] Safe cast values to int for first_release_date
2025-01-11 19:37:39 -05:00
Georges-Antoine Assi
b4b0d3fb85
[HOTFIX] Safe cast values to float
2025-01-11 19:22:31 -05:00
Georges-Antoine Assi
e84f7afef0
Make field nulalble
2025-01-11 17:19:42 -05:00
Georges-Antoine Assi
b5d2caddf4
add average rating as a column
2025-01-09 22:38:28 -05:00
Georges-Antoine Assi
9e4e716812
Rework columns in table view
2025-01-09 19:36:05 -05:00
Michael Manganiello
415c7a7d94
Merge pull request #1449 from rommapp/misc/move-auth-constants
...
misc: Move auth constants to separate file
2025-01-08 23:29:40 -03:00
Michael Manganiello
865370ec13
misc: Move auth constants to separate file
...
This simplifies avoiding circular imports when trying to use auth
handlers.
2025-01-08 22:16:31 -03:00
Michael Manganiello
7825bce7b8
fix: Use proper JSON contains function for PostgreSQL
...
Fix `json_array_contains_value` function to use the `@>` operator for
checking if a JSON array contains a value in PostgreSQL. This is
necessary because the `has_key` function only works for string values.
Also, remove `get_rom_collections` method, as it was doing the same
thing as `get_collections_by_rom_id`.
Fixes #1441 .
2025-01-08 21:07:01 -03:00
Michael Manganiello
3f4a36a5ce
feat: PostgreSQL compatibility
...
This change introduces PostgreSQL compatibility, by implementing the
following changes:
* Use `JSONB` instead of `JSON` for PostgreSQL databases. This is
achieved by creating a custom `CustomJSON` type that uses `JSONB` on
PostgreSQL and `JSON` on other databases, leveraging the variant
mechanism of SQLAlchemy.
* Add `is_postgresql` function to check if the current database is
PostgreSQL. Commonly used for migrations, but can be used to determine
how to build queries based on the database engine.
* Add `json_array_contains_value` function to check if a JSON array
includes a specific value. This function is needed as it's
engine-specific.
Support for PostgreSQL is on a best-effort basis, and it relies on the
community for continued support and testing. The project's main database
is MariaDB.
Closes #667 .
2024-12-31 12:36:33 -03:00
Michael Manganiello
3cce2844b9
fix: Remove MySQL specific dialect from migrations
...
Avoid using SQLAlchemy's specific MySQL dialect in migrations.
This change also fixes migration `0014` downgrade logic, which was
broken.
2024-12-29 20:30:36 -03:00
Georges-Antoine Assi
84813bd962
Merge branch 'master' into rom-hashing-background-task
2024-12-27 12:02:04 -05:00
zurdi
980cb3169a
feat: add platform_custom_name and platform_display_name to ROM schemas and update related components
2024-12-25 19:57:43 +00:00
zurdi
9645fab707
feat: Added custom name for platforms
2024-12-24 02:30:27 +00:00
Georges-Antoine Assi
b398e70625
refactor downlaod roms endpoins
2024-12-21 17:40:45 -05:00
Georges-Antoine Assi
2e4e557eef
fixup running scans and loading
2024-12-21 12:06:37 -05:00
Georges-Antoine Assi
2b600c2725
rename rom.file_size_bytes
2024-12-21 09:26:33 -05:00
Georges-Antoine Assi
55eee458a1
actaully complete backend
2024-12-21 00:37:37 -05:00
Georges-Antoine Assi
7bde4aee70
complete the rst of the files
2024-12-20 23:45:25 -05:00
Georges-Antoine Assi
3fcce6606c
complete updating the endpoints and models
2024-12-20 22:41:56 -05:00
Georges-Antoine Assi
e1ef8225c3
Create migration for new romfile
2024-12-20 10:42:53 -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
cae4089ccf
add email field
2024-12-09 19:57:13 -05:00
Georges-Antoine Assi
d172f2f3ef
hotfix some sqlalchemy models
2024-12-09 19:21:00 -05:00
Michael Manganiello
743ecd83e7
misc: Fix some typing issues
2024-12-07 12:29:45 -03:00
zurdi
5eefdda9d8
refactor aspect_ratio field to use string type and update related components
2024-12-03 10:51:29 +00:00
zurdi
b670b68df3
added default aspect ratio in platform table
2024-12-01 18:22:27 +00:00
zurdi
be87d92cf7
fixed platform info migration and models
2024-11-28 12:28:29 +00:00
zurdi
80b7cc7333
added basic platform info from the igdb api call
2024-11-27 11:43:06 +00:00
Michael Manganiello
beeb9f0c31
misc: Create enum for authorization scopes
...
Instead of using just strings, this change converts the scopes to a
`StrEnum`, to be compatible with places where a string is expected. This
avoids typos when using these scopes, simplifies searching for usages,
and improves type hints.
An extra change was the fix to the Firmware download endpoint, which
wasn't respecting the `DISABLE_DOWNLOAD_ENDPOINT_AUTH` flag.
2024-10-18 23:57:42 -03:00
Georges-Antoine Assi
6880d11a73
Merge branch 'master' into romm-1114
2024-09-21 12:30:39 -04:00
Georges-Antoine Assi
fc6455eccb
Merge pull request #1137 from rommapp/romm-829
...
[ROMM-829] Status fields on rom user
2024-09-09 19:41:38 -04:00