Commit Graph

30 Commits

Author SHA1 Message Date
Georges-Antoine Assi
8fca3fbbfe get from running workers 2025-10-01 10:50:17 -04:00
Georges-Antoine Assi
4983f0be73 add ui for running tasks 2025-09-30 23:12:45 -04:00
Michael Manganiello
e4e3928d1b misc: Apply import sorting 2025-09-04 11:17:00 -03:00
Georges-Antoine Assi
bf42faf578 fix loading and converting images 2025-08-27 23:31:29 -04:00
Georges-Antoine Assi
586ce0ef30 Craete image to webp task 2025-08-27 22:12:12 -04:00
Georges-Antoine Assi
585ad63349 use correct key for job timeout 2025-08-26 22:22:36 -04:00
Georges-Antoine Assi
9bb586b288 set timeouts 2025-08-26 21:09:13 -04:00
Georges-Antoine Assi
8061db40b2 fix tests and cleanup 2025-08-02 17:55:43 -04:00
Georges-Antoine Assi
0acc9de6e6 add endpoint to fetch task result 2025-08-02 15:25:44 -04:00
Georges-Antoine Assi
70fe56296b Replace MessageResponse with spcific responses 2025-08-02 13:42:35 -04:00
Georges-Antoine Assi
d8af2f8956 fix review comments 2025-08-02 12:56:50 -04:00
Georges-Antoine Assi
19c5b5e428 refactor tasks endpoint 2025-08-02 10:11:00 -04:00
zurdi
fb07df6576 Refactor task execution to use low priority queue and improve loading state in Home.vue 2025-07-31 09:58:12 +00:00
zurdi
7aeccb5468 feat: Added clean resources task + revamped the whole task system 2025-07-22 16:31:36 +00:00
Georges-Antoine Assi
7d572ac0bf Merge branch 'master' into romm-403 2025-05-15 21:48:41 -04:00
Michael Manganiello
70825830c4 misc: Set prefix and tags to API routers
Improve OpenAPI documentation by setting tags to each API router. Also,
set a prefix to each router to group the endpoints by their
functionality.
2025-02-09 11:31:13 -03:00
Georges-Antoine Assi
0c95eff2e1 fetch and parse launchbox metadata.zip 2025-01-18 10:51:30 -05: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
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
Michael Manganiello
8abbae4c02 misc: Make backend handle URLs with trailing slash
According to multiple FastAPI discussions [1], FastAPI only includes a
built-in mechanism to redirect requests including a trailing slash, to
its variation without slash, using a `307` status code.

This can be an issue when certain clients do not send the same headers
on the redirected request.

This change adds a custom FastAPI `APIRouter`, that registers both route
path variations (with and without trailing slash), while only marking
the path without slash for being included in the OpenAPI schema.

[1] https://github.com/fastapi/fastapi/discussions/7298
2024-08-07 00:22:21 -03:00
Georges-Antoine Assi
880345f20c ruff-only pre-commit 2024-05-18 12:05:57 -04:00
Georges-Antoine Assi
c47167d98c remove mame task for tasks endpoint 2024-05-08 13:45:11 -04:00
Georges-Antoine Assi
4174b9753e remove mame from scheduled tasks and embed fixture 2024-03-26 16:49:02 -04:00
Georges-Antoine Assi
af56074b72 fix endpoint running tests manually 2024-03-12 10:06:55 -04:00
Zurdi
42065aec7c backend refactor as RESTful 2024-01-15 13:34:18 +01:00
Zurdi
1d2c9e7d05 standarized GET endpoints for roms and platforms 2024-01-14 02:34:37 +01:00
Zurdi
4b9e76f550 backend structure refactor 2024-01-12 23:44:27 +01:00
Zurdi
33b6364c8a endpoints and responses restructured 2024-01-11 23:57:06 +01:00
Zurdi
eea7e41940 docstrings added to endpoints + organized imports + formatted code 2024-01-09 16:22:31 +01:00
Georges-Antoine Assi
1e72672b20 Option to manually run tasks 2023-12-04 13:40:33 -05:00