mirror of
https://github.com/EddieTheCubeHead/Stagnum.git
synced 2026-04-26 14:15:50 +03:00
[PR #75] [MERGED] 45 create pool routes for backend #267
Labels
No labels
bug
bug
client
design
documentation
feature
feature
infrastructure
pull-request
ready for development
server
server
spike
technical work
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Stagnum#267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/EddieTheCubeHead/Stagnum/pull/75
Author: @EddieTheCubeHead
Created: 2/17/2024
Status: ✅ Merged
Merged: 2/18/2024
Merged by: @EddieTheCubeHead
Base:
master← Head:45-create-pool-routes-for-backend📝 Commits (10+)
b21de2f45 base for pool creation route1e4942145 base for test and functionality for creating pool from collectionae51b57Merge branch 'master' into 45-create-pool-routes-for-backendde89892Pool creation (POST /pool) tested and working for all playable typesf63f40d45 Ensure old pool gets deleted on new creationf0c3bd745 Add test case for posting pool from multiple collectionsf011565Merge branch 'master' into 45-create-pool-routes-for-backendecec47845 Fix pool member parent-children relationship declaration178b4b045 base for add song to pool route308605f45 Add song features finalized📊 Changes
20 files changed (+940 additions, -199 deletions)
View changed files
📝
README.md(+2 -1)📝
server/README.md(+3 -2)➕
server/src/alembic/versions/6b917dddd71e_add_model_for_pool_members.py(+40 -0)➕
server/src/api/pool/dependencies.py(+169 -0)➕
server/src/api/pool/helpers.py(+21 -0)📝
server/src/api/pool/models.py(+1 -0)📝
server/src/api/pool/routes.py(+25 -11)📝
server/src/api/search/dependencies.py(+1 -2)📝
server/src/api/search/models.py(+2 -4)📝
server/src/api/search/routes.py(+2 -2)📝
server/src/database/entities.py(+21 -2)📝
server/src/main.py(+8 -4)📝
server/test/conftest.py(+202 -2)➕
server/test/pool_features/__init__.py(+0 -0)➕
server/test/pool_features/add_content_features.py(+88 -0)➕
server/test/pool_features/conftest.py(+33 -0)➕
server/test/pool_features/create_pool_features.py(+226 -0)➕
server/test/pool_features/delete_content_features.py(+63 -0)➕
server/test/pool_features/get_pool_features.py(+33 -0)📝
server/test/search_features/conftest.py(+0 -169)📄 Description
Most added code is in src/api/pool and test/pool_features.
Added the following routes
POST /poolCreate a new pool for the current user. Supports adding multiple tracks or collections into the pool at once. Deletes the previous pool content for the user.GET /poolGet the current poolPOST /pool/contentAdd a single piece of content into the current pool. This means a track, or a collection.DELETE /pool/content/{uri}Delete a single pice of content from the current pool. Deleting a collection deletes all child tracks.All changes have tests, and the test set passes on Windows 11 with python 3.12.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.