Discourse Custom Wizard main does not work on tests-passed

Discourse Custom Wizard either has a bug, or is incompatible with the Discourse commit linked below.

Time: 2024-07-02T00:11:36+00:00
Message: ci / backend_tests has failed: Process completed with exit code 1.

Discourse

Branch: tests-passed
SHA:

Plugin

Branch: main
SHA:

Details

See Preventing accidental serialization of ActiveRecord models - Developer Guides - Discourse Meta

  1) CustomWizard::Action updates a profile
     Failure/Error: raise BlockedSerializationError.new(message)
     
     ActiveRecordSerializationSafety::BlockedSerializationError:
       Serializing ActiveRecord models (Upload) without specifying fields is not allowed. Use a Serializer, or pass the :only option to #serializable_hash. More info: https://meta.discourse.org/t/-/314495
     # ./lib/freedom_patches/active_record_disable_serialization.rb:15:in `serializable_hash'
     # ./plugins/discourse-custom-wizard/spec/components/custom_wizard/action_spec.rb:176:in `block (2 levels) in <main>'
     # ./spec/rails_helper.rb:513:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:503:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:460:in `block (2 levels) in <top (required)>'

  2) CustomWizard::Wizard with subscription and restart upon revisit returns to step 1 if option to clear submissions on each visit is set
     Failure/Error: raise BlockedSerializationError.new(message)
     
     ActiveRecordSerializationSafety::BlockedSerializationError:
       Serializing ActiveRecord models (User) without specifying fields is not allowed. Use a Serializer, or pass the :only option to #serializable_hash. More info: https://meta.discourse.org/t/-/314495
     # ./lib/freedom_patches/active_record_disable_serialization.rb:15:in `serializable_hash'
     # ./plugins/discourse-custom-wizard/spec/components/custom_wizard/wizard_spec.rb:233:in `block (3 levels) in <main>'
     # ./spec/rails_helper.rb:513:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:503:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:460:in `block (2 levels) in <top (required)>'

Fixed in

1 Like

Discourse Custom Wizard has recovered from this issue.