Follow-up to #2348007: Taxonomy term view needs status filter
Problem/Motivation
In #2348007-36: Taxonomy term view needs status filter @alexpott said
taxonomy_select_nodes()has no usages - we should (in a followup) either write a test for it or remove it.
According to https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/f... in D7 only taxonomy_term_feed() and taxonomy_term_page() are using this function. Both of these functions are removed in #1857256: Convert the taxonomy listing and feed at /taxonomy/term/%term to Views
Proposed resolution
Remove it
Remaining tasks
Review it.
Commit it
User interface changes
None
API changes
None
Beta phase evaluation
| Issue category | Task because it is removing dead code. |
|---|---|
| Issue priority | Normal because it doesn't affect anything |
| Unfrozen changes | Unfrozen because it only removes dead code. |
| Prioritized changes | The main goal of this issue is removing previously deprecated code. |
| Disruption | None |
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2384583-remove-taxonomy_select_nodes-5.patch | 3.13 KB | jibran |
| #5 | interdiff.txt | 1.15 KB | jibran |
Comments
Comment #1
larowlanNeeds a change notice first, but then RTBC
Comment #2
jibranThis function should be removed in #1857256: Convert the taxonomy listing and feed at /taxonomy/term/%term to Views so added to Core listings converted to views change notice.
Comment #3
larowlanhot dog!
Comment #4
webchickThis change is explicitly allowed in https://www.drupal.org/contribute/core/beta-changes, and searching the change listings for "taxonomy_select_nodes" brings up https://www.drupal.org/node/2084727 so we're good to go on the change record.
However, there's one other instance of this function after the patch:
Those docs in taxonomy.module need to be updated.
Comment #5
jibranThank you for looking at it @webchick. Sorry I missed the docs. Here is the updated patch. In #2348007: Taxonomy term view needs status filter we added a new status column to
taxonomy_indextable so I updated the docs to accommodate that change as well.Comment #6
alexpottThis change is not unfrozen - but removing dead, untested code is prioritised so is allowed. We should have an additional change record detailing the removal of this function as contrib might be relying on it.
Comment #7
jibranCreated
taxonomy_select_nodesfunction has been removed for #6. Please improve.Comment #8
alexpottSorry I was wrong in #6 - the existing CR is enough.
Comment #9
alexpottComment #10
alexpottCommitted 0a301aa and pushed to 8.0.x. Thanks!
Thanks for adding the beat evaluation to the issue summary.
Comment #12
jhedstromThe change notice mentioned in #7 either doesn't exist, or is unpublished (I get a 404).