Skip to content

fix(twitter): add advanced_search/_all aliases on TweetsClient (SCR-52)#8

Merged
0xGhostCasper merged 1 commit into
mainfrom
fix/scr-52-advanced-search-alias
Jun 30, 2026
Merged

fix(twitter): add advanced_search/_all aliases on TweetsClient (SCR-52)#8
0xGhostCasper merged 1 commit into
mainfrom
fix/scr-52-advanced-search-alias

Conversation

@0xGhostCasper

Copy link
Copy Markdown
Member

What

Second half of SCR-52. A customer hit AttributeError: 'TweetsClient' object has no attribute 'advanced_search' — they called the REST endpoint name (/v1/twitter/tweets/advanced_search) on the SDK, where the method is search() / search_all().

Adds thin delegating aliases advanced_search / advanced_search_all so the endpoint-named call just works. No logic duplication — they call straight through to search / search_all.

Test

  • tests/test_twitter_tweets_aliases.py — asserts both aliases hit /v1/twitter/tweets/advanced_search and return parsed tweets. 16 twitter/pagination tests pass; ruff clean.

Part of SCR-52 (the repeat-page half shipped in #7).

Customers called client.twitter.tweets.advanced_search(...) (the REST
endpoint name) and hit AttributeError — the SDK method is search()/search_all().
Add thin delegating aliases so the endpoint-named call works.
@0xGhostCasper
0xGhostCasper merged commit 54b24c5 into main Jun 30, 2026
6 checks passed
@0xGhostCasper
0xGhostCasper deleted the fix/scr-52-advanced-search-alias branch June 30, 2026 19:36
@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!

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