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

Implement SSE #90

Merged
merged 43 commits into from
Dec 6, 2024
Merged

Implement SSE #90

merged 43 commits into from
Dec 6, 2024

Conversation

cdr-chakotay
Copy link
Collaborator

Implement Server Sent Events (SSE) as replacement for socket polling.

This is due to SSE preference from the Transloadit API.

@cdr-chakotay cdr-chakotay added enhancement sdks Integrations for Transloadit's API prio-2 Medium-priority issues that are important but can be addressed after high-priority tasks labels Oct 19, 2023
@Acconut Acconut removed their assignment Jan 11, 2024
@Acconut
Copy link
Member

Acconut commented Jan 11, 2024

Let me know if you need some more assistance here :)

@cdr-chakotay
Copy link
Collaborator Author

Let me know if you need some more assistance here :)

Hey @Acconut thank you for the reminder! I was occupied with other work in the meantime. I would like to continue on this soon. I let you know if I need anything :)

@cdr-chakotay cdr-chakotay requested a review from Acconut September 2, 2024 12:45
Copy link
Member

@Acconut Acconut left a comment

Choose a reason for hiding this comment

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

This PR is looking sharp! I have only a few comments and then we can get this on the road. Congrats on getting this so far 🎉

src/main/java/com/transloadit/sdk/Assembly.java Outdated Show resolved Hide resolved
src/main/java/com/transloadit/sdk/AssemblyListener.java Outdated Show resolved Hide resolved
src/main/java/com/transloadit/sdk/EventsourceRunnable.java Outdated Show resolved Hide resolved
src/main/java/com/transloadit/sdk/EventsourceRunnable.java Outdated Show resolved Hide resolved
src/main/java/com/transloadit/sdk/EventsourceRunnable.java Outdated Show resolved Hide resolved
src/test/resources/__files/sse_response_body Outdated Show resolved Hide resolved
src/test/java/com/transloadit/sdk/AssemblyTest.java Outdated Show resolved Hide resolved
src/test/java/com/transloadit/sdk/AssemblyTest.java Outdated Show resolved Hide resolved
@cdr-chakotay cdr-chakotay requested a review from Acconut November 28, 2024 21:27
Copy link
Member

@Acconut Acconut left a comment

Choose a reason for hiding this comment

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

Thank you very much for the final updates! I have included a few suggestions to improve the documentation's spelling and some other minor comments. Other than that, this is good to go!

src/main/java/com/transloadit/sdk/Assembly.java Outdated Show resolved Hide resolved
src/main/java/com/transloadit/sdk/Assembly.java Outdated Show resolved Hide resolved
src/main/java/com/transloadit/sdk/EventsourceRunnable.java Outdated Show resolved Hide resolved
src/test/java/com/transloadit/sdk/AssemblyTest.java Outdated Show resolved Hide resolved
cdr-chakotay and others added 4 commits December 3, 2024 13:14
 - Change TusUploadRunnable.java and EventsourceRunnable.java visibility to package private
Also attempt to make the test thread safe.
@Acconut Acconut added the breaking change Breaking change that requires a major release label Dec 5, 2024
Copy link
Member

@Acconut Acconut left a comment

Choose a reason for hiding this comment

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

As far as I can tell, all feedback got addressed and the tests are passing. So this PR is good to go 🚀 Congrats on finishing this incredible work 🏅

@cdr-chakotay
Copy link
Collaborator Author

As far as I can tell, all feedback got addressed and the tests are passing. So this PR is good to go 🚀 Congrats on finishing this incredible work 🏅

Thanks! I will do another double-check and merge it then :)

@cdr-chakotay cdr-chakotay merged commit 6f6d41c into main Dec 6, 2024
5 checks passed
@cdr-chakotay cdr-chakotay deleted the Implement_SSE branch December 6, 2024 12:46
@kvz
Copy link
Member

kvz commented Dec 6, 2024

Congrats on landing this 💪💪

we should have a column in the sdks table in the docs: supports SSE :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Breaking change that requires a major release enhancement prio-2 Medium-priority issues that are important but can be addressed after high-priority tasks sdks Integrations for Transloadit's API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants