-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify APIs for the 'autocomplete' and 'select with search' components #9958
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8e17531
Set showAllValues to 'true' whether selecting multiple or single
ChrisBAshton 587b28f
Remove unnecessary 'onConfirm' callback
ChrisBAshton 3fedc51
Add 'lint:prettier:fix' script for applying Prettier
ChrisBAshton 53f6f68
Add new 'include_blank' option for autocomplete module
ChrisBAshton 0eeb160
Remove 'bold' and 'required' label booleans from Needs form
ChrisBAshton 9a496da
Remove unused 'size' property from 'autocomplete' select
ChrisBAshton f641b81
Move 'heading_size' out of 'label' property and into root hash
ChrisBAshton f718e8f
Remove unused `is_page_heading` property
ChrisBAshton 490c1eb
Flatten 'label' property
ChrisBAshton b4840d5
Have 'autocomplete' default `name` to `id` if unspecified
ChrisBAshton a33aa25
Support custom 'data' attributes in 'select with search' component
ChrisBAshton 7504bed
Remove unused 'TaggableContentHelper' methods
ChrisBAshton 0a2f1b7
Change how TaggableContentHelper caches queries
ChrisBAshton b30d180
Add 'multiple' support to SelectWithSearchHelper
ChrisBAshton 92c5a52
Convert `options` to hash of `text`, `value` & `selected`
ChrisBAshton 7013cb6
Convert 'select with search' error properties into error_items
ChrisBAshton 10ef6a3
Add support for 'hint' text for 'autocomplete' component
ChrisBAshton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these queries (this one being a good example) shouldn't really be very slow - if it is it might be a missing index on the translation name. I can very much imagine a MoG change scenario where we put an org live and then have to shell into prod to clear the cache because we can't tag any content to it.
I suppose my question is could we apply the caching a bit more selectively/check we've got the indexes we need? Probably a bit outside the scope of this PR, to be fair
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I suspected as much too. Digging into the commit history (read 0a2f1b7), it looks like some of the cached queries have a significant impact on page load times, so I didn't want to open that can of worms. Would be ripe for a revisit in a future PR though.