Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created May 27, 2021 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Epigene/ee2287cb48cca741cf3560cd4a57b561 to your computer and use it in GitHub Desktop.
Save Epigene/ee2287cb48cca741cf3560cd4a57b561 to your computer and use it in GitHub Desktop.
bullet raise
Bullet::Notification::UnoptimizedQueryError at /api/v2/tiered_pricing_models/11834910-c11f-49bb-b095-23c98acbe51f
=================================================================================================================
> user: augusts
PUT /api/v2/tiered_pricing_models/11834910-c11f-49bb-b095-23c98acbe51f
AVOID eager loading detected
TieredPricingModel => [:account_tiered_pricing_model_template]
Remove from your finder: :includes => [:account_tiered_pricing_model_template]
Call stack
/Users/augusts/Projects/herer-api/spec/requests/tiered_pricing_models_spec.rb:63:in `block (3 levels) in <top (required)>'
/Users/augusts/Projects/herer-api/spec/requests/tiered_pricing_models_spec.rb:121:in `block (6 levels) in <top (required)>'
/Users/augusts/Projects/herer-api/spec/requests/tiered_pricing_models_spec.rb:121:in `block (5 levels) in <top (required)>'
/Users/augusts/Projects/herer-api/spec/spec_helper.rb:106:in `block (3 levels) in <top (required)>'
/Users/augusts/Projects/herer-api/lib/green_bits/launch_darkly.rb:15:in `with_caching'
/Users/augusts/Projects/herer-api/spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'
spec/requests/tiered_pricing_models_spec.rb, line 63
----------------------------------------------------
``` ruby
58 end
59 end
60 end
61
62 describe 'PUT /api/v2/tiered_pricing_models/:uuid' do
> 63 subject { put("/api/v2/tiered_pricing_models/#{uuid}", params: { tiered_pricing_model: params }, headers: headers, as: :json) }
64
65 let(:uuid) { tiered_pricing_model.uuid }
66 let(:name) { tiered_pricing_model.name }
67 let(:tiered_pricing_model) { create(:tiered_pricing_model, location: location) }
68
```
App backtrace
-------------
- spec/requests/tiered_pricing_models_spec.rb:63:in `block (3 levels) in <top (required)>'
- spec/requests/tiered_pricing_models_spec.rb:121:in `block (6 levels) in <top (required)>'
- spec/requests/tiered_pricing_models_spec.rb:121:in `block (5 levels) in <top (required)>'
- spec/spec_helper.rb:106:in `block (3 levels) in <top (required)>'
- lib/green_bits/launch_darkly.rb:15:in `with_caching'
- spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'
Full backtrace
--------------
- uniform_notifier (1.11.0) lib/uniform_notifier/raise.rb:16:in `_out_of_channel_notify'
- uniform_notifier (1.11.0) lib/uniform_notifier/base.rb:22:in `out_of_channel_notify'
- bullet (5.7.6) lib/bullet/notification/base.rb:49:in `notify_out_of_channel'
- bullet (5.7.6) lib/bullet.rb:182:in `block in perform_out_of_channel_notifications'
- bullet (5.7.6) lib/bullet.rb:227:in `block (2 levels) in for_each_active_notifier_with_notification'
- /Users/augusts/.rvm/rubies/ruby-2.2.8/lib/ruby/2.2.0/set.rb:283:in `each_key'
- /Users/augusts/.rvm/rubies/ruby-2.2.8/lib/ruby/2.2.0/set.rb:283:in `each'
- bullet (5.7.6) lib/bullet.rb:225:in `block in for_each_active_notifier_with_notification'
- bullet (5.7.6) lib/bullet.rb:224:in `each'
- bullet (5.7.6) lib/bullet.rb:224:in `for_each_active_notifier_with_notification'
- bullet (5.7.6) lib/bullet.rb:180:in `perform_out_of_channel_notifications'
- bullet (5.7.6) lib/bullet/rack.rb:25:in `call'
- makara (0.4.1) lib/makara/middleware.rb:16:in `call'
- rack-attack (5.4.2) lib/rack/attack.rb:175:in `call'
- warden (1.2.8) lib/warden/manager.rb:36:in `block in call'
- warden (1.2.8) lib/warden/manager.rb:34:in `catch'
- warden (1.2.8) lib/warden/manager.rb:34:in `call'
- rack (2.0.7) lib/rack/conditional_get.rb:38:in `call'
- rack (2.0.7) lib/rack/head.rb:12:in `call'
- actionpack (5.0.7.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
- activesupport (5.0.7.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
- activesupport (5.0.7.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
- activesupport (5.0.7.2) lib/active_support/callbacks.rb:90:in `run_callbacks'
- actionpack (5.0.7.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call'
- actionpack (5.0.7.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
- bugsnag (6.11.1) lib/bugsnag/integrations/rack.rb:46:in `call'
- () Users/augusts/.rvm/gems/ruby-2.2.8@herer/bundler/gems/better_errors-bff72c44c3e0/lib/better_errors/middleware.rb:95:in `protected_app_call'
- () Users/augusts/.rvm/gems/ruby-2.2.8@herer/bundler/gems/better_errors-bff72c44c3e0/lib/better_errors/middleware.rb:90:in `better_errors_call'
- () Users/augusts/.rvm/gems/ruby-2.2.8@herer/bundler/gems/better_errors-bff72c44c3e0/lib/better_errors/middleware.rb:63:in `call'
- actionpack (5.0.7.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
- actionpack (5.0.7.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
- lograge (0.11.2) lib/lograge/rails_ext/rack/logger.rb:15:in `call_app'
- railties (5.0.7.2) lib/rails/rack/logger.rb:24:in `block in call'
- activesupport (5.0.7.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
- activesupport (5.0.7.2) lib/active_support/tagged_logging.rb:26:in `tagged'
- activesupport (5.0.7.2) lib/active_support/tagged_logging.rb:69:in `tagged'
- railties (5.0.7.2) lib/rails/rack/logger.rb:24:in `call'
- request_store (1.4.1) lib/request_store/middleware.rb:19:in `call'
- actionpack (5.0.7.2) lib/action_dispatch/middleware/request_id.rb:24:in `call'
- rack (2.0.7) lib/rack/runtime.rb:22:in `call'
- activesupport (5.0.7.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
- actionpack (5.0.7.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
- actionpack (5.0.7.2) lib/action_dispatch/middleware/static.rb:136:in `call'
- rack (2.0.7) lib/rack/sendfile.rb:111:in `call'
- rack-cors (0.4.1) lib/rack/cors.rb:81:in `call'
- railties (5.0.7.2) lib/rails/engine.rb:522:in `call'
- rack-test (0.6.3) lib/rack/mock_session.rb:30:in `request'
- rack-test (0.6.3) lib/rack/test.rb:244:in `process_request'
- rack-test (0.6.3) lib/rack/test.rb:124:in `request'
- actionpack (5.0.7.2) lib/action_dispatch/testing/integration.rb:334:in `process'
- actionpack (5.0.7.2) lib/action_dispatch/testing/integration.rb:361:in `process_with_kwargs'
- actionpack (5.0.7.2) lib/action_dispatch/testing/integration.rb:33:in `put'
- actionpack (5.0.7.2) lib/action_dispatch/testing/integration.rb:442:in `block (2 levels) in <module:Runner>'
- rails-controller-testing (1.0.4) lib/rails/controller/testing/integration.rb:13:in `block (2 levels) in <module:Integration>'
- spec/requests/tiered_pricing_models_spec.rb:63:in `block (3 levels) in <top (required)>'
- rspec-core (3.8.2) lib/rspec/core/memoized_helpers.rb:317:in `block (2 levels) in let'
- rspec-core (3.8.2) lib/rspec/core/memoized_helpers.rb:157:in `block (3 levels) in fetch_or_store'
- rspec-core (3.8.2) lib/rspec/core/memoized_helpers.rb:157:in `fetch'
- rspec-core (3.8.2) lib/rspec/core/memoized_helpers.rb:157:in `block (2 levels) in fetch_or_store'
- rspec-support (3.8.2) lib/rspec/support/reentrant_mutex.rb:23:in `synchronize'
- rspec-core (3.8.2) lib/rspec/core/memoized_helpers.rb:156:in `block in fetch_or_store'
- rspec-core (3.8.2) lib/rspec/core/memoized_helpers.rb:155:in `fetch'
- rspec-core (3.8.2) lib/rspec/core/memoized_helpers.rb:155:in `fetch_or_store'
- rspec-core (3.8.2) lib/rspec/core/memoized_helpers.rb:317:in `block in let'
- spec/requests/tiered_pricing_models_spec.rb:121:in `block (6 levels) in <top (required)>'
- rspec-expectations (3.8.4) lib/rspec/matchers/built_in/change.rb:373:in `call'
- rspec-expectations (3.8.4) lib/rspec/matchers/built_in/change.rb:373:in `perform_change'
- rspec-expectations (3.8.4) lib/rspec/matchers/built_in/change.rb:94:in `perform_change'
- rspec-expectations (3.8.4) lib/rspec/matchers/built_in/change.rb:52:in `does_not_match?'
- rspec-expectations (3.8.4) lib/rspec/expectations/handler.rb:78:in `does_not_match?'
- rspec-expectations (3.8.4) lib/rspec/expectations/handler.rb:72:in `block in handle_matcher'
- rspec-expectations (3.8.4) lib/rspec/expectations/handler.rb:27:in `with_matcher'
- rspec-expectations (3.8.4) lib/rspec/expectations/handler.rb:70:in `handle_matcher'
- rspec-expectations (3.8.4) lib/rspec/expectations/expectation_target.rb:78:in `not_to'
- rspec-expectations (3.8.4) lib/rspec/expectations/expectation_target.rb:106:in `not_to'
- spec/requests/tiered_pricing_models_spec.rb:121:in `block (5 levels) in <top (required)>'
- rspec-core (3.8.2) lib/rspec/core/example.rb:257:in `instance_exec'
- rspec-core (3.8.2) lib/rspec/core/example.rb:257:in `block in run'
- rspec-core (3.8.2) lib/rspec/core/example.rb:503:in `block in with_around_and_singleton_context_hooks'
- rspec-core (3.8.2) lib/rspec/core/example.rb:460:in `block in with_around_example_hooks'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:464:in `block in run'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:604:in `block in run_around_example_hooks_for'
- rspec-core (3.8.2) lib/rspec/core/example.rb:345:in `call'
- rspec-core (3.8.2) lib/rspec/core/example.rb:345:in `call'
- rspec-rails (3.8.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
- rspec-core (3.8.2) lib/rspec/core/example.rb:450:in `instance_exec'
- rspec-core (3.8.2) lib/rspec/core/example.rb:450:in `instance_exec'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:373:in `execute_with'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for'
- rspec-core (3.8.2) lib/rspec/core/example.rb:345:in `call'
- rspec-core (3.8.2) lib/rspec/core/example.rb:345:in `call'
- spec/spec_helper.rb:106:in `block (3 levels) in <top (required)>'
- lib/green_bits/launch_darkly.rb:15:in `with_caching'
- spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'
- rspec-core (3.8.2) lib/rspec/core/example.rb:450:in `instance_exec'
- rspec-core (3.8.2) lib/rspec/core/example.rb:450:in `instance_exec'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:373:in `execute_with'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for'
- rspec-core (3.8.2) lib/rspec/core/example.rb:345:in `call'
- rspec-core (3.8.2) lib/rspec/core/example.rb:345:in `call'
- webmock (3.11.2) lib/webmock/rspec.rb:37:in `block (2 levels) in <top (required)>'
- rspec-core (3.8.2) lib/rspec/core/example.rb:450:in `instance_exec'
- rspec-core (3.8.2) lib/rspec/core/example.rb:450:in `instance_exec'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:373:in `execute_with'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for'
- rspec-core (3.8.2) lib/rspec/core/example.rb:345:in `call'
- rspec-core (3.8.2) lib/rspec/core/example.rb:345:in `call'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:607:in `run_around_example_hooks_for'
- rspec-core (3.8.2) lib/rspec/core/hooks.rb:464:in `run'
- rspec-core (3.8.2) lib/rspec/core/example.rb:460:in `with_around_example_hooks'
- rspec-core (3.8.2) lib/rspec/core/example.rb:503:in `with_around_and_singleton_context_hooks'
- rspec-core (3.8.2) lib/rspec/core/example.rb:254:in `run'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:633:in `block in run_examples'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:629:in `map'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:629:in `run_examples'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:595:in `run'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `block in run'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `map'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `run'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `block in run'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `map'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `run'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `block in run'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `map'
- rspec-core (3.8.2) lib/rspec/core/example_group.rb:596:in `run'
- rspec-core (3.8.2) lib/rspec/core/runner.rb:116:in `block (3 levels) in run_specs'
- rspec-core (3.8.2) lib/rspec/core/runner.rb:116:in `map'
- rspec-core (3.8.2) lib/rspec/core/runner.rb:116:in `block (2 levels) in run_specs'
- rspec-core (3.8.2) lib/rspec/core/configuration.rb:2008:in `with_suite_hooks'
- rspec-core (3.8.2) lib/rspec/core/runner.rb:111:in `block in run_specs'
- rspec-core (3.8.2) lib/rspec/core/reporter.rb:74:in `report'
- rspec-core (3.8.2) lib/rspec/core/runner.rb:110:in `run_specs'
- rspec-core (3.8.2) lib/rspec/core/runner.rb:87:in `run'
- rspec-core (3.8.2) lib/rspec/core/runner.rb:71:in `run'
- rspec-core (3.8.2) lib/rspec/core/runner.rb:45:in `invoke'
- rspec-core (3.8.2) exe/rspec:4:in `<top (required)>'
- () Users/augusts/.rvm/gems/ruby-2.2.8@herer/bin/rspec:23:in `load'
- () Users/augusts/.rvm/gems/ruby-2.2.8@herer/bin/rspec:23:in `<main>'
- () Users/augusts/.rvm/gems/ruby-2.2.8@herer/bin/ruby_executable_hooks:22:in `eval'
- () Users/augusts/.rvm/gems/ruby-2.2.8@herer/bin/ruby_executable_hooks:22:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment