Tags Controller should skip authentication before autocomplete of tags
The tags_controller uses rails-jquery-autocomplete
with its call to autocomplete
. This essentially adds a controller action autocomplete_tag_name
. However, authentication and authorization is used before all actions, which means that every autocomplete action performs quite a few DB queries: https://sentry.ewi.tudelft.nl/organizations/eip/performance/project-forum:b10a6e1f2ab84c9bb00f26440e3f5d71/?project=6&query=transaction.duration%3A%3C15m+event.type%3Atransaction+%21transaction.op%3Apageload&statsPeriod=24h&transaction=TagsController%23autocomplete_tag_name&unselectedSeries=p100%28%29
There should be a load_and_authorize_resource except: :autocomplete_tag_name
.