generated from discourse/discourse-plugin-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
respect tags_sort_alphabetically setting (#19)
* respect tags_sort_alphabetically setting * Fixed linting error Offenses: app/controllers/discourse_preset_topic_composer/preset_tag_groups_controller.rb:17:71: W: [Correctable] Lint/SafeNavigationChain: Do not chain ordinary method call after safe navigation operator. tags = TagGroup.visible(guardian).find_by(name: tag_group)&.tags.order(tag_order) || [] ^^^^^^^^^^^^^^^^^ * DEV: Add tests to ensure that the tags are sorted alphabetically if settings enabled * DEV: lint preset_topic_composer_spec.rb * DEV: change to use ArraySerializer in controller * Update app/controllers/discourse_preset_topic_composer/preset_tag_groups_controller.rb Co-authored-by: Gabriel Grubba <[email protected]> --------- Co-authored-by: Gabriel Grubba <[email protected]> Co-authored-by: Gabriel Grubba <[email protected]>
- Loading branch information
1 parent
44db5f8
commit 4c49bcd
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters