mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[PR #1075] [MERGED] feat(apiv1): refactor tags api #972
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#972
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/go-shiori/shiori/pull/1075
Author: @fmartingr
Created: 3/8/2025
Status: ✅ Merged
Merged: 3/11/2025
Merged by: @fmartingr
Base:
master← Head:feat/api-v1-tags-refactr📝 Commits (10+)
7b49f82refactor: tags api into v1 api905a112feat: tags api huge refactor1ce90fefix: pg & sqlite tests8900106Merge branch 'master' into feat/api-v1-tags-refactre26228ctests: added more tests64f2f1afix: bug on mysql bookmark and tag creation2144ae5test: re-enabled testc5d052atests: slices testba2bfd1tests: model bookmarks5af513ctest: use filepath.Join for path construction in bookmark tests📊 Changes
29 files changed (+3987 additions, -437 deletions)
View changed files
📝
Makefile(+7 -0)📝
docs/swagger/docs.go(+224 -12)📝
docs/swagger/swagger.json(+224 -12)📝
docs/swagger/swagger.yaml(+148 -8)📝
go.mod(+2 -5)📝
go.sum(+26 -94)📝
internal/database/database_test.go(+702 -6)📝
internal/database/mysql.go(+461 -101)📝
internal/database/mysql_test.go(+5 -0)📝
internal/database/pg.go(+402 -58)📝
internal/database/sqlite.go(+420 -115)📝
internal/domains/bookmarks.go(+15 -0)📝
internal/domains/bookmarks_test.go(+67 -0)📝
internal/domains/tags.go(+46 -2)➕
internal/domains/tags_test.go(+159 -0)📝
internal/http/handlers/api/v1/bookmarks.go(+59 -0)📝
internal/http/handlers/api/v1/bookmarks_test.go(+124 -0)📝
internal/http/handlers/api/v1/tags.go(+170 -1)📝
internal/http/handlers/api/v1/tags_test.go(+338 -9)📝
internal/http/server.go(+20 -0)...and 9 more files
📄 Description
-Added a bunch of test cases to ensure that both the new and old logic works as expected
Closes #921 #658
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.