This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Adds Filter Exclusion Name character limit & related UI#13155
Merged
zaggino merged 8 commits intoadobe:masterfrom Mar 7, 2017
bomanimc:exclusion_name_limit_bomanimc
Merged
Adds Filter Exclusion Name character limit & related UI#13155zaggino merged 8 commits intoadobe:masterfrom bomanimc:exclusion_name_limit_bomanimc
zaggino merged 8 commits intoadobe:masterfrom
bomanimc:exclusion_name_limit_bomanimc
Conversation
zaggino
reviewed
Mar 7, 2017
| remainingCharacters | ||
| )); | ||
|
|
||
| if (remainingCharacters < 0) { |
Contributor
There was a problem hiding this comment.
unless i'm at lets say 3/4 of FILTER_NAME_CHARACTER_MAX, $remainingField could be hidden?
zaggino
reviewed
Mar 7, 2017
| if (buttonId === Dialogs.DIALOG_BTN_OK) { | ||
| // Update saved filter preference | ||
| setActiveFilter({ name: $nameField.val(), patterns: getValue() }, index); | ||
| setActiveFilter({ name: $nameField.val().substr(0, FILTER_NAME_CHARACTER_MAX), patterns: getValue() }, index); |
Contributor
There was a problem hiding this comment.
do not do this, OK button should be disabled if $nameField.val() is more than FILTER_NAME_CHARACTER_MAX
…that 75% of the max characters allowed
…is exceeded, rather than truncating characters from exclusion name automatically
Contributor
|
Travis says: Please sign the agreement before I can merge the code. |
Contributor
Author
|
@zaggino Just signed the form! My bad on that. |
Contributor
|
Thanks for the PR @bomanimc , nice work. |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR address issue #13140 by doing the following:
Note: This has one string (for the "characters remaining" text) that is externalized in nls/root.
Questions:
I'm having trouble unit testing this, which I've left out of this PR for now. This is my first time working on the project, and I believe I'm making a mistake causing my unit tests to not be considered when I try to run them from the testing interface. None of the
console.logstatements I've added to my unit test pass through. My process has been: