mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 17:23:44 +08:00
82d6420e31
What is the problem? Before this change, we were relying on the `/tags` endpoint which returned all the tags that are visible to a give user on the site leading to potential performance problems. The attribute keys of the response also changes based on the `tags_listed_by_group` site setting. What is the fix? This commit fixes the problems listed above by creating a dedicate `#list` action in the `TagsController` to handle the listing of the tags in the edit navigation menu tags modal. This is because the `TagsController#index` action was created specifically for the `/tags` route and the response body does not really map well to what we need. The `TagsController#list` action added here is also much safer since the response is paginated and we avoid loading a whole bunch of tags upfront. |
||
---|---|---|
.. | ||
components | ||
select-kit | ||
_index.scss | ||
admin_badges.scss | ||
admin_customize.scss | ||
admin_report_counters.scss | ||
admin_report_table.scss | ||
admin_report.scss | ||
admin_reports.scss | ||
alert.scss | ||
buttons.scss | ||
compose.scss | ||
dashboard.scss | ||
directory.scss | ||
discourse.scss | ||
edit-category.scss | ||
emoji.scss | ||
group.scss | ||
header.scss | ||
history.scss | ||
lightbox.scss | ||
login.scss | ||
menu-panel.scss | ||
modal.scss | ||
new-user.scss | ||
personal-message.scss | ||
push-notifications-mobile.scss | ||
reviewables.scss | ||
ring.scss | ||
search.scss | ||
tagging.scss | ||
topic-list.scss | ||
topic-post.scss | ||
topic.scss | ||
upload.scss | ||
user-badges.scss | ||
user.scss |