-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
* @param any | ||
* @param metadata | ||
*/ | ||
class AnyInvocationContext(val any: ScalaPbAny, metadata: Metadata) extends InvocationContext(null, metadata) { |
There was a problem hiding this comment.
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]]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for byte arrays consumers
There was a problem hiding this 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used?
There was a problem hiding this comment.
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
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
Workflows tests are disabled, but the rest are green