mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[PR #1079] [MERGED] feat: allow tag filtering and count retrieval via api #973
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#973
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/1079
Author: @fmartingr
Created: 3/12/2025
Status: ✅ Merged
Merged: 3/12/2025
Merged by: @fmartingr
Base:
master← Head:feat/bookmark-tags-endpoint-refactor📝 Commits (8)
baf91d9fix: frontend url to retrieve bookmark count7d040b7chore: unneeded type in generic326b785feat: allow tag filtering and count retrievaldebdf1afix: make stylese772791fix: make swagger20931dbfix: make swag5a52bd3tests: refactored gettags tests0ec5819fix: initialise tags empty slice📊 Changes
26 files changed (+734 additions, -236 deletions)
View changed files
📝
docs/swagger/docs.go(+14 -0)📝
docs/swagger/swagger.json(+14 -0)📝
docs/swagger/swagger.yaml(+9 -0)📝
internal/cmd/root.go(+1 -1)📝
internal/database/database.go(+47 -2)➕
internal/database/database_tags.go(+69 -0)➕
internal/database/database_tags_test.go(+244 -0)📝
internal/database/database_test.go(+7 -107)📝
internal/database/mysql.go(+1 -32)📝
internal/database/mysql_test.go(+1 -1)📝
internal/database/pg.go(+4 -35)📝
internal/database/pg_test.go(+1 -1)📝
internal/database/sqlite.go(+4 -26)📝
internal/database/sqlite_noncgo.go(+6 -2)📝
internal/database/sqlite_openbsd.go(+6 -2)📝
internal/domains/tags.go(+2 -2)📝
internal/domains/tags_test.go(+125 -6)📝
internal/http/handlers/api/v1/tags.go(+26 -7)📝
internal/http/handlers/api/v1/tags_test.go(+109 -0)📝
internal/model/database.go(+13 -1)...and 6 more files
📄 Description
Added missing stuff for #658:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.