Skip to content

fix: add actiontemplates.GetByQuery so collection filters reach the server - #439

Merged
NickJosevski merged 3 commits into
mainfrom
nj/actiontemplates-get-by-query
Aug 12, 2026
Merged

fix: add actiontemplates.GetByQuery so collection filters reach the server#439
NickJosevski merged 3 commits into
mainfrom
nj/actiontemplates-get-by-query

Conversation

@NickJosevski

Copy link
Copy Markdown
Contributor

Fixes #437.

ActionTemplateSearch is the response shape of Search and carries no uri tags, so the fields passed to Get never reached the server — every call returned the default first page.

  • adds GetByQuery, taking the existing Query (which has the correct tags)
  • deprecates Get, left in place and unchanged
  • tests pin both behaviours against the collection template

…erver

ActionTemplateSearch is the response shape of Search and carries no uri
tags, so the fields passed to Get never reached the server and every call
returned the default first page. Deprecate Get and add GetByQuery, which
takes the existing Query.

Fixes #437

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@NickJosevski
NickJosevski force-pushed the nj/actiontemplates-get-by-query branch from b1ba0e9 to 24994e7 Compare August 12, 2026 00:57
@NickJosevski
NickJosevski marked this pull request as ready for review August 12, 2026 01:02

@YuKitsune YuKitsune left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is fine but the comments have some Claude-isms

Comment thread pkg/actiontemplates/action_template_service.go Outdated
Comment thread pkg/actiontemplates/action_template_search.go Outdated
NickJosevski and others added 2 commits August 12, 2026 12:17
Co-authored-by: Eoin Motherway <25342760+YuKitsune@users.noreply.github.com>
Co-authored-by: Eoin Motherway <25342760+YuKitsune@users.noreply.github.com>
@NickJosevski

Copy link
Copy Markdown
Contributor Author

@YuKitsune thank you!

@NickJosevski
NickJosevski enabled auto-merge (rebase) August 12, 2026 02:20
@NickJosevski
NickJosevski disabled auto-merge August 12, 2026 02:31
@NickJosevski
NickJosevski merged commit 1b925bc into main Aug 12, 2026
6 checks passed
@NickJosevski
NickJosevski deleted the nj/actiontemplates-get-by-query branch August 12, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

actiontemplates.Get never sends its filters: ActionTemplateSearch is missing uri tags

2 participants