coinbase / temporal-ruby

Ruby SDK for Temporal
Apache License 2.0
213 stars 81 forks source link

I cannot access `Temporal. get_workflow_history` directly #301

Open michellewkong opened 1 week ago

michellewkong commented 1 week ago

get_workflow_history can only be accessed by instantiating a specific client such as

client = Temporal::Client.new(config)
result = client.get_workflow_history(namespace: 'ruby-samples', workflow_id: 'user-123', run_id: 'uuid-123')

Since I am configuring Temporal for my entire app in a single place, it would be much easier to access this similar to the way we can also access other client methods such as

Temporal.get_workflow_history(namespace: 'ruby-samples', workflow_id: 'user-123', run_id: 'uuid-123')

This seems like it would be resolved by adding get_workflow_history here https://github.com/coinbase/temporal-ruby/blob/master/lib/temporal.rb#L17