- ๐บ๐ธUnited States smustgrave
Moving to NW as @catch requested in #179 what still needs happen (per the IS).
Thanks!
- ๐บ๐ธUnited States xjm
In addition to profiling, we need to rethink whether this table even makes sense as-is anymore. Does it make sense to have this index table? Should it instead be implemented at the entity relationship level in Entity Reference's APIs? Should it use EFQ or an abstracted storage model instead of plain DB queries? Etc. We should answer those questions before rerolling this on and on. Thence the framework and subsystem maintainer review tags.
For now, I think the contrib module is sufficient for the immediate needs of taxonomy-related contrib or custom code. In the long term, IMO we need an entity-reference-level approach.
- ๐บ๐ฆUkraine eugene.brit Kyiv ๐บ๐ฆ
The #185 patch has not applied for 10.0.8
re-roll this patch. - ๐ง๐ชBelgium herved
I also got bit by this issue today.
Similar to #150 when we unpublish a translation, the records in the taxonomy_index table get removed bytaxonomy_node_update()
, even though the original translation is unchanged.
This is an issue in my case when using the "Has taxonomy term ID" contextual filter in views which adds an inner join to the query.
The patch seems to resolve it. - ๐ซ๐ฎFinland joey-santiago
I also got here looking for the bug mentioned in #150: when an unpublished translation of a node is saved, the entry for that is removed from the taxonomy_index table.
In my case, the module Permissions by Term is using the taxonomy_index table to gather all the nodes a user is entitled to view. So suddenly nodes are removed from listings when unpublished translations are saved.From what i have tested, the patch works well. I especially like the fact that the database is updated putting back in place all the entries from unpublished nodes. The patch applies #198 to 10.1 too.
- ๐บ๐ธUnited States RichardDavies Portland, Oregon
Can someone please reroll the patch for Drupal 10.2.0?
- last update
11 months ago Patch Failed to Apply - ๐บ๐ธUnited States RichardDavies Portland, Oregon
@shweta__sharma Thank you, but the patch won't apply for me with 10.2.0:
- ๐ฉ๐ชGermany kreatIL
The patch cannot be applied due to at least one issue: In Version 10.2.x, Line 228 (which corresponds to Line 208 in Version 10.1.x) has been modified. It now reads:
keys(['nid' => $node->id(), 'tid' => $tid, 'status' => $node->isPublished()])
It's important to note that the function is "keys" in Version 10.2.x, as opposed to "key" which was used in Version 10.1.x. - ๐บ๐ธUnited States RichardDavies Portland, Oregon
Updated @shweta__sharma's patch and changed key() to keys(). Patch now cleanly applies for me in 10.2.0.
- last update
11 months ago Build Successful - ๐บ๐ธUnited States tommyddp
Tried the patch for 10.2.x and it applies cleanly for me but does not fix the issue and I still only see published content in my view.
- ๐ฉ๐ชGermany Anybody Porta Westfalica
@quietone, @_nod and others: What do you think about the points made in #197 by @xjm?
I agree with this in general terms, and I think it would be beneficial for the entity system in general. For Taxonomy terms (and other entity types) it might make sense to solve it in contrib with http://drupal.org/project/taxonomy_entity_index
So I'd suggest to maybe close this and instead start with a fresh issue to solve this in general for entities as framework and not for taxonomy terms specifically?