Project

General

Profile

Actions

Bug #24513

closed

React pages don't include Rails url_helpers

Added by Andrew Kofink almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

2018-08-01T14:36:03 [I|app|9f096] Processing by Katello::ReactController#index as HTML
2018-08-01T14:36:03 [I|app|d2559] Current user set to admin (admin)
2018-08-01T14:36:03 [D|app|d2559] Current location set to none
2018-08-01T14:36:03 [D|app|d2559] Current organization set to Default Organization
2018-08-01T14:36:03 [I|app|9f096] Current user set to admin (admin)
2018-08-01T14:36:03 [D|app|9f096] Current location set to none
2018-08-01T14:36:03 [D|app|9f096] Current organization set to Default Organization
2018-08-01T14:36:03 [I|app|9f096] Rendering /home/vagrant/katello/app/views/katello/layouts/react.html.erb
2018-08-01T14:36:04 [I|app|4a550] Rendered /home/vagrant/katello/app/views/dashboard/_content_views_widget.html.erb (11059.4ms)
2018-08-01T14:36:04 [I|app|4a550] Completed 200 OK in 11544ms (Views: 10616.6ms | ActiveRecord: 857.4ms) | |
2018-08-01T14:36:04 [W|app|4a550] user: vagrant | GET /widgets/60 | AVOID eager loading detected | Katello::ContentViewHistory => [:task] | Remove from your finder: :includes => [:task] | Call stack | /home/vagrant/foreman/lib/middleware/telemetry.rb:9:in `call' | /home/vagrant/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call' | /home/vagrant/foreman/lib/middleware/logging_context.rb:23:in `call' | |
2018-08-01T14:36:04 [D|dyn|df97f] ExecutionPlan 6d24dbc5-465f-4738-ad3e-6a97cf5894d4 pending >> planning
2018-08-01T14:36:04 [I|app|d2559] Rendered /home/vagrant/katello/app/views/dashboard/_subscription_widget.html.erb (181.6ms)
2018-08-01T14:36:04 [I|app|d2559] Completed 200 OK in 595ms (Views: 88.2ms | ActiveRecord: 463.4ms) | |
2018-08-01T14:36:04 [I|app|9f096] Rendering layouts/base.html.erb
2018-08-01T14:36:04 [I|app|9f096] Rendered home/_organization_dropdown.html.erb (4.1ms)
2018-08-01T14:36:04 [I|app|9f096] Rendered home/_location_dropdown.html.erb (8.5ms)
2018-08-01T14:36:04 [I|app|9f096] Rendered home/_org_switcher.html.erb (14.9ms)
2018-08-01T14:36:04 [I|app|9f096] Rendered home/_user_dropdown.html.erb (153.9ms)
2018-08-01T14:36:04 [I|app|9f096] Rendered home/_topbar.html.erb (171.7ms)
2018-08-01T14:36:04 [I|app|9f096] Rendered layouts/base.html.erb (416.1ms)
2018-08-01T14:36:04 [I|app|9f096] Rendered /home/vagrant/katello/app/views/katello/layouts/react.html.erb (742.1ms)
2018-08-01T14:36:04 [I|app|9f096] Completed 500 Internal Server Error in 937ms (ActiveRecord: 160.9ms) | |
2018-08-01T14:36:04 [F|app|]
2018-08-01T14:36:04 [F|app|] ActionView::Template::Error (undefined local variable or method `notification_recipients_path' for #<#<Class:0x007f9f22905510>:0x007f9f228edcd0>):
2018-08-01T14:36:04 [F|app|] 13: </ul> | 14: </li> | 15: | 16: <%= mount_react_component('NotificationContainer','#notifications_container',{:url => notification_recipients_path}.to_json) %>
2018-08-01T14:36:04 [F|app|]
2018-08-01T14:36:04 [F|app|] app/views/home/_user_dropdown.html.erb:16:in `_9c5391f673093ecfcbf4c48d4bb13a51' | app/views/home/_topbar.html.erb:21:in `_dd0b722464012631c2e6671a14fdf096' | app/views/layouts/base.html.erb:50:in `block in _310b68e8be387eae7cce71a4041f4a63' | app/views/layouts/base.html.erb:49:in `_310b68e8be387eae7cce71a4041f4a63' | /home/vagrant/katello/app/views/katello/layouts/react.html.erb:14:in `_1d26f380cd4175df84938a7a9d1aa049' | /home/vagrant/katello/app/controllers/katello/react_controller.rb:6:in `index' | app/controllers/concerns/application_shared.rb:15:in `set_timezone' | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller' | lib/middleware/telemetry.rb:9:in `call' | lib/middleware/catch_json_parse_errors.rb:8:in `call' | lib/middleware/logging_context.rb:23:in `call' | /home/vagrant/katello/lib/katello/prevent_json_parsing.rb:12:in `call'


Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #22529: Refactor Template rendering to use a proper rendering serviceClosedTimo GoebelActions
Actions #1

Updated by Andrew Kofink almost 6 years ago

  • Related to Refactor #22529: Refactor Template rendering to use a proper rendering service added
Actions #2

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7589 added
Actions #3

Updated by John Mitsch almost 6 years ago

  • Target version set to Katello 3.9.0
  • Triaged changed from No to Yes
Actions #4

Updated by Andrew Kofink over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF