Skip to content

refactor(twitter): simplify TwitterInput following NewsInput pattern#2413

Open
Wanbogang wants to merge 3 commits intoOpenMind:mainfrom
Wanbogang:fix/twitter-input-refactor
Open

refactor(twitter): simplify TwitterInput following NewsInput pattern#2413
Wanbogang wants to merge 3 commits intoOpenMind:mainfrom
Wanbogang:fix/twitter-input-refactor

Conversation

@Wanbogang
Copy link
Collaborator

Summary

Refactors TwitterInput to follow the same pattern as NewsInput,
fixing the root cause behind #2411 and several other issues found
during analysis.

Problems Found

Changes

  • Remove Queue, message_buffer, start(), listen() override,
    _query_context(), initialize_with_query()
  • Add poll_interval to TwitterSensorConfig (default: 60s)
  • _poll() fetches API directly with interval guard
  • formatted_latest_buffer() now calls io_provider.add_input()

- Remove Queue, message_buffer, start(), listen() override,
  _query_context(), initialize_with_query() dead code
- Add poll_interval to TwitterSensorConfig for API rate limiting
- _poll() fetches API directly with interval guard
- Add io_provider.add_input() in formatted_latest_buffer()
@Wanbogang Wanbogang requested review from a team as code owners February 23, 2026 04:11
@github-actions github-actions bot added robotics Robotics code changes python Python code tests Test files labels Feb 23, 2026
@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@oholiab0818
Copy link

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python code robotics Robotics code changes tests Test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants