about summary refs log tree commit diff
path: root/spec/policies/report_note_policy_spec.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-08-25 17:36:54 +0200
committerGitHub <noreply@github.com>2022-08-25 17:36:54 +0200
commit55bef1e34fc3b07ed7f762d565a161e74e128016 (patch)
treee3720e53dc87a98fcc9b034626ecef1c7fa2a15f /spec/policies/report_note_policy_spec.rb
parent2cae5f5b8d4d0702fe9835a0ce2782f238755d0c (diff)
Fix quickly switching notification filters resulting in empty or incorrect list (#19052)
Follow-up to #18960

The aforementioned PR fixed an issue in which switching notification filters
while notifications were loading prevented the query for the new filter from
running, but another issue remained: if the first query completed after the
second one, its results would override the second one, thus leading to the
same issue.

This commit cancels the first request if it is still running, before issuing
the second one.
Diffstat (limited to 'spec/policies/report_note_policy_spec.rb')
0 files changed, 0 insertions, 0 deletions