complete refactor #2

Merged
ninjdai merged 108 commits from refactor into master 2026-01-03 13:27:16 +01:00
Owner

Complete refactor using newer versions of sea orm and cleaner Response code

Complete refactor using newer versions of sea orm and cleaner Response code
Refactor: part 2
Some checks failed
/ test (push) Failing after 4m54s
1ebaa08b4d
feat: private media api
Some checks failed
/ test (push) Failing after 4m56s
0efa62b208
feat: bam state endpoint
Some checks failed
/ test (push) Failing after 5m16s
c369ec778a
feat: make bam_id part of the primary key of sales
Some checks failed
/ test (push) Failing after 5m4s
ff5a0d0f2b
chore: remove unused endpoints
Some checks failed
/ test (push) Failing after 4m58s
dac0317a06
feat: instance GET endpoint
Some checks failed
/ test (push) Failing after 5m2s
f86117970e
feat: instance create endpoint
Some checks failed
/ test (push) Failing after 5m4s
2272dfcbd8
feat: text_id field on owner
Some checks failed
/ test (push) Failing after 4m59s
5af5c7705a
feat: use UUIDs instead of i64s for IDs
Some checks failed
/ test (push) Failing after 5m12s
85d8e7559b
chore: update dependencies
Some checks failed
/ test (push) Has been cancelled
50dba4d645
refactor: replace a find + filter by find_by_id
Some checks failed
/ test (push) Has been cancelled
4605938af2
refactor: remove unused imports
Some checks failed
/ test (push) Failing after 5m14s
3870f3730c
chore: remove unused dependency
Some checks failed
/ test (push) Failing after 5m12s
ab14403714
feat: proper BAM stop endpoint
Some checks failed
/ test (push) Failing after 5m27s
a4bccc899f
feat: booking instance endpoint
Some checks failed
/ test (push) Failing after 5m16s
0796455e48
feat: remove booking data when instance is sold
Some checks failed
/ test (push) Failing after 5m18s
9f6909e8fe
feat: timestamp and checked in BookingData
Some checks failed
/ test (push) Failing after 5m15s
c28d19d9f8
feat: BAM stats endpoint
Some checks failed
/ test (push) Failing after 5m26s
605d31c6ed
feat: owner return endpoint
Some checks failed
/ test (push) Failing after 5m14s
3d033e70c0
feat: make owner return endpoint a patc method
Some checks failed
/ test (push) Failing after 5m10s
ada2930c80
feat: API version endpoint
Some checks failed
/ test (push) Failing after 5m14s
941f995138
fix: rename functions to avoid name collisions
Some checks failed
/ test (push) Failing after 5m16s
55b3d50916
fix: broken owner list endpoint
Some checks failed
/ test (push) Failing after 5m12s
65dc9e0282
* Wrong METHOD
* Wrong filter: used sale.bam_id instead of owner.bam_id
fix: conflicting function names
Some checks failed
/ test (push) Failing after 5m15s
9bbfb4c72c
feat: remove pagination from list_owners
Some checks failed
/ test (push) Failing after 8m39s
de1e8c3938
chore: remove unused imports
Some checks failed
/ test (push) Failing after 7m7s
1516859130
chore: update dependencies
Some checks failed
/ test (push) Failing after 8m33s
8cb1ab5ddd
feat: bam_id in instance response
Some checks failed
/ test (push) Has been cancelled
c1b21c69c8
feat: bam_id in stats response
Some checks failed
/ test (push) Failing after 7m23s
9bf4fb379a
feat: bam_id in sales response
Some checks failed
/ test (push) Failing after 8m10s
d2ca30afe3
feat: get self owner in a BAM
Some checks failed
/ test (push) Failing after 7m39s
15337944db
feat: API request logging
Some checks failed
/ test (push) Failing after 8m3s
fdffe1e864
feat: BAM full list
Some checks failed
/ test (push) Failing after 8m26s
6b43204d7a
revert full bam list
Some checks failed
/ test (push) Failing after 7m40s
35fbf9037f
fix(owner text id): filter for BAM in find_free_text_id
Some checks failed
/ test (push) Failing after 8m10s
3f831c11eb
feat: Instance Search endpoint
Some checks failed
/ test (push) Failing after 8m15s
f7a1231381
feat: lowercase MediaType renaming
Some checks failed
/ test (push) Failing after 7m49s
5a5ae7cc5c
fix: wrong method for media/by-ean endpoint
Some checks failed
/ test (push) Failing after 7m49s
/ test (pull_request) Failing after 7m4s
375482fdb0
chore: update dependencies
Some checks failed
/ test (push) Has been cancelled
/ test (pull_request) Failing after 6m51s
8a9a09dc30
feat(ci): add a cargo build run before test build
Some checks failed
/ test (push) Failing after 57s
/ test (pull_request) Failing after 44s
91b95e67c3
refactor: add lib back to allow tests to function again
Some checks failed
/ test (push) Failing after 45s
/ test (pull_request) Failing after 44s
434663a0ad
feat(ci): remove release + toolchain args to allow for easier testing
Some checks failed
/ test (push) Failing after 8m1s
/ test (pull_request) Failing after 7m10s
769141b66b
fix(tests): use correct token check endpoint: /auth/check instead of /token-check
All checks were successful
/ test (push) Successful in 10m13s
/ test (pull_request) Successful in 3m27s
ae5f356d9b
feat(ci): move database setup out of main setup function
All checks were successful
/ test (push) Successful in 3m28s
/ test (pull_request) Successful in 3m25s
89287e1296
feat(tests): add first BAM tests
All checks were successful
/ test (push) Successful in 6m27s
/ test (pull_request) Successful in 7m5s
cc4cae31df
fix(media): fix get_by_ean not accounting for media_type and add tests to avoid similar pitfalls
All checks were successful
/ test (push) Successful in 6m42s
/ test (pull_request) Successful in 7m4s
c1e83d39c0
feat: owner/{id}/instances endpoint
Some checks failed
/ test (push) Successful in 5m40s
/ test (pull_request) Failing after 15m57s
4c21898bdb
feat: more thorough checks for token correctness
All checks were successful
/ test (push) Successful in 6m20s
/ test (pull_request) Successful in 5m42s
c0340920dc
refactor: move entities to separate crate to reduce compile times
Some checks failed
/ test (push) Has been cancelled
/ test (pull_request) Successful in 8m33s
0736c0cc0f
fix(tests): move tests to alexandria project and replace imports
Some checks are pending
/ test (push) Waiting to run
/ test (pull_request) Successful in 3m6s
fed1837573
tests: remove cargo run from test CI
All checks were successful
/ test (push) Successful in 3m46s
/ test (pull_request) Successful in 3m23s
2e832cccdc
fix: replace println with log
Some checks failed
/ test (pull_request) Has been cancelled
/ test (push) Successful in 10m2s
d4d9e12c99
fix: replace println with log
All checks were successful
/ test (push) Successful in 3m12s
/ test (pull_request) Successful in 4m13s
9b2fb10348
feat: note field on owner update endpoint
All checks were successful
/ test (push) Successful in 4m56s
/ test (pull_request) Successful in 4m10s
c8173b1edc
refactor: ReturnData allows for more specific info
All checks were successful
/ test (push) Successful in 4m16s
/ test (pull_request) Successful in 5m7s
4a9828213a
refactor!:change full instances for only their IDs in ApiSaleWithInstances
All checks were successful
/ test (push) Successful in 5m21s
/ test (pull_request) Successful in 5m0s
2672da9f81
feat: use find_by_id instead of find plus filters for get_self_owner_in_bam
Some checks failed
/ test (push) Failing after 4m8s
/ test (pull_request) Failing after 4m7s
65b7b4ef67
fix: make sale removal also update related instances
Some checks failed
/ test (push) Failing after 4m52s
/ test (pull_request) Failing after 3m45s
6fef095176
revert use find_by_id instead of find plus filters for get_self_owner_in_bam
Some checks failed
/ test (push) Has been cancelled
/ test (pull_request) Successful in 4m29s
72f9c55393
stupid me why did I even think this made sense???
chore: remove unused imports
All checks were successful
/ test (push) Successful in 4m30s
/ test (pull_request) Successful in 4m12s
030bf98718
fix(stats): populate daily stats vec after generating the daily stats
Some checks failed
/ test (push) Has been cancelled
/ test (pull_request) Successful in 4m38s
9494fb70bd
fix(stats): fix timestamp rounding to midday flawed logic
All checks were successful
/ test (push) Successful in 4m4s
/ test (pull_request) Successful in 4m13s
6ffd77b6c0
fix: media update using wrong method to save the changes
All checks were successful
/ test (push) Successful in 4m39s
/ test (pull_request) Successful in 4m29s
19d97ea247
fix: owner instances fetch uses find_by_id with inverted ids
All checks were successful
/ test (push) Successful in 5m8s
/ test (pull_request) Successful in 4m38s
36ce91fb9a
feat: instance update endpoint
All checks were successful
/ test (push) Successful in 4m17s
/ test (pull_request) Successful in 4m39s
ceeff8a4bd
feat: bam delete endpoint
All checks were successful
/ test (push) Successful in 4m11s
/ test (pull_request) Successful in 4m23s
5182ae9ff4
fix: wrong split stats logic.
All checks were successful
/ test (push) Successful in 4m48s
/ test (pull_request) Successful in 4m27s
1295a4f138
Also adds a test for the function
refactor!: move bam DELETE endpoint
All checks were successful
/ test (push) Successful in 5m8s
/ test (pull_request) Successful in 4m12s
0454bde0ef
fix: wrong order for find_by_id in get_return_stats
All checks were successful
/ test (push) Successful in 4m44s
/ test (pull_request) Successful in 3m36s
c758e69357
fix: wrong instance count in get_return_stats
All checks were successful
/ test (push) Successful in 4m16s
/ test (pull_request) Successful in 5m20s
5ecd0d14f1
fix: wrong order for find_by_id in return_to_owner
All checks were successful
/ test (push) Successful in 3m35s
/ test (pull_request) Successful in 4m37s
9b32f4a5c4
chore: bump version
Some checks are pending
/ test (push) Waiting to run
/ test (pull_request) Successful in 11m10s
256ed942f4
chore: bump API version
All checks were successful
/ test (push) Successful in 3m26s
/ test (pull_request) Successful in 3m37s
41541c32be
ninjdai changed title from WIP: complete refactor to complete refactor 2026-01-03 13:26:47 +01:00
ninjdai merged commit 7a6b60e939 into master 2026-01-03 13:27:16 +01:00
ninjdai deleted branch refactor 2026-01-03 13:27:17 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: UEAuvergne/Alexandria#2
No description provided.