Closed mmhan closed 4 years ago
Background
gem 'trailblazer-rails'
Gemfile.lock
trailblazer (2.1.0) trailblazer-macro (>= 2.1.0, < 2.2.0) trailblazer-macro-contract (>= 2.1.0, < 2.2.0) trailblazer-operation trailblazer-activity (0.11.0) trailblazer-context (>= 0.3.0, < 0.4.0) trailblazer-activity-dsl-linear (0.3.1) trailblazer-activity (>= 0.9.1, < 1.0.0) trailblazer-context (0.3.1) hashie (~> 4.1) trailblazer-developer (0.0.16) hirb representable trailblazer-activity (>= 0.11.0, < 1.0.0) trailblazer-activity-dsl-linear trailblazer-loader (0.1.2) trailblazer-macro (2.1.3) trailblazer-activity (>= 0.10.0, < 1.0.0) trailblazer-activity-dsl-linear (>= 0.2.7, < 1.0.0) trailblazer-operation (>= 0.6.2) trailblazer-macro-contract (2.1.0) reform (>= 2.2.0, < 3.0.0) trailblazer-operation (0.6.2) trailblazer-activity (>= 0.10.0, < 1.0.0) trailblazer-activity-dsl-linear (>= 0.2.6, < 1.0.0) trailblazer-developer (>= 0.0.8) trailblazer-rails (2.1.7) railties (>= 4.0.0) trailblazer (>= 2.1.0.beta1, < 2.2.0) trailblazer-loader (>= 0.1.0)
Error
Running the code run Song::Operation::New triggers the error key not found :context_options with stack trace leading to the following file.
run Song::Operation::New
key not found :context_options
https://github.com/trailblazer/trailblazer-operation/blob/557aa7accc3b1b1f5a92282308332185c609cfea/lib/trailblazer/operation/public_call.rb#L50
Workaround
Adding gem 'trailblazer-context', '0.3.0' resolves the problem
gem 'trailblazer-context', '0.3.0'
@mmhan we have released new gem versions so please remove trailblazer-context and update the TRB gems and try again
trailblazer-context
Thanks. It works now.
Background
gem 'trailblazer-rails'
in the GemfileGemfile.lock
contains thisError
Running the code
run Song::Operation::New
triggers the errorkey not found :context_options
with stack trace leading to the following file.https://github.com/trailblazer/trailblazer-operation/blob/557aa7accc3b1b1f5a92282308332185c609cfea/lib/trailblazer/operation/public_call.rb#L50
Workaround
Adding
gem 'trailblazer-context', '0.3.0'
resolves the problem