osem-fcy/app/views
Andrew Kvalheim 1563881153 Add user to cache dependencies of vote in events index
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 text "Not rated" in "…You voted: 3/5…"
    # ./spec/features/voting_spec.rb:15
    # ./spec/features/voting_spec.rb:13
    # ./spec/features/voting_spec.rb:57

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

re #2767
2023-03-01 11:43:50 -08:00
..
admin Add user to cache dependencies of vote in events index 2023-03-01 11:43:50 -08:00
application Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
booths Fix selectize input defaults 2022-05-06 13:23:51 +02:00
conference_registrations Fix missing fa-stacked-icon function 2022-05-22 00:50:49 +02:00
conferences Fix venue information city/country display 2022-05-20 16:25:38 +02:00
devise Minor fixes 2022-05-20 16:09:31 +02:00
layouts Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
mailbot Send mail on ticket confirmation. 2017-07-26 11:31:19 +05:30
organizations Show code of conduct on organizations 2018-05-08 13:23:00 +02:00
payments Make use of ENV.fetch 2022-05-06 14:53:57 +02:00
physical_tickets Using new accessor for city, country_name, venue name & street 2021-03-06 19:06:36 +01:00
proposals Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
schedules Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
shared Fix selectized users on booth/proposal forms 2022-03-03 16:48:49 +01:00
surveys Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
ticket_purchases Ticket Purchase Index Page 2017-07-06 02:46:53 +05:30
tickets Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
tracks Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
users Retire semantic_form_for 2022-02-24 15:52:34 +01:00