57 Commits

Author SHA1 Message Date
NathanJ60
b3ed588c0a feat: run frontend tests in CI (#435)
- Add test job to frontend workflow
- Update mediainfoParser snapshot
2025-12-13 10:34:41 +00:00
FrenchGithubUser
4210ac0058 ci: allow to run docs build on demand 2025-12-09 20:01:47 +01:00
FrenchGithubUser
496184003f ci: add frontend type-checking 2025-12-02 19:43:03 +01:00
FrenchGithubUser
0607176817 ci: allow to run the backend workflow manually & fix schema-check ci 2025-11-18 19:41:41 +01:00
FrenchGithubUser
f0c770de2b fix: load env in CI 2025-11-08 11:27:29 +01:00
FrenchGithubUser
dbcada55f6 Delete table deleted_torrents and type errors fixes (#385)
* refactor: remove removed_torrents table

* fix: updated sql migrations to include deleted_at filter

* fix: change db port to 5433 in ci

* refreshed sqlx cache

* debugging

* removed

* debug

* revert .env

* updated sqlx cache

* updated db

* revert ci workflow

---------

Co-authored-by: Abel Hristodor <habelor@gmail.com>
2025-10-17 15:07:29 +00:00
Pavlos Polianidis
4b7b226062 Refactor/split handlers (#325)
* chore: add AllowedTorrentClientSet

* chore: add dotenv

* feat: remove fields from Arcadia and use env

* feat: impl Arcadia::new

* refactor: rename to api

* feat: create storage lib crate

* feat: impl arcadia error in common

* chore: use the error from the common trate

* chore: move to forum models mod

* feat: add common models

* feat: add common services

* fix: use the correct imports in torrent_handler

* fix: use the correct imports in torrent_handler

* fix: announce handler

* fix: artist handler

* fix: auth handler

* fix: conversation handler

* fix: edition group handler

* fix: forum handler

* fix: gift handler

* fix: home handler

* fix: invitation handler

* fix: master groupp handler

* feat: add local user model to the api

* fix: subscription handler

* fix: title group handler

* fix: title group

* fix: torrent report handler

* fix: torrent request handler

* fix: torrent request vote handler

* fix: user application handler

* fix: user handler

* fix: wiki handler

* fix: some of the scraper handlers

* fix: isbn and music brainz

* fix: tmdb

* fix: periodic tasks

* fix: all api compiler errors

* feat: implement cron-jobs bin

* fix: compiler errors

* feat: impl connection pool for announce

* feat: impl connection pool for artist repo

* feat: impl connection pool for invitation and gift

* feat: impl connection pool for master group

* feat: impl connection pool for series and torrent

* feat: impl connection pool for subs

* feat: impl connection pool torrent report

* feat: impl connection for torrent request

* feat: impl connection for user

* feat: impl connection for wiki

* fix: use methods of connection pool

* chore: fmt the code

* chore: fmt the code

* chore: rename to database_rul

* chore: remove unwrap from endpoint

* fix: failing tests

* feat: impl Borrow and BorrowMut for connection pool

* chore: fmt the tcode

* fix: test setup

* test: use migration in sql::test

* chore: fmt the code

* chore: fmt the code

* chore: use dotenvy

* chore: use env error

* refactor: mv rust code to the backend folder

* chore: get last PR chnages

* fix: backend gh action

* chore: cp correct nev file

* chore: remove unused files

* fix: schema-check job

* chore: load env from the api folder

* chore: update the lint job's working directory

* chore: move patch.crates-io to the root manifest

* chore: remove self casting

* chore: fmt code

* chore: remove deleted files

* chore: update cache-workspace

* feat: add route config to the auth resource

* feat: move register to separate file

* feat: move login to separate file

* feat: move refresh-token to separate file

* chore: create jwt middleware

* chore: make fns private

* feat: create users resource

* feat: create user applications resources

* feat: create title group and search resources

* feat: add create_title_group_comment to title groupds

* feat: create edition group resource

* feat: create torrent resource

* feat: impl torrent requests resource

* feat: add artist and affiliated artist resources

* feat: add conversation endpoint

* feat: add subscriptions endpoint

* feat: add serries endpoint

* feat: add external db endpoints

* feat: add forum endpoint

* feat: add wiki endpoints

* feat: add home and invitation endpoints

* feat: add master groups endpoints

* feat: add figt handler

* feat: add create torrent report

* feat: create announce endpoint

* test: use correct path

* test: fix all tests

* fix: all utopia endpoint paths

* fix: endpoint paths in the front-end

* chore: exclude user-application from jwt middleware

* feat: add new schema ts

* fix: pr suggestions by coderabbit

* feat: add operation id and tags to api docs

* chore: update ts api schema

* chore: fix typo

* chore: update ts schema
2025-08-27 08:52:48 +00:00
Pavlos Polianidis
560b3c7fac Refactor/workspace (#321) 2025-08-23 13:01:24 +00:00
Giovanni Clini
b5e93bbd7a Added rustfmt to ci backend pipeline (#308) 2025-08-14 11:39:13 +00:00
EvadingCrossbowHashbrown
fe20cb26c5 Set up mdBook docs with initial content and GitHub Actions deployment 2025-06-23 15:25:22 +05:30
Shehab Ali Tweel
3b57bd1d33 make ci ignore markdown files 2025-06-02 21:32:53 +00:00
Shehab Ali Tweel
38a483f165 cache EVERYTHING 2025-04-27 22:12:01 +02:00
Shehab Ali Tweel
e28d5e46e1 enable containerd image store 2025-04-27 21:50:53 +02:00
Shehab Ali Tweel
dace00266f fix 2: caching edition 2025-04-27 21:45:25 +02:00
Shehab Ali Tweel
b4faaf70c0 fix 1 2025-04-27 21:08:24 +02:00
Shehab Ali Tweel
17837b69a9 upgrade(?) the publish docker images workflow 2025-04-27 20:59:07 +02:00
Shehab Ali Tweel
24ee7c7c99 now when you cancel it stops now but when you don't it still carries on doing it's thing 2025-04-27 20:06:56 +02:00
Shehab Ali Tweel
f42a80e707 potential issue here, lemme fix 2025-04-26 21:23:52 +02:00
FrenchGithubUser
6c37e0f33b renamed arcadia-index to arcadia-backend for clarity 2025-04-22 10:55:58 +02:00
Arian Daneshvar
779f06e1c0 update publish job with correct action params 2025-04-21 15:47:00 -07:00
Shehab Ali Tweel
649edafc7b bro forgot to setup env 💀 2025-04-18 16:09:55 +02:00
Shehab Ali Tweel
12a0c7bc47 what if offline mode is the issue? 2025-04-18 16:03:25 +02:00
Shehab Ali Tweel
abacd54428 oops 2025-04-18 15:58:57 +02:00
Shehab Ali Tweel
8140c37081 build and schema check in one job for now and cache on failure 2025-04-18 15:58:07 +02:00
Shehab Ali Tweel
9429d82f93 forgor fix 2025-04-18 15:53:15 +02:00
Shehab Ali Tweel
e26a468098 force workflow to use offline mode 2025-04-18 10:42:38 +02:00
Shehab Ali Tweel
b60302f67b point the cacheinator to the right place
maybe this is solution?
2025-04-18 10:33:17 +02:00
Shehab Ali Tweel
01234865e5 make workflows run on ALL branches 2025-04-18 10:23:07 +02:00
Shehab Ali Tweel
fe13a2836f optimize workflows
Linting, building and schema checking are now seperate jobs, able to be run in parallel
2025-04-18 10:21:15 +02:00
diceypotato
76115f73bb backend: make clippy green
Clippy is a rust tool that does some basic static analysis.  Run it, and
ensure that the backend comes out error and warning free.

In the process, this identified that the `category_enum` had both
`Single` and `SingleCategory` members, but on the backend, they were
being aliased.  Just opt to drop the latter.

Also, ensure clippy will run in CI.
2025-04-17 08:55:52 -05:00
diceypotato
ec30debdc5 ci: ensure we're running in a container
This is necessary so that we're in the same network namespace as the
postgres service container for integration testing.
2025-04-16 18:17:30 -05:00
diceypotato
fd721e1062 ci: add version to ensure github action can setup toolchain
Otherwise, github fails with:

```
Error
the `uses' attribute must be a path, a Docker image, or owner/repo@ref
```
2025-04-16 18:06:54 -05:00
Arian Daneshvar
d7a78f6d0a Update .github/workflows/backend.yml
Co-authored-by: Shehab Ali Tweel <shehabtweel@gmail.com>
2025-04-16 14:58:23 -07:00
Arian Daneshvar
dcf058c4bf use action to setup rust toolchain 2025-04-16 14:36:51 -07:00
Arian Daneshvar
518ef8225c remove comment 2025-04-16 14:30:47 -07:00
Arian Daneshvar
68ba90e8ce capitalize workflow/job/step names 2025-04-16 13:33:10 -07:00
Arian Daneshvar
87747c3527 remove debug step 2025-04-16 12:28:15 -07:00
Arian Daneshvar
55c9ce6bc7 update workflows to trigger on path changes 2025-04-16 11:39:49 -07:00
FrenchGithubUser
84bc4c02a7 Merge pull request #52 from bees/front-ci-basic
Add CI checks for the frontend for linting and formatting
2025-04-16 16:54:59 +02:00
Arian Daneshvar
00d4da2a53 add check-format script and use it in CI 2025-04-15 17:53:31 -07:00
Arian Daneshvar
f9c1b015db add check for formatting and linting 2025-04-15 15:07:10 -07:00
FrenchGithubUser
eb253effe5 Merge pull request #50 from bees/publish-to-ghcr
Publish index docker image to ghcr
2025-04-15 22:26:34 +02:00
Arian Daneshvar
56b866883d only publish images on release 2025-04-15 13:23:05 -07:00
Arian Daneshvar
3db27e2fd6 remove test branch line 2025-04-15 12:57:58 -07:00
Arian Daneshvar
b748bd8864 fix typo 2025-04-15 12:47:38 -07:00
Arian Daneshvar
7955a2f377 update name of backend build job 2025-04-15 12:44:29 -07:00
Arian Daneshvar
237adc80f9 move and update backend github workflows 2025-04-15 12:42:44 -07:00
Arian Daneshvar
6d3288fe3a use branch to test pushes 2025-04-15 12:10:05 -07:00
Arian Daneshvar
11cde2138d build and publish container image to GHCR 2025-04-15 12:10:05 -07:00
FrenchGithubUser
639ce44d5d moved files into backend/ 2025-04-15 21:03:38 +02:00