Add the autocomplete cache for reaction emoji
What does this MR do and why?
For #474172 (closed)
Adds the AutocompleteCache
in front of a cacheable endpoint (the autocompleteable emoji).
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Testing
Please note that this does not add any tests.
- The filter bar and the filter tokens are tested from the app side
- The
AutocompleteCache
class is tested
Adding any additional tests here would be redundant.
Screenshots or screen recordings
N/a (no visual changes)
How to set up and validate locally
- Enable the
vue_merge_request_list
feature flag in the rails consolerails c
=>Feature.enable( :vue_merge_request_list )
- React to a couple MRs with different emoji
- Navigate to the Merge Request list e.g.
http://gdk.test:3000/[YOUR USERNAME]/[THE PROJECT NAMESPACE]/-/merge_requests
- Begin typing
my-reaction
in the search bar and/or select the My-Reaction filter - Choose
=
- Note how "Recently used" populates with your reactions
- Refresh the list and perform the same steps. This time note that "Recently used" is pre-populated without any delay.
Edited by Thomas Randolph