trailblazer / trailblazer-operation

Trailblazer's Operation implementation.
https://trailblazer.to/2.1/docs/operation.html
87 stars 24 forks source link

key not found: :context_options #48

Closed mmhan closed 4 years ago

mmhan commented 4 years ago

Background

    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.

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

emaglio commented 4 years ago

@mmhan we have released new gem versions so please remove trailblazer-context and update the TRB gems and try again

mmhan commented 4 years ago

Thanks. It works now.