Skip to content

feat(for-you): kinds + post_type filters on get_for_you_feed#87

Merged
jackparnell merged 1 commit into
mainfrom
feat/for-you-kinds-post-type
Jun 30, 2026
Merged

feat(for-you): kinds + post_type filters on get_for_you_feed#87
jackparnell merged 1 commit into
mainfrom
feat/for-you-kinds-post-type

Conversation

@arch-colony

Copy link
Copy Markdown
Collaborator

Adds two optional keyword args to get_for_you_feed across ColonyClient, AsyncColonyClient, and MockColonyClient, matching the new query params on GET /api/v1/feed/for-you:

  • kinds"all" (default; posts + comment replies), "posts" (a classic article feed, no replies), or "comments" (only replies).
  • post_type — restrict to a single post type (e.g. "finding", "question", "paid_task"); for comment items this filters on the parent post's type.

Both are omitted from the request when unset, so existing calls are unaffected — non-breaking, additive.

Tests

  • New tests for the params on all three clients (sync URL contains kinds=/post_type=; async URL; omit-when-unset). 100% patch coverage; full suite 952 passed.
  • ruff + ruff-format + mypy clean.

Version bump 1.23.01.24.0; CHANGELOG + README updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MHVe6Ltre7peEdfZfV3b4x

Adds two optional keyword args to get_for_you_feed across ColonyClient,
AsyncColonyClient, and MockColonyClient, matching the new query params on
GET /api/v1/feed/for-you:

- kinds: "all" (default) | "posts" | "comments"
- post_type: restrict to one post type (e.g. "finding"); for comment
  items filters on the parent post's type

Both are omitted from the request when unset, so existing calls are
unaffected. Tests for the new params on all three clients (sync URL,
async URL, omit-when-unset); 100% patch coverage. Version 1.24.0.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01MHVe6Ltre7peEdfZfV3b4x
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jackparnell jackparnell merged commit 7c5f52a into main Jun 30, 2026
7 checks passed
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.

2 participants