osem-fcy/app/views/admin/events
Andrew Kvalheim 04f6a73d73 Add user to cache dependencies of event proposal tab
When fragment caching is enabled—

    --- a/config/environments/test.rb
    +++ b/config/environments/test.rb
    @@ -27 +26,0 @@
    -  config.action_controller.perform_caching = false
    @@ -29 +27,0 @@
    -  config.cache_store = :null_store

—the test of voting fails with:

    expected to find visible css ".rating.bright" … 0 times, found 3 matches
    expected to find visible css ".rating:not(.bright)" … 5 times, found 2 matches
    # ./spec/features/voting_spec.rb:21
    # ./spec/features/voting_spec.rb:21
    # ./spec/features/voting_spec.rb:57

i.e. the vote displayed in the event proposal tab is another user’s
vote, because the fragment’s cache dependencies don’t include the
current user.

resolves #2767
2023-03-01 11:52:16 -08:00
..
_all_events.csv.haml Speaker emails in Events CSV/XLS export is included 2017-11-07 23:02:01 +05:30
_all_events.pdf.prawn exports are made to be wrap_text 2017-11-08 00:49:03 +05:30
_all_events.xlsx.axlsx Add frozen_string_literal magic comment 2018-06-01 09:15:57 -07:00
_all_with_comments.csv.haml Speaker emails in Events CSV/XLS export is included 2017-11-07 23:02:01 +05:30
_all_with_comments.pdf.prawn exports are made to be wrap_text 2017-11-08 00:49:03 +05:30
_all_with_comments.xlsx.axlsx Add frozen_string_literal magic comment 2018-06-01 09:15:57 -07:00
_confirmed_events.csv.haml Speaker emails in Events CSV/XLS export is included 2017-11-07 23:02:01 +05:30
_confirmed_events.pdf.prawn exports are made to be wrap_text 2017-11-08 00:49:03 +05:30
_confirmed_events.xlsx.axlsx Add frozen_string_literal magic comment 2018-06-01 09:15:57 -07:00
_datatable_row.haml Add user to cache dependencies of vote in events index 2023-03-01 11:43:50 -08:00
_datatable_row_rating.haml Clean up rating partials 2018-03-14 18:00:37 -07:00
_export_menu.haml DRY up event export menus 2018-03-14 18:00:37 -07:00
_form.html.haml Refactor proposal forms 2022-05-06 19:02:27 -05:00
_nested_comments.html.haml Retire semantic_form_for 2022-02-24 15:52:34 +01:00
_proposal.html.haml Add user to cache dependencies of event proposal tab 2023-03-01 11:52:16 -08:00
_user_fields.html.haml Changed Ruby syntax in views. Fixed #1326 2017-03-20 18:27:39 +05:30
_voting.html.haml Fix rating_stars parameters in admin/events#show 2018-07-30 12:21:13 -07:00
edit.html.haml Refactor proposal forms 2022-05-06 19:02:27 -05:00
events.csv.haml added events, confirmed events and events with comments export features with xlsx, pdf and csv format 2016-10-19 10:48:58 -04:00
events.pdf.prawn added events, confirmed events and events with comments export features with xlsx, pdf and csv format 2016-10-19 10:48:58 -04:00
events.xlsx.axlsx Add frozen_string_literal magic comment 2018-06-01 09:15:57 -07:00
index.html.haml Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
registrations.html.haml Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
show.html.haml Supports talks without speakers 2019-10-23 14:50:28 +05:30
vote.js.erb Clean up rating partials 2018-03-14 18:00:37 -07:00