Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toot Stream Updates #113

Merged
merged 10 commits into from Mar 14, 2023
Merged

Toot Stream Updates #113

merged 10 commits into from Mar 14, 2023

Conversation

davidgarywood
Copy link
Contributor

@davidgarywood davidgarywood commented Mar 12, 2023

This is a draft PR for discussion over at https://github.com/TootSDK/TootSDK/discussions/104

Specifically this addresses:

✅ How to handle errors of misconfigured parameters if we used generic ones (we check the type of query params supplied and return an error if the wrong type is used)

✅ How to ensure call sites are 'clean'. e.g if you're running on defaults it can look something like: client.data.stream(.timeLineHome)

✅ Ensuring that the TootStream private dictionary where it caches requested streams, has a unique key for the stream type + params.

This does not cover:
How would we like the Mastodon streaming API to interact with TootStream? (I figure this can be a separate PR after this one is discussed/merged!)

⚠️ 🚨 Please only add to this PR's conversation with code review items. Any discussion of approach, please reply over at: https://github.com/TootSDK/TootSDK/discussions/104

Copy link
Contributor

@kkostov kkostov left a comment

Choose a reason for hiding this comment

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

🤩🚀

@davidgarywood davidgarywood marked this pull request as ready for review March 14, 2023 02:38
@davidgarywood davidgarywood merged commit 25683c6 into main Mar 14, 2023
4 checks passed
@davidgarywood davidgarywood deleted the wip/TootStreamUpdates branch March 14, 2023 07:40
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.

None yet

3 participants