Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `search' for #<ActiveRecord::Relation [#<Notification id: 2, notification_type: "global", title: "DMP Assistant v3.0 Release / Lancement de l'Assist...", level: "info", body: "<span style=\"font-weight: 400;\">Please be awa #1001

Open
aaronskiba opened this issue Jan 16, 2025 · 1 comment

Comments

@aaronskiba
Copy link
Collaborator

View details in Rollbar: https://app.rollbar.com/a/ualbertalib/fix/item/dmp_assistant/629


NoMethodError: undefined method `search' for #<ActiveRecord::Relation [#<Notification id: 2, notification_type: "global", title: "DMP Assistant v3.0 Release / Lancement de l'Assist...", level: "info", body: "<span style=\"font-weight: 400;\">Please be aware of...", dismissable: true, starts_at: "2022-02-22", expires_at: "2022-03-02", created_at: "2022-02-22 20:12:03.000000000 +0000", updated_at: "2022-03-01 18:26:43.000000000 +0000", enabled: false>, #<Notification id: 3, notification_type: "global", title: "DMP Assistant v3.1.0 Release / Lancement de l'Assi...", level: "info", body: "<span style=\"font-weight: 400;\">Please be aware of...", dismissable: true, starts_at: "2023-02-09", expires_at: "2023-02-22", created_at: "2023-02-02 19:12:54.000000000 +0000", updated_at: "2023-03-07 16:43:16.769308000 +0000", enabled: false>, #<Notification id: 5, notification_type: "global", title: "DMP Assistant v3.2.0 Release / Lancement de l'Assi...", level: "info", body: "<p><span style=\"font-weight: 400;\">The DMP Assista...", dismissable: true, starts_at: "2023-09-28", expires_at: "2023-10-06", created_at: "2023-09-28 19:17:35.529736000 +0000", updated_at: "2024-01-16 17:00:13.545019000 +0000", enabled: false>, #<Notification id: 4, notification_type: "global", title: "DMP Assistant v3.1.0 Release / Lancement de l'Assi...", level: "info", body: "Welcome to version 3.1.0 of the DMP Assistant! In ...", dismissable: true, starts_at: "2023-03-07", expires_at: "2023-03-10", created_at: "2023-03-07 16:51:46.764444000 +0000", updated_at: "2024-01-16 17:00:14.693889000 +0000", enabled: false>, #<Notification id: 6, notification_type: "global", title: "New DMP Template - Researcher Survey and Feedback ...", level: "info", body: "<p><span style=\"font-weight: 400;\">The Data Manage...", dismissable: true, starts_at: "2024-01-16", expires_at: "2024-01-23", created_at: "2024-01-16 16:48:05.427379000 +0000", updated_at: "2024-01-23 15:45:05.582328000 +0000", enabled: false>, #<Notification id: 7, notification_type: "global", title: "New DMP Template - Researcher Survey and Feedback ...", level: "info", body: "<p class=\"p1\"><span class=\"s1\"><em><span style=\"fo...", dismissable: true, starts_at: "2024-01-23", expires_at: "2024-01-30", created_at: "2024-01-23 15:48:47.591956000 +0000", updated_at: "2024-01-30 14:24:28.399904000 +0000", enabled: false>, #<Notification id: 8, notification_type: "global", title: "New DMP Template - Researcher Survey and Feedback ...", level: "info", body: "<p class=\"p1\"><span class=\"s1\"><strong>Final day t...", dismissable: false, starts_at: "2024-01-30", expires_at: "2024-01-31", created_at: "2024-01-30 14:23:56.953594000 +0000", updated_at: "2024-02-01 17:21:39.093091000 +0000", enabled: false>, #<Notification id: 9, notification_type: "global", title: "Upcoming Outage // Prochaine interruption de servi...", level: "warning", body: "<p>Please be aware of an upcoming outage for DMP A...", dismissable: true, starts_at: "2024-05-10", expires_at: "2024-05-15", created_at: "2024-05-10 19:41:16.792370000 +0000", updated_at: "2024-05-14 12:47:18.532393000 +0000", enabled: false>, #<Notification id: 10, notification_type: "global", title: "New Template Availability // Disponibilité d'un no...", level: "info", body: "Due to a technical issue, the new Alliance Simplif...", dismissable: true, starts_at: "2024-05-15", expires_at: "2024-05-20", created_at: "2024-05-15 14:57:29.883306000 +0000", updated_at: "2024-05-16 14:32:39.767527000 +0000", enabled: false>, #<Notification id: 11, notification_type: "global", title: "Maintenance 26 June 2024", level: "info", body: "DMP Assistant is undergoing routine maintenance. W...", dismissable: false, starts_at: "2024-06-26", expires_at: "2024-06-27", created_at: "2024-06-26 15:01:12.565456000 +0000", updated_at: "2024-06-26 19:04:24.144531000 +0000", enabled: false>, ...]>
Did you mean?  each
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/activerecord-6.1.7.9/lib/active_record/relation/delegation.rb", line 110, in method_missing
  File "/var/www/sites/dmp/app/controllers/concerns/paginable.rb", line 132, in refine_query
  File "/var/www/sites/dmp/app/controllers/concerns/paginable.rb", line 73, in paginable_renderise
  File "/var/www/sites/dmp/app/controllers/paginable/notifications_controller.rb", line 11, in index
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actionpack-6.1.7.9/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actionpack-6.1.7.9/lib/abstract_controller/base.rb", line 228, in process_action
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actionpack-6.1.7.9/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actionpack-6.1.7.9/lib/abstract_controller/callbacks.rb", line 42, in block in process_action
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb", line 117, in block in run_callbacks
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/turbo-rails-2.0.5/lib/turbo-rails.rb", line 24, in with_request_id
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/turbo-rails-2.0.5/app/controllers/concerns/turbo/request_id_tracking.rb", line 10, in turbo_tracking_request_id
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actiontext-6.1.7.9/lib/action_text/rendering.rb", line 20, in with_renderer
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actiontext-6.1.7.9/lib/action_text/engine.rb", line 59, in block (4 levels) in <class:Engine>
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb", line 126, in instance_exec
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb", line 137, in run_callbacks
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actionpack-6.1.7.9/lib/abstract_controller/callbacks.rb", line 41, in process_action
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actionpack-6.1.7.9/lib/action_controller/metal/rescue.rb", line 22, in process_action
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/actionpack-6.1.7.9/lib/action_controller/metal/instrumentation.rb", line 34, in block in process_action
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/activesupport-6.1.7.9/lib/active_support/notifications.rb", line 203, in block in instrument
  File "/var/www/sites/dmp/vendor/ruby/3.1.0/gems/activesupport-6.1.7.9/lib/active_support/notifications/instrumenter.r
@lagoan
Copy link
Collaborator

lagoan commented Jan 20, 2025

@aaronskiba will check how often it happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants