Michael Manganiello
b99ededced
misc: Migrate to SQLAlchemy declarative models
...
This change applies the guided migration process recommended by
SQLAlchemy [1], up to step 4, to have declarative ORM models that better
support Python typing.
The change was tested by running `alembic check`, which does not find
any schema changes.
Errors reported by `mypy` go down to 170, from the original 223 in the
current `master` commit.
[1] https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html#migrating-an-existing-mapping
2024-06-25 23:03:20 -03:00
Zurdi
c3329012df
Merge pull request #956 from rommapp/fix/front_firmware_permissions
...
Fixed firmware drawer permissions
2024-06-25 23:17:03 +02:00
Zurdi
0e3693b370
fixed firmware drawer permissions
2024-06-25 22:58:32 +02:00
Georges-Antoine Assi
4cb870b940
Merge pull request #953 from adamantike/misc/remove-mentions-to-poetry-fork
...
misc: Remove mentions to unneeded Poetry fork
2024-06-25 16:29:35 -04:00
Georges-Antoine Assi
1d4edc1f44
Merge pull request #950 from adamantike/misc/apply-pyupgrade-changes
...
misc: Apply changes generated by pyupgrade
2024-06-25 16:19:05 -04:00
Georges-Antoine Assi
2458738e91
Merge pull request #952 from adamantike/fix/remove-abandoned-aioredis
...
fix: Remove abandoned dependency aioredis
2024-06-25 13:22:55 -04:00
Michael Manganiello
3d4a66cbca
misc: Remove mentions to unneeded Poetry mention
...
Poetry 1.8.0 already includes support for `package-mode = false`, so
there's no need to install a Poetry fork anymore.
2024-06-24 07:38:27 -03:00
Michael Manganiello
9283193f49
fix: Use latest 3.11 version supported by trunk
...
Source: d9eae6887d
2024-06-23 18:34:28 -03:00
Michael Manganiello
87a4ef33ec
misc: Upgrade Python to 3.11 in trunk configuration
2024-06-23 18:18:20 -03:00
Georges-Antoine Assi
176c57c792
run trunk fmt
2024-06-23 18:17:19 -03:00
Michael Manganiello
33ac3ca56d
misc: Apply changes generated by pyupgrade
...
Changes automatically made by
[`pyupgrade`](https://github.com/asottile/pyupgrade ), using the
`--py311-plus` flag, to be compatible with Python 3.11.
2024-06-23 18:17:08 -03:00
Michael Manganiello
707b2ec6bd
fix: Remove abandoned dependency aioredis
...
`aioredis` is abandoned, and has been replaced by `redis.asyncio`.
Currently, the project doesn't use `aioredis` directly, but depends on
it for `socketio.AsyncRedisManager`. This change is safe, as `socketio`
has been prioritizing `redis.asyncio` over `aioredis` since `v5.6.0` [1].
[1] 0e7691b776
2024-06-23 18:12:38 -03:00
Georges-Antoine Assi
2f1daaec8a
Merge pull request #948 from adamantike/fix/improve-docker-layer-caching-on-frontend-changes
...
fix: Improve Docker layer caching on frontend changes
2024-06-23 12:14:35 -04:00
Georges-Antoine Assi
548ac0174f
Merge pull request #951 from adamantike/misc/move-fakeredis-to-test-dependency
...
misc: Move fakeredis to test dependencies
2024-06-23 11:27:28 -04:00
Georges-Antoine Assi
92d5c60f43
run trunk fmt
2024-06-23 15:09:55 +00:00
Georges-Antoine Assi
74cb0625b2
Merge branch 'master' into misc/move-fakeredis-to-test-dependency
2024-06-23 11:04:07 -04:00
Georges-Antoine Assi
1f143ffd24
Merge pull request #949 from adamantike/misc/compile-constant-regexes
...
misc: Compile constant regular expressions
2024-06-23 11:00:08 -04:00
Georges-Antoine Assi
0546cee67d
Merge branch 'master' into fix/improve-docker-layer-caching-on-frontend-changes
2024-06-23 10:24:02 -04:00
Georges-Antoine Assi
dca2a59d93
Merge pull request #947 from adamantike/misc/simplify-dockerfile-backend
...
misc: Simplify backend environment configuration in Docker image
2024-06-23 10:22:32 -04:00
Michael Manganiello
ed635d69cc
misc: Move fakeredis to test dependencies
...
`fakeredis` is only needed when running tests, so we can move it to the
`test` dependency group.
2024-06-23 11:10:25 -03:00
Michael Manganiello
fc53d77a58
misc: Compile constant regular expressions
...
Improve efficiency on reusable regular expressions, by compiling them.
2024-06-23 00:36:22 -03:00
Michael Manganiello
32ef612b0a
fix: Improve Docker layer caching on frontend changes
...
Avoid any changes in the `frontend/` folder to trigger `npm install`.
Instead, split the copies to have separate steps for install and build.
2024-06-22 20:29:52 -03:00
Michael Manganiello
0daa708a05
misc: Simplify backend environment configuration in Docker image
...
This change moves the virtualenv creation in the `Dockerfile` to a
separate stage, to simplify isolating the process and reduce the need
for uninstalling build dependencies.
The approach is similar to the one explained in [1]. It relies on
building a virtualenv folder, and copying it in the final stage.
Changing the `PATH` environment variable makes the virtualenv usable by
default, without affecting the default Python installation.
Also, added Dockerfile arguments for Alpine, nginx, and Python versions,
as some of them are reused, and also simplifies testing new versions.
An extra side effect is that the image size for the final stage is
reduced from 315MB to 262MB.
[1] https://scribe.rip/@albertazzir/blazing-fast-python-docker-builds-with-poetry-a78a66f5aed0
2024-06-22 18:19:16 -03:00
Georges-Antoine Assi
5f2e0ea71f
add steam rom manager to readme
2024-06-22 09:50:09 -04:00
Zurdi
f650c44d18
Merge pull request #945 from rommapp/dockerfile-redis-install
...
Install redis instead of building in Dockerfile
3.3.0-beta.2
2024-06-21 19:15:12 +02:00
Georges-Antoine Assi
8ba274ac85
update copy in no roms found
2024-06-21 13:07:30 -04:00
Georges-Antoine Assi
b16c58e4bb
update redis build and update nginx
2024-06-21 13:03:50 -04:00
Georges-Antoine Assi
896cb57420
Install redis instead of building it
2024-06-21 12:48:42 -04:00
zurdi
347546fcb2
fixed details header
3.3.0-beta.1
2024-06-20 21:14:53 +02:00
zurdi
9b0dfd609c
fixed cover display
2024-06-20 21:10:53 +02:00
Zurdi
d01bd277d0
Merge pull request #934 from rommapp/refactor/main_layout
...
Refactor/main layout
2024-06-20 18:37:02 +02:00
zurdi
90030d588d
keep coherence between mobile and desktop nav bar
2024-06-20 18:21:34 +02:00
zurdi
780bf33a4b
disclaimer added into select cover dialog
2024-06-20 18:13:32 +02:00
Georges-Antoine Assi
130b1be22b
style tweak to the match rom modal
2024-06-20 11:28:47 -04:00
zurdi
3a400c1a5f
tweak scan platform selector
2024-06-20 16:38:13 +02:00
zurdi
749f1bcc77
added renaming message on match
2024-06-20 14:15:10 +02:00
zurdi
752e146d0f
improved large carousel close button
2024-06-20 13:59:45 +02:00
zurdi
49eaa7ed3e
clearer delete dialogs
2024-06-20 13:53:49 +02:00
zurdi
8de804ff27
redesigned select source on match rom dialog
2024-06-20 13:41:46 +02:00
zurdi
385faa7908
improved delete roms dialog
2024-06-20 11:37:06 +02:00
zurdi
86763a09cf
tooltip added to copy download link
2024-06-20 11:36:29 +02:00
zurdi
8386625f7f
bigger small size cover
2024-06-20 11:36:13 +02:00
zurdi
439ff792c5
expand log panels by default
2024-06-20 11:35:48 +02:00
Georges-Antoine Assi
057fef7ce9
better error handling when image fetch 503
2024-06-19 23:00:56 -04:00
zurdi
1bdf0b9e46
fixed main layout
2024-06-20 03:30:49 +02:00
Georges-Antoine Assi
da79883b91
remove psp from emulatorjs supported systems
2024-06-19 18:22:09 -04:00
Zurdi
d38ba12199
improved logs
2024-06-20 00:15:55 +02:00
Zurdi
cff10816b0
Revert 'drawers status managed by store'
...
This reverts commit 48ad8893f3 .
2024-06-19 23:30:38 +02:00
zurdi
90d7323b48
Merge branch 'refactor/main_layout' of https://github.com/zurdi15/romm into refactor/main_layout
2024-06-19 22:28:10 +02:00
zurdi
48ad8893f3
drawers status managed by store
2024-06-19 22:27:44 +02:00