Skip to content

Add an interceptor for listExecutions #2524

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

@Quinn-With-Two-Ns Quinn-With-Two-Ns commented May 14, 2025

Add an interceptor for listExecutions

closes #2328

@Quinn-With-Two-Ns Quinn-With-Two-Ns marked this pull request as ready for review May 16, 2025 00:02
@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner May 16, 2025 00:02
@@ -11,14 +11,14 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

class ListWorkflowExecutionIterator
public class ListWorkflowExecutionIterator
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be public to support the interceptor? In .NET for example we felt there was no need to expose the underlying machinery of list workflows because creating an async iterator (or Java stream) should be easy enough if they must completely replace the logic and not just delegate to the next interceptor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ideally no, the problem is the RootWorkflowClientInvoker.java is in internal so it can't be private, moving this class causes a lot of other issues

Copy link
Member

Choose a reason for hiding this comment

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

moving this class causes a lot of other issues

Hrmm. I wonder making public and moving from io.temporal.client to io.temporal.client.internal would make sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me try, I think I had some issue doing that since some other classes in io.temporal.client also have Iterators

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.

Add an interceptor for listExecutions
2 participants