Problem/Motivation

Deletion of a taxonomy field from a content type leaves references to affected nodes in taxonomy_index, which results in vocabulary terms remaining attached to those nodes.

Steps to replicate:

  1. Go to admin/structure/taxonomy/tags and add a new term.
  2. Go to admin/structure/types and add a new content type.
  3. On the “Manage fields” tab for the new content type, add a new term reference field using the select widget. Save and select the “tags” vocabulary on the field settings form.
  4. Go to node/add and add a node of the content type created in Step #2. Select the term you added in Step #1 in the field from Step #3 and save.
  5. Go to admin/structure/types and click on the "Manage fields" tab.
  6. Delete the term reference field created in Step #3.
  7. Go to admin/structure/taxonomy/tags and click on the tag created in Step #1.
  8. Observe that the node from Step #4 is still listed, despite that the field containing this term was removed from the content type.

Expected behaviour
You are given the message "If you have any content left in this field, it will be lost. This action cannot be undone." indicating that any tags given to content of this content type will be removed.

Actual behaviour
Content remains tagged with the vocabulary despite not having the field any more. These can be removed by readding the term reference field, removing the tags for the content and then removing the field again.

Proposed resolution

Deleting references by vocabulary is complicated by the potential for data loss if two taxonomy fields on a content type reference the same vocabulary. Proposed resolution is to clear and rebuild taxonomy_index. This may cause slowdown on large sites; suggested that it should run through Queue API.

Remaining tasks

This issue is currently waiting on a patch in #89181: Use queue API for node and comment, user, node multiple deletes.

User interface changes

Warning message noting the potential delay in taxonomy re-indexing and a link to cron for immediate rebuild if desired.

CommentFileSizeAuthor
#90 interdiff_88-90.txt3.51 KBvsujeetkumar
#90 1065814-90.patch4.62 KBvsujeetkumar
#88 interdiff_86-88.txt967 bytesravi.shankar
#88 1065814-88.patch3.41 KBravi.shankar
#86 1065814-86.patch3.41 KBMedha Kumari
#85 patch doesnt apply.png653.71 KBameymudras
#84 interdiff_83-84.txt604 bytespooja saraah
#84 1065814-84.patch14.77 KBpooja saraah
#83 interdiff-81-83.txt955 bytesRassoni
#83 1065814-83.patch14.76 KBRassoni
#81 interdiff-78-81.patch14.81 KBRassoni
#81 1065814-81.patch15 KBRassoni
#79 interdiff_77-78.txt898 bytesranjith_kumar_k_u
#79 1065814-78.patch3.4 KBranjith_kumar_k_u
#77 interdiff_76-77.txt898 bytesranjith_kumar_k_u
#77 1065814-77.patch3.41 KBranjith_kumar_k_u
#76 interdiff_74-75.txt2.77 KBpooja saraah
#76 1065814-75.patch3.39 KBpooja saraah
#74 reroll_diff_52-74.txt4.75 KBpooja saraah
#74 1065814-74.patch3.44 KBpooja saraah
#52 vocab_terms_remain-1065814-52.patch3.5 KBAlbert Volkman
#52 interdiff.txt1.68 KBAlbert Volkman
#45 vocab_terms_remain-1065814-45.patch3.36 KBAlbert Volkman
#45 interdiff.txt2.03 KBAlbert Volkman
#43 vocab_terms_remain-1065814-43.patch3.36 KBAlbert Volkman
#43 interdiff.txt1.15 KBAlbert Volkman
#41 vocab_terms_remain-1065814-41.patch3.42 KBAlbert Volkman
#34 1065814-34-tests.patch2.03 KBxjm
#34 1065814-34-combined.patch3.34 KBxjm
#9 1065814-taxonomy_field_instance_delete.patch1.28 KBfranz
#6 1065814-taxonomy_field_instance_delete.patch1.08 KBfranz
#2 1065814-taxonomy_field_instance_delete.patch955 bytesfranz

Issue fork drupal-1065814

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

franz’s picture

Need to implement hook_field_delete_instance()

Patch coming...

franz’s picture

This is not simple, actually.

When using default taxonomy_index to store the relationship (which is default), the field instance is not in any way stored as well. So when deleting a field instance, it is only possible to determine which rows to delete by collecting all tids from the vocabulary specified by the term reference field.

The only edge case that would cause unexpected results would be the one in which you have 2 fields referencing terms from the same vocabulary. Although stupid, it needs attention, consider this scenario:

1) Dev1 creates complex content type with term_reference Field1 referencing Tags vocabulary
2) Dev2 is a stupid dev that added another term_reference Field2 also referencing Tags
3) Content is added (let's say Field2 is ignored).
4) Someone gets annoyed by Field2 and proceed to remove it. This might cause data from Field1 to be deleted as well.

I think a good solution would be to not allow 2 fields to reference the same vocabulary on the same bundle (nodetype).

Patch implements removal of entries on taxonomy_index table only.

franz’s picture

Status: Active » Needs review
franz’s picture

Version: 7.0 » 8.x-dev
Component: field system » taxonomy.module
Issue tags: +Needs tests, +Needs backport to D7

Status: Needs review » Needs work

The last submitted patch, 1065814-taxonomy_field_instance_delete.patch, failed testing.

franz’s picture

Status: Needs work » Needs review
FileSize
1.08 KB

I was trying to access field info in a field instance array. Fixed

joachim’s picture

Status: Needs review » Needs work

> I think a good solution would be to not allow 2 fields to reference the same vocabulary on the same bundle (nodetype).

I disagree -- one of the reasons http://drupal.org/project/content_taxonomy was so popular was that it allowed this, so there's obviously use cases for it.

joachim’s picture

I think the better solution would be to clear taxonomy_index for the affected nodes and rebuild it.

franz’s picture

Status: Needs work » Needs review
FileSize
1.28 KB

@joachim, I had a misunderstanding, I didn't knew taxonomy_index was only to speed up while the values were really into proper field storage. However, the patch attached above does only delete the values from taxonomy_index based on vocabulary settings. Except it was missing an execute().

But I changed the logic completely to include a rebuild, so now, as far as I tested (several setups) index is being kept consistent. However, maybe this could be improved in terms of performance.

franz’s picture

In short terms, I ended up implementing suggestion in #8

franz’s picture

And it needs to be better documented as well...

marcingy’s picture

Surely this has to be batch operation as doing it inline on a large site could potentially result in 1000s of items being updated. Maybe queue api could be utilised to do this batch processing. It is really a variation on this issue in some ways #89181: Use queue API for node and comment, user, node multiple deletes although by no means a duplicate but the discussions there might help with coming up with a robust solution.

marcingy’s picture

Status: Needs review » Needs work

duplicate post

franz’s picture

Since this data doesn't need to be critically updated, I think using a Queue and letting it run on cron sounds a good idea.

franz’s picture

Or maybe it makes sense to just run the batch at that time so that the admin deleting the field would be confident that data is consistent.

marcingy’s picture

That could take for ever on tha large site and if the browser dies the batch won't complete.

franz’s picture

ok, Queue sounds better, along with a warning message explaining it, like "Taxonomy index needs rebuilding to reflect the changes. A job has been scheduled to do so. If you want to rebuild it right away, run cron (link)" I'll give it a shot later (need to educate myself properly about Queue API).

franz’s picture

We may use a better summary as well.

franz’s picture

Assigned: Unassigned » franz

if the browser dies the batch won't complete.

Are you sure about this? I just checked, and batch implements the Queue API.

Otherwise, I'm still confused with Queue API, should we make use of SystemQueue or create a new one?

marcingy’s picture

Batch api runs in a browser session by default and triggers based on ajax, there is no queue involved at all simply a sandboxed form post.

franz’s picture

    // Move operations to a job queue. Non-progressive batches will use a
    // memory-based queue.
    foreach ($batch['sets'] as $key => $batch_set) {
      _batch_populate_queue($batch, $key);
    }

from http://api.drupal.org/api/drupal/includes--form.inc/function/batch_proce...

Also there is http://api.drupal.org/api/drupal/includes--batch.queue.inc/7 and plenty of queue calls during batch execution.

If that's not Batch using Queue then there is a bunch of confusion in docs or in my head. =)

marcingy’s picture

It depends on how you are calling the batch process if do anything via drupal_form_submit progressive will be set to false and the batch will not utilise the queue. Also if look at node_access_rebuild it calls batch_set which results in a memory queue being used for the batch process. In a similar way user_cancel also populates a memory queue. So the operations in question are not persisted to the database - there might be a way around it but core doesn't seem to utilise it on interactive screens.

franz’s picture

I've submitted a patch in in #89181: Use queue API for node and comment, user, node multiple deletes. If that gets implemented, this issue will be easily fixed, and in a consistent way.

Caligan’s picture

Revised issue summary.

xjm’s picture

I discovered today that this issue has pretty serious implications for TAC. (And yay for summary that helped me figure this out quickly!) Scenario:

  1. There is a term that denies access to nodes for anonymous users.
  2. The site admin adds a field containing this term on several content types.
  3. The site admin later decides access control is no longer needed on a particular content type, and so removes the field from that content type.
  4. Access to the nodes that were tagged with the term is still denied to anonymous users.

There is absolutely nothing the site admin can do to fix it. Editing the node doesn't have any effect. Rebuilding permissions is no help because as far as the database is concerned, the node is still tagged. The user's only options are to either delete records from the database manually, or to delete the old term and update every single node in content types that still use the old term with a new one.

Based on this, I'm not sure if "on cron" is soon enough, although it's certainly better than nothing. However, if a batch is available for the queue, TAC could probably implement the same hook and set a message asking the user to run the batch, à la node_access_needs_rebuild(). That way it would still be a background thing on a majority of sites where it doesn't matter, but modules that need a faster turnaround for taxonomy changes could prompt the admin to fix it.

Also, we are already updating the index en masse when a taxonomy term or vocabulary is deleted. I guess the difference is explained in #2. But instead of loading all those nodes, couldn't we run a query before removing the data, to find out which node/term combinations should be removed and which are duplicated by different fields?

joachim’s picture

I've had a thought about how this is all working.

On D6, I am pretty sure that removing a vocabulary's association to a node type would leave all the data in term_node for nodes of that type intact.

The difference presumably would have been that when something like TAC asked if node X had term Y, the first filter would be checking the vocabs that apply to its type.

Can someone confirm this?

If it's the case, perhaps it's that step that's missing here rather than the data clean-up?

joachim’s picture

I've had a thought about how this is all working.

On D6, I am pretty sure that removing a vocabulary's association to a node type would leave all the data in term_node for nodes of that type intact.

The difference presumably would have been that when something like TAC asked if node X had term Y, the first filter would be checking the vocabs that apply to its type.

Can someone confirm this?

If it's the case, perhaps it's that step that's missing here rather than the data clean-up?

franz’s picture

+1 for the awesome summary.

@xjm, do you confirm that the current patch works for that case? The logic should be the same, but we're waiting so that we can implement a queue job. I don't think it's still a problem, as long as site admin gets a message explaining that he needs to run the cron to rebuild the data.

Also, if you can hop in #89181: Use queue API for node and comment, user, node multiple deletes to help there, we can resume the work needed here.

xjm’s picture

Issue tags: +Novice

Can someone test Damien's patch in #687180-44: Deleting a taxonomy vocabulary leaves term reference fields still pointing to it, and a PDO Exception when creating content with the steps to reproduce in the summary and see if it resolves this issue?

Tagging as novice for this testing.

xjm’s picture

Issue tags: +Needs manual testing

And tagging for manual testing.

xjm’s picture

Issue summary: View changes

Updated issue summary.

aLearner’s picture

Issue summary: View changes

Updated issue summary.

aLearner’s picture

Issue summary: View changes

Updated issue summary.

aLearner’s picture

Issue summary: View changes

Updated issue summary.

aLearner’s picture

Assigned: franz » aLearner

I'm on it, xjm. Thank you for all your help in updating the 'Steps to Replicate' in the 'Issue Summary'. Does the update look OK?

Per your instructions in Comment # 51 of the following thread

http://drupal.org/node/687180

I'm proceeding to test if the patch referenced there resolves this issue. Thanks again.

aLearner’s picture

Test

Here are the steps I took to test the patch:

[1] Downloaded and installed patch

http://drupal.org/files/687180-taxonomy-field-cleanup.patch

on a fresh install of D8.

[2] Ran through steps in the section titled 'Updated Steps to Replicate'.

[3] Observed that the same bug still exists.

Result

The patch

http://drupal.org/files/687180-taxonomy-field-cleanup.patch

does not fix this issue.

aLearner’s picture

Issue summary: View changes

Updated issue summary.

xjm’s picture

Assigned: aLearner » xjm
Issue tags: -Needs manual testing

Thanks aLearner!

I'll write an automated test that demonstrates the bug.

xjm’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
FileSize
3.34 KB
2.03 KB

Looks like the patch still needs work, even aside from the bulk operation question. Scenario:

  1. Create two fields that use the same vocabulary.
  2. Create three taxonomy terms in that vocabulary.
  3. Create a node that has terms 1 and 2 in the first field, and terms 2 and 3 in the second.
  4. Delete the second field.

The result with the patch applied is that there are no index entries for this node.

Attached test demonstrates the bug in the original post; the combined patch demonstrates the issue with #9. Sending the bot to demonstrate the fails.

xjm’s picture

Assigned: xjm » Unassigned
xjm’s picture

Status: Needs review » Needs work
+++ b/core/modules/taxonomy/taxonomy.moduleundefined
@@ -1928,5 +1928,30 @@ function taxonomy_taxonomy_term_delete($term) {
+      // Rebuild possibly lost entries

Oh, also, this comment should end in a period (and could probably be clarified a little as well).

schiavone’s picture

Assigned: Unassigned » schiavone

Cannot reproduce...

Applied the combined patch

Followed the steps listed at #34

Ran taxonomy.test with no errors

schiavone’s picture

Status: Needs work » Needs review
Issue tags: -Novice, -Needs backport to D7

#34: 1065814-34-combined.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Novice, +Needs backport to D7

The last submitted patch, 1065814-34-combined.patch, failed testing.

xjm’s picture

You could not reproduce the bug, or you could not reproduce the test failures? I clearly didn't explain it well above since I forgot myself, but the combined patch fails locally for me, as above, demonstrating that it still needs work.

Albert Volkman’s picture

Status: Needs work » Needs review
FileSize
3.42 KB

Re-rolled against current head. Test doesn't run locally, so trying testbot.

Status: Needs review » Needs work

The last submitted patch, vocab_terms_remain-1065814-41.patch, failed testing.

Albert Volkman’s picture

Status: Needs work » Needs review
FileSize
1.15 KB
3.36 KB

Test showed - Call to undefined method stdClass::save. I'm not super familiar with testing and how D8 saves nodes, so I just copied how another test ran.

Status: Needs review » Needs work

The last submitted patch, vocab_terms_remain-1065814-43.patch, failed testing.

Albert Volkman’s picture

Status: Needs work » Needs review
FileSize
2.03 KB
3.36 KB

This appears to do the trick. Passes the simpletests, and passed manual testing. I replaced field_attach_update() with taxonomy_build_node_index().

Interdiff'd against #41.

iainp999’s picture

Tested the patch using the steps above, and stepped through using xdebug for good measure. Works as expected.

corvus_ch’s picture

Status: Needs review » Reviewed & tested by the community

Confirm, looks good.

gaas’s picture

I verified that the patch works as expected; taxonomy page loose the nodes after the field is deleted (and it didn't do that without the patch).

The patch makes it possible to not update the index by setting the 'taxonomy_maintain_index_table' variable to FALSE. What's the use case for not cleaning up the index? It seems more correct to just remove this option. If the option is kept shouldn't the variable be documented somewhere?

The patch also runs a separate db_delete() for each node that was tagged and then rebuild the index for each. This seems very expensive if there are a lot of tagged nodes. Would it not be possible to clean them up all at once?

Berdir’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -Novice

The handling of taxonomy_maintain_index_table is correct, this setting is not introduced in this patch, it already exists and is just (correctly) applied here as well.

The performance remarks however are true. This is a problem and therefore IMHO not ready. There might be a relatively easy way to fix it, though. When a field instance is deleted, then the field data is not actually deleted but just marked as such.

Drupal will then continously delete those field items in the background. That background process, however, does not invoke hook_node_delete(), only hook_field_attach_purge()/hook_field_delete() (which is a callback, not a hook). So taxonomy module could additionally implement that hook. The downside of that approach is that the index entries will only be deleted over time and it will probably take a few cron runs to get rid of them. With a lot of data more than just a few. But that's better than not being able to delete a field or having Drupal crash in between. And there could be a contrib module that provides a batch process to trigger field data deletion.

Setting back to needs work, this at least needs a scalability test (generate 100k articles, try to delete the tags taxonomy term reference). I don't think we can ship with something like this.

+++ b/core/modules/taxonomy/taxonomy.moduleundefined
@@ -1670,6 +1670,31 @@ function taxonomy_taxonomy_term_delete(Term $term) {
+      $nids = db_select('taxonomy_index', 'ti');
+      $nids->distinct();
+      $nids->fields('ti', array('nid'));

naming the query object variable $nids is very uncommon, that variable is in 99% of the cases called $query.

+++ b/core/modules/taxonomy/taxonomy.moduleundefined
@@ -1670,6 +1670,31 @@ function taxonomy_taxonomy_term_delete(Term $term) {
+      // Rebuild possibly lost entries.
+      foreach ($nids->execute() as $item) {
+        db_delete('taxonomy_index')->condition('nid', $item->nid)->execute();
+        $node = node_load($item->nid);

The loop could use fetchCol() to just have an array of nids and could also use node_load_multiple() to load those nodes in a single query. That scales just as a bad as node_load() due to the static cache, so we might actually need to do node_load() and reset the static cache after every call to at least save memory.

Albert Volkman’s picture

I was starting to refactor this, and I was considering doing something like -

$nids = array_map(function($n) { return $n->nid; }, $nids);
$nodes = node_load_multiple($nids);

db_delete('taxonomy_index')->condition('nid', $nids, 'IN')->execute();
foreach ($nodes as $node) {
  taxonomy_build_node_index($node);
}

however, I wasn't aware of node_load_multiple() not scaling well. Also, I wasn't entirely sure how to turn the query result from an iterable object to an array.

Berdir’s picture

you can use ->execute()->fetchCol() to get an array of the node ids, for example.

Albert Volkman’s picture

Status: Needs work » Needs review
FileSize
1.68 KB
3.5 KB

Here's another go at the patch. I removed the node_load() from the loop and replaced it with a node_load_multiple(). Also, I consolidated the looped db_delete() queries into a single query.

Status: Needs review » Needs work
Issue tags: -Needs backport to D7

The last submitted patch, vocab_terms_remain-1065814-52.patch, failed testing.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.

Wtower’s picture

So I came across this bug. I deleted a term reference field from a content type, and the nodes that belonged to specific terms still appear under the respective term pages.

If this helps anyone, until the bug is solved, in order to I get rid of these term values from the nodes, I re-added a taxonomy term reference field to this content type. I then created a view with VBO, modified entity values: set taxonomy term of all the nodes of this type to nothing. This caused the taxonomy module to rebuild the index. Then I was able to remove the field at last.

mgifford’s picture

Version: 8.0.x-dev » 8.1.x-dev
Assigned: schiavone » Unassigned

This still a concern in D8? Unassigned issue too.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

effulgentsia’s picture

Title: Vocabulary terms remain after removing field from content type » Content remains tagged with a taxonomy term (via the {taxonomy_index} table) even after its corresponding term reference field is deleted and purged
Priority: Normal » Major
Issue tags: +data integrity

This still a concern in D8?

Yep, it does appear that the described bug still exists in D8 too. As it's a data integrity bug, I'm raising this to Major, tagging it, and adding more specific information to the title.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

catch’s picture

Agreed with the #50/#52 approach, patch needs a re-roll.

Field deletion is a good candidate for the background batch/job queue runner being discussed in #3242216: Support JSON:API asynchronic tasks.

yogeshmpawar’s picture

Assigned: Unassigned » yogeshmpawar

.

yogeshmpawar’s picture

Assigned: yogeshmpawar » Unassigned

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

pooja saraah’s picture

Attached Patch against 9.5.x
Attached reroll diff against #52

pooja saraah’s picture

Status: Needs work » Needs review
pooja saraah’s picture

fixed failed commands against #74
Attached interdiff

ranjith_kumar_k_u’s picture

Try to fix the test failure

Status: Needs review » Needs work

The last submitted patch, 77: 1065814-77.patch, failed testing. View results

ranjith_kumar_k_u’s picture

rpayanm made their first commit to this issue’s fork.

Rassoni’s picture

Rerolled patch against #78
Attached interdiff

The last submitted patch, 81: 1065814-81.patch, failed testing. View results

Rassoni’s picture

pooja saraah’s picture

Fixed failed commands on #83
Attached patch against Drupal 9.5.x

ameymudras’s picture

Status: Needs review » Needs work
FileSize
653.71 KB

Reviewed last three patches and firstly they don't seem to apply for 9.5.x. I manually applied the code but the functionality doesn't seem to work. Moving the issue to needs work.

The patch makes use of
+function taxonomy_field_delete_instance($instance) {

hook_field_delete_instance() to perform the cleanup but I couldn't find the reference of this hook in D9. We might need to rework because the issue still exits

Medha Kumari’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
3.41 KB

Reroll the patch #76 with Drupal 9.5.x

Status: Needs review » Needs work

The last submitted patch, 86: 1065814-86.patch, failed testing. View results

ravi.shankar’s picture

Status: Needs work » Needs review
FileSize
3.41 KB
967 bytes

Trying to fix failed tests of patch #86.

Status: Needs review » Needs work

The last submitted patch, 88: 1065814-88.patch, failed testing. View results

vsujeetkumar’s picture

Status: Needs work » Needs review
FileSize
4.62 KB
3.51 KB

Updated tests based on 9.5.x.

Status: Needs review » Needs work

The last submitted patch, 90: 1065814-90.patch, failed testing. View results

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.