-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dbless): restore the removed tags based query support (#13907)
KAG-5725 --------- Co-authored-by: chronolaw <[email protected]> Co-authored-by: xumin <[email protected]>
- Loading branch information
1 parent
b4f1c20
commit 7bb20ea
Showing
4 changed files
with
215 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
local Tags = {} | ||
|
||
|
||
-- Used by /tags/:tag endpoint | ||
-- @tparam string tag_pk the tag value | ||
-- @treturn table|nil,err,offset | ||
function Tags:page_by_tag(tag, size, offset, options) | ||
options.tags = { tag, } | ||
return self:page_for_tags(size, offset, options) | ||
end | ||
|
||
|
||
-- Used by /tags endpoint | ||
function Tags:page(size, offset, options) | ||
return self:page_for_tags(size, offset, options) | ||
end | ||
|
||
|
||
return Tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7bb20ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:7bb20ea9e7c4d06b17f14df5a21a863fbe78f0de
Artifacts available https://github.com/Kong/kong/actions/runs/11969411191