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

Define our own workflow service for the UI. #188

Merged
merged 2 commits into from
Jul 20, 2022
Merged

Define our own workflow service for the UI. #188

merged 2 commits into from
Jul 20, 2022

Conversation

robholland
Copy link
Collaborator

What was changed

Added a new WorkflowService definition, with a different package name to the Temporal API workflow service. Stop build the duplicated types from the main api repo and simply refer to them as required from the new service.

Why?

To avoid re-registering all the protobuf and Go types and having a different definition for the WorkflowService to that in the upstream API.

Checklist

  1. Closes #80

  2. How was this tested:
    Adjusted temporalite repo to use this fork of the ui-server code and confirmed that go run ... works without panicing.

  3. Any docs updates needed?
    Nope.

Don't replicate all of the protobuf and types, this makes it impossible to
embed the UI server alongside any code referring to Temporal server as they
both try and register the protobuf types causing Go to panic.
@robholland robholland requested a review from feedmeapples July 20, 2022 13:25
@robholland
Copy link
Collaborator Author

Hmm, testing locally. This isn't quite ready yet.

Otherwise the handler expects to find the temporal.ui.WorkflowService on Temporal's side.
@robholland
Copy link
Collaborator Author

Fixed. Re-using the name for the service and building only the service works fine.

@robholland robholland requested a review from feedmeapples July 20, 2022 15:48
@robholland robholland merged commit f8ded86 into main Jul 20, 2022
@robholland robholland deleted the rh-protobuf branch July 20, 2022 16:01
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.

[Bug] Duplicate proto types registered when importing ui-server and go.temporal.io/server in same module
3 participants