Problem/Motivation
The 'Display error message' setting in the taxonomy_index_tid views filter ('Has taxonomy term ID') is not used. The functionality that used it, was removed in #2428881: Remove TermAutocompleteController::autocompletePerVid(), without removing the setting. It is now unnecessary clutter in the user interface.
Steps to reproduce
Add the 'Has taxonomy term ID' filter to a view, expose the filter. The setting appears.
Proposed resolution
Remove the setting.
Remaining tasks
Implementation & review.
User interface changes
Removes redundant form element.
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | After Patch 3214554 one.png | 275.32 KB | chetanbharambe |
| #5 | After Patch 3214554.png | 445.72 KB | chetanbharambe |
| #5 | Before Patch 3214554.png | 437.53 KB | chetanbharambe |
| #4 | before_patch.png | 111.14 KB | akhildev.cs |
| #4 | after_patch.png | 111.89 KB | akhildev.cs |
Comments
Comment #2
james.williamsComment #3
james.williamsHere's a patch that removes the setting, and removes it from configuration exports using it. Is a [post-]update hook needed to remove the property from any saved configuration that's using it?
Comment #4
akhildev.cs commentedhi james,
patch #3 applied cleanly and removed settings.
thank you.
Comment #5
chetanbharambe commentedVerified and tested patch #3.
Patch applied successfully and looks good to me.
Testing Steps:
# Goto: admin/structure/views/view/taxonomy_term
# Add Content:Tags under filter criteria
# Click on added tag
# User is able to see "Display Error Message" with checkbox.
Expected Results:
# User should not see "Display Error Message" with the checkbox.
Actual Results:
# Taxonomy views filter Display error message setting is redundant
Note: If "Display Error Message" with a checkbox is removed then still the User is able to see a validation error message which is wrong behaviour.
Can be a move to +1 RTBC
Comment #6
tuuuukka commentedApplied and tested patch #3, works like a charm.
Comment #10
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
Tested again in D10 on the main content view
Adding a filter for tags exposed
Search for a term that doesn't exist I get the error.
Apply the patch
Still get the same results.
Tagging for subsystem maintainer review for their thoughts.
patch will have to be updated for D10 though as it doesn't cleanly apply.