This might already be a bug, but I couldn't find it.
At any rate, when you do so, you get this little piece of loveliness:
"PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '7x.taxonomy_term_node' doesn't exist: SELECT COUNT(*) AS expression FROM {node} n INNER JOIN {users} u ON n.uid = u.uid INNER JOIN {taxonomy_term_node} tn0 ON n.nid = tn0.nid WHERE (tn0.tid = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 1 ) in PagerDefault->execute() (line 86 of /Users/webchick/Sites/drupal/includes/pager.inc)."
This appears to be yet another critical error that testing bot isn't finding, since I'm pretty sure we have test coverage for this area of the code. If not, let's make sure we add some. ;)
Comment | File | Size | Author |
---|---|---|---|
#6 | 609140_rewrite_taxonomy_term_node.patch | 9.91 KB | mcarbone |
Comments
Comment #1
timalsina CreditAttribution: timalsina commentedYes, I am also having this issue on latest build (11/20/09). The testing bot isn't finding it.
Comment #2
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commented+1
I can reproduce the same here with latest build.
Comment #3
mcarbone CreditAttribution: mcarbone commentedLooks like there are several outdated references to taxonomy_term_node, which after #412518: Convert taxonomy_node_* related code to use field API + upgrade path is no longer of our world.
Comment #4
mcarbone CreditAttribution: mcarbone commentedComment #5
mcarbone CreditAttribution: mcarbone commentedTwo things:
1) We can use the denormalized taxonomy_index table to rewrite these.
2) Two of these have already been handled by #610022: Taxonomy Tokens: Fix old queries, so we only have to fix the first three.
Assigning to myself to take these on.
Comment #6
mcarbone CreditAttribution: mcarbone commentedPatch rewrites the outdated queries, fixes a couple of small bugs involving advanced search by terms that popped up along the way, and adds tests for filtering by terms when searching, and on the content administration page.
Comment #7
Dries CreditAttribution: Dries commentedThis looks great, and comes with tests. Marking RTBC. Will commit later today unless someone objects.
Comment #8
webchickNope; looks great here, too.
Committed to HEAD.