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

chore: consuming and producing without proto desc SDK changes #69

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

aludwiko
Copy link
Contributor

@aludwiko aludwiko commented Dec 6, 2024

Workflows tests are disabled, but the rest are green

* @param any
* @param metadata
*/
class AnyInvocationContext(val any: ScalaPbAny, metadata: Metadata) extends InvocationContext(null, metadata) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just a temporary solution, before I refactor commandHandler/methodInvokers

def contentTypesFor(clz: Class[_]): List[String] =
lookupTypeHint(clz).allTypeHints.map(JsonContentTypePrefix + _)
def contentTypesFor(clz: Class[_]): List[String] = {
if (clz == classOf[Array[Byte]]) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

for byte arrays consumers

Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -9,6 +9,7 @@
import akkajavasdk.components.workflowentities.*;
import akkajavasdk.components.workflowentities.hierarchy.TextWorkflow;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Disabled;
Copy link
Member

Choose a reason for hiding this comment

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

not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I will remove it in the next PR

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -24,30 +25,28 @@ private[impl] class ReflectiveConsumerRouter[A <: Consumer](
ignoreUnknown: Boolean)
extends ConsumerRouter[A](consumer) {
Copy link
Member

Choose a reason for hiding this comment

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

In a separate PR you could try to remove ConsumerRouter. I don't think we need both ConsumerRouter and ReflectiveConsumerRouter

@aludwiko aludwiko merged commit 75b2a5b into java-spi Dec 9, 2024
22 checks passed
@aludwiko aludwiko deleted the consumers-producers-without-proto-desc branch December 9, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants