Skip to content

[Refactor] Remove Temporal::Concerns::Payloads#314

Merged
cj-cb merged 12 commits intocoinbase:masterfrom
antstorm:fix-config-deprecation-2
Sep 4, 2024
Merged

[Refactor] Remove Temporal::Concerns::Payloads#314
cj-cb merged 12 commits intocoinbase:masterfrom
antstorm:fix-config-deprecation-2

Conversation

@antstorm
Copy link
Contributor

This PR is a resurrection of #152, that got too far behind the HEAD.

This is the first (but definitely the biggest by far) step to resolving #143. Since the introduction of Temporal::Concerns::Payloads everything that was using it was dependent on the primary singleton configuration. This means that you can't have 2 clients or workers within the same app that are using different configs. The solution is explicitly injectable configuration.

This PR introduces Temporal::ConverterWrapper that has all the functionality of the Temporal::Concerns::Payloads, but is meant to be provided explicitly to the parts of the code that need it. This way there are no hidden dependencies on the global configuration.

Once this is merged, a small number of references to Temporal.configuration will need to be removed and the deprecation warning should go away for good.

@antstorm
Copy link
Contributor Author

Here's the fix for the failing integration specs — #315

@ukd1
Copy link

ukd1 commented Aug 20, 2024

@antstorm there are some fails on the test_examples fyi!

@antstorm
Copy link
Contributor Author

@ukd1 yep, these should be fixed by #315

@antstorm antstorm force-pushed the fix-config-deprecation-2 branch from 12c5fee to 06012f5 Compare September 4, 2024 13:27
@antstorm
Copy link
Contributor Author

antstorm commented Sep 4, 2024

@cj-cb rebased with master without any changes, this should now be good to go

@cj-cb cj-cb merged commit c73a07e into coinbase:master Sep 4, 2024
@antstorm antstorm deleted the fix-config-deprecation-2 branch September 4, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants