Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Problem/Motivation
The entity reference module is working on a feature to reference specific revisions see #1837650: Allow referencing a specific revision ID. Inline Entity Form does not appear to support the loading or saving of specific revisions for entity references. Some of the issues are that Inline Entity Form settings only allows a single column for the entity id; entities are loaded with entity_load() which appears to only load the current revision, and; after saving an entity, only the entity id is passed to the parent entity.
In my use case I have also installed the Revisioning module, consequently there are revisions that are newer than the currently published revision. So, when loading and saving, the specific revision id needs to be set, rather than just the current (published) or latest (draft).
Proposed resolution
I'm not sure what the best resolution is for the different use cases that Inline Entity Form aims to support. For my current use case, which is tracking revisions between two nodes, I have attempted to address this with some minimal changes to loading and saving events, I will upload a patch shortly. Please note that my use case appears to differ slightly form the current solution proposed for supporting entity reference revisions in #1837650: Allow referencing a specific revision ID in that I would like to reference specific revision ids rather than the current, or the original (as in the case of locked revision references), please see my comment #1837650-69: Allow referencing a specific revision ID.
I would be grateful for any feedback on whether this is a feature Inline Entity Form should support, and if so any recommendations on implementing a more robust solution.
Many thanks for your time.
| Comment | File | Size | Author |
|---|---|---|---|
| #131 | inline_entity_form-2367235-131.patch | 44.94 KB | joevagyok |
| #139 | inline_entity_form-2367235-139.patch | 42.46 KB | joevagyok |
| #143 | 2367235-143.interdiff.txt | 802 bytes | joevagyok |
| #143 | inline_entity_form-2367235-143.patch | 43.29 KB | joevagyok |











Comments
Comment #1
lwalley CreditAttribution: lwalley commentedAttached patch is an initial attempt to support entity revision references when loading and saving, tested minimally for a parent node with an entity reference field to another node.
Comment #2
lwalley CreditAttribution: lwalley commentedAccounting for revision_id being null on edit current versus edit latest.
Comment #3
lwalley CreditAttribution: lwalley commentedAccounting for when referenced entities/revisions can't be loaded - assuming this is because they have been deleted from the database. Entity Reference module does not currently remove references to entities/revisions when the entity is deleted, see #1368386: Delete references to deleted entities
Comment #4
frega CreditAttribution: frega commentedAmended the patch to apply this the same "protection" to non-revisioned IEF, hope that is ok. Interdiff attached.
Comment #5
bojanz CreditAttribution: bojanz commentedI consider this (syncing revisions between parents and children) to be out of scope for the already too-big-almost-unmaintainable codebase.
Especially since the entityreference part hasn't even landed (and probably won't).
Comment #6
davidwbarratt CreditAttribution: davidwbarratt as a volunteer commentedInstead of figuring out how to do this ourselves, could we just add widget support to Entity Reference Revisions? That way someone can use the built-in Entity Reference field or a Entity Reference Revisions if they want to save the revision as well.
The only thing that might be needed is a middle man (which would be another module) that updates the revision when the parent's revision is updated. That or we could add that as an option. Regardless, I imagine the code would be somewhat trivial.
Comment #7
vilepickle CreditAttribution: vilepickle commentedHi,
I came up with a solution to this with entity_reference_revisions. I was working on getting diffs working with IEF's so they could see deep changes within the referenced entities, so this is all detailed in this issue on the diff queue along with my forked change of IEF based on current 8.x head: https://www.drupal.org/node/2649138
Comment #8
bojanz CreditAttribution: bojanz commentedI agree that integrating with entity_reference_revisions is the way to go in D8.
Comment #9
Arlina CreditAttribution: Arlina at Chapter Three commentedI've tested @vilepickle fork from github (https://github.com/vilepickle/inline_entity_form) against current 8.x-1.x and it effectively allows using IEF with entity_reference_revisions. Attached is the same fix that's in his repo in patch format (for testbot convenience).
Hope this makes it into this module!
Comment #11
Arlina CreditAttribution: Arlina at Chapter Three commentedUpdating the patch from @vilepickle against current 8.x-1.x.
Comment #13
Arlina CreditAttribution: Arlina at Chapter Three commentedPrevious patch failed when IEF was for a non-node entity. Updated patch attached will fix that by checking the interface implemented by the entity.
Comment #14
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #20
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #22
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedWe know the entity type upfront. This could be a property on the widget itself.
$entity instanceof should work as well.
Maybe it should be alterable by modules?
Comment #23
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #24
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedThinking more about it, we shouldn't set a new revision unless the current field type is entity_reference_revisions.
Comment #25
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #26
dawehnersetRevisionUser()accepts a UserInterface not an AccountInterface.Comment #27
Arlina CreditAttribution: Arlina at Chapter Three commentedTested latest #26 patch and it works correctly (removes a fatal error that appeared previously regarding a wrong interface).
Comment #28
bojanz CreditAttribution: bojanz commentedGreat work, thanks everyone.
It would make sense to (re)introduce a save() method on the inline form, and move the logic there (EntityInlineForm having the generic version, NodeInlineForm having its own). Also allows entity types that we didn't think of to do their thing.
Also, we should test this somehow.
Comment #29
dawehnerThis for now is just a reroll without addressing #28
I moved the logic to
EntityInlineForm, which seems to be still sort of a good place.Comment #30
dawehner.
Comment #31
harings_rob CreditAttribution: harings_rob at Harings.be commentedRerolled the patch as it did not apply clean.
Comment #32
Jaesin CreditAttribution: Jaesin at Chapter Three commented$item doesn't exists in this context.
Comment #33
harings_rob CreditAttribution: harings_rob at Harings.be commentedHi,
I have created a test for this.
Comment #34
harings_rob CreditAttribution: harings_rob at Harings.be commentedSorry, it had a bit to much changes. Attached the correct ones.
Comment #39
dawehner$itemstill doesn't exist. I'm wondering whether this interdiff, which I experimented yesterday gives us some form of starting point.Comment #40
dawehner@harings_rob
Are you sure the test is correct? As long you don't use the entity_reference_revisions field here, it would still point to the same node, so its target ID would be the same and this is at least why its failing at the moment. I'll adapt the test coverage to use ER_revisions.
Comment #41
harings_rob CreditAttribution: harings_rob at Harings.be commented@dawehner:
Hmm, I might have missed something then. I tried it from the ui and could not find any difference. But let me take another look at the tests and adapt them.
Regards,
Comment #42
dawehnerStep one: #2693975: NotNull validation duplicates the field level validation was required here.
Comment #43
dawehnerHere is an updated patch, doesn't include any test changes yet. This is up for tomorrow ...
Comment #44
dawehnerHere are tests finally ...
Comment #46
dawehnerI fear we need #2695791: Add entity_reference_revisions as test dependency first
Comment #47
dawehnerIt won't work without #2693975: NotNull validation duplicates the field level validation I believe, but let's try.
Comment #49
dawehnerSmall iteration ...
Comment #51
JacineRe-rolled #49.
Comment #53
dawehnerRerolls with invalid PHP syntax are brutal
Comment #55
Les LimFixed some breaking typos in the test method, and removed config dependencies that prevented the reference field form display config from being installed.
Comment #57
Les LimThis is working locally for me - I'm not sure why testbot is still having problems with it. Here's a version that should prevent the testbot fatal.
Comment #59
Les LimWell, that didn't help. Here's #55, but with files from config/optional moved to config/install.
Comment #61
Les LimRemoved an unnecessary menu_ui dependency from the node type config.
Comment #64
Les LimWhoops, moved configs back to config/optional.
Comment #65
Les LimPasses! Here's the interdiff between @dawehner's last patch at #53 and #64.
Comment #66
Les LimThere will need to be a follow-up to this patch to properly handle nested inline entity forms. IEF currently saves nested entities from the outside in, but should save entities from the inside out in order for new revision IDs to bubble up to the entities that are referencing them.
Opened a postponed issue at #2721349: Nested inline entities must be saved in "inside-out" order.
Comment #67
bojanz CreditAttribution: bojanz at Centarro commentedThe attached patch results in the target_revision_id property being populated, and IEF being available on the entity_reference_revisions field. That's great.
Then there's this part:
This means that if the child entity is revisionable, we always create a new revision of it, even if we're not creating a new revision of the parent entity.
We need to fix that (posted the paragraphs logic in the next comment), and ensure it only triggers when the field used is of type entity_reference_revisions.
EDIT: Changed the comment several times as my understanding of the issue evolved.
Comment #68
bojanz CreditAttribution: bojanz at Centarro commentedParagraphs logic:
Comment #69
dawehner+1 for taking into account this logic!
Comment #70
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedDoes not apply anymore :/. I tried to re-roll the patch but could not figure out what happened to InlineEntityFormComplex::massageFormValues. Any hints? Thanks!
Comment #71
bojanz CreditAttribution: bojanz at Centarro commentedIt's not needed at all. The field item knows what to do when it gets the 'entity' key (take the appropriate id, and in case of entity_reference_revisions, revision id).
Comment #72
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedOk, lets see.
Comment #73
bojanz CreditAttribution: bojanz at Centarro commentedI'll wrap this up.
Comment #74
dawehnerThis if statement is certainly borked. You need
$entity->getEntityType()->isRevisionable()instead.bojanz commented about 5 hours agoSomething is going wrong here ...
Comment #75
dawehnerOne thing I'm also wondering is whether we should just check whether the parent entity got a new revision and just in that case create a new revision of the inline entity itself.
Comment #76
dawehnerJust providing a patch for #74
Comment #78
m4oliveiLooks good from a read through, just found this:
This isn't actually used anywhere in this class.
Also setting back to Needs Review to see if the tests will pass.
Comment #79
m4oliveiFound a couple other things with the patch.
Could we keep this consistent with the outer conditional and do
$entity instanceof NodeInterface?Same here. Also I don't see an interface named
Drupal\entity\Revision\EntityRevisionLogInterfaceanywhere in Drupal core. Should we use$entity instanceof \Drupal\Core\Entity\RevisionLogInterfaceinstead? That seems to have the methods we want to call here.Comment #80
m4oliveiHere is a patch for the changes I suggested.
Comment #81
m4oliveiThis patch adds a test for using Complex widget with entity_reference_revisions field types. I took out the content types that were added and added three new ones that were easier to keep straight in my head. I've got setup 3 content types, Level 1, Level 2, Level 3. Level 1 has a entity reference revisions field that points to Level 2's. Level 2 has an entity reference revisions field that points to Level 3's. Level 3 is just the title. The test creates a Level 1 with a nested Level 2 and Level 3 using the complex widget. It then edits that node and changes the referenced nodes titles using the complex IEF widget.
As illustrated, the 3rd level node doesn't get properly referenced on edit. But the first level works. This is what's meant by #2721349: Nested inline entities must be saved in "inside-out" order, which @Les Lim brought up in #66.
Wondering if this ticket should go in without getting that fixed.. Or at least before support for entity_reference_revisions makes a cut release, this issue and #2721349: Nested inline entities must be saved in "inside-out" order should make the cut.
Comment #83
dawehnerIsn't that adding a dependency on node/entity module ? Well, this actually works, see https://3v4l.org/JsUkC
Comment #84
m4oliveiNeat, I hadn't thought of that, but if it works, great, a little cleaner.
Comment #85
dawehner@m4olivei
Well, I'm wondering whether its related with revisions or not :) If it is an already existing issue, we better open up a follow up, given how many people kind of need this particular patch at this point in time.
Comment #87
dawehnerWidgetSubmitclass.Comment #88
bojanz CreditAttribution: bojanz at Centarro commentedThis is starting to look good.
Here's a review:
- The last patch lost the ComplexWidgetRevisionsWebTest. We need to add it back, comment out the failing third level, point to #2721349: Nested inline entities must be saved in "inside-out" order.
Sounds like we should call it shouldSaveNewRevision() then? Also, typo in the docblock ("whether").
$entity->getEntityType()->hasKey('revision') is the internal logic of $entity->getEntityType()->isRevisionable() so we don't need to repeat it.
No need for the second check, it's already done by the called method.
We're in the Node handler now, this condition will always be true.
My initial thought was that we should rename this method to preSave().
But thinking about it more, why don't we just pass $form and $form_state to save() and move the logic there?
Comment #89
ssibal CreditAttribution: ssibal commentedTo which IEF dev version can I apply this patch? I tried it couple of times with different versions via composer (adding to extra / patches to composer.json file), but it's keep saying "can't apply patches, skipping" which means I don't have that exact version to which I could apply!
Comment #90
sylus CreditAttribution: sylus commentedJust attaching a patch based on @bojanz feedback. I think I addressed all of his points but let me know if missed anything. ^_^
Also attaching an interdiff. Hopefully the tests pass ^_^
Comment #92
sylus CreditAttribution: sylus commentedUpdated patch with fixes to $inline_form_handler->save().
Comment #93
brianfisher CreditAttribution: brianfisher at Chapter Three commentedsorry, didn't mean to post to this issue
Comment #94
brianfisher CreditAttribution: brianfisher at Chapter Three commentedrevert
Comment #95
audriusb CreditAttribution: audriusb commentedusing entity reference revisions, inline entity form and patched eck to support revisions with err. I get duplicate revisions saved by
$this->save()inERR does checking if revision should be saved:
if (!$host->isNew() && $host->isNewRevision() && $this->entity && $this->entity->getEntityType()->get('entity_revision_parent_id_field'))for a temporary quick fix, I commented out IEF save method but maybe there is a proper way to fix it?
Comment #96
nikathone@audriusb may be you should add something like
for your entity then extends
Drupal\inline_entity_form\Form\EntityInlineFormseeDrupal\inline_entity_form\Formfor implementation.Otherwise for me #92 patch did the trick for a custom entity type using 8.x-1.0-beta1, entity_reference_revisions 8.x-1.2 and drupal core 8.2.7.
Comment #97
thejimbirch CreditAttribution: thejimbirch commentedThe patch in #92 works for me on a Entity Reference Revisions field in a Paragraph bundle referencing a Custom Block.
Drupal 8.3.2
Paragraphs 8.x-1.x-dev
Entity Reference Revisions 8.x-1.2
Inline Entity Form 8.x-1.x-dev
Comment #98
ohthehugemanatee CreditAttribution: ohthehugemanatee at Amazee Labs commentedTested patch 92 working with Drupal 8.2.8, paragraphs 1.1.0, and entity_reference_revisions 1.2.0 .
Changing status to RTBC. Raising priority because of the ubiquity of paragraphs module. Anyone who tries to use inline forms with an entity that has a paragraphs field is losing data until this patch makes it in.
Comment #99
dawehnerRemoving these methods could break existing subclasses, as they maybe expect the call. Should this maybe be cleaned up later to minimize the possible risks?
Comment #100
jdleonardPer #99
Comment #101
jdleonardI just tested #92 and I'm seeing behavior that I think might be unexpected.
I have a content type "Provider", which has an Entity Reference / Entity Reference Revisions field (I tried both) with the IEF complex widget that references nodes of content type "Strategy". The Strategy content type has the "Create new revision" box checked.
I navigate to the node edit page for a Provider node and update a Strategy that the ER/ERR field already references, then I save the IEF.
I expect that this will result in a new revision being created of the Strategy node, but no new revision is created.
Any ideas?
Comment #102
handkerchief CreditAttribution: handkerchief commentedany news about this? It's a very important requirement.
Comment #103
cola CreditAttribution: cola commentedwould be nice if anybody can give a feedback
Comment #104
handkerchief CreditAttribution: handkerchief commentedComment #105
DamienMcKennaThis will definitely need tests.
Comment #106
dahousecat CreditAttribution: dahousecat commentedI"m using patch #92 and is working well for me.
I'm not using paragraphs, just custom revisionable entities in IEF.
I am using:
Drupal 8.3.7
entity_reference_revisions 8.x-1.3
inline_entity_form: 8.x-1.0-beta1
Comment #107
delacosta456 CreditAttribution: delacosta456 commentedhi
please what will be the solution for Drupal 7
Comment #108
DamienMcKenna@delacosta456: for Drupal 7 just use the Paragraphs module, it includes the underlying revision-safe entity reference field.
Comment #109
delacosta456 CreditAttribution: delacosta456 commentedhi thanks @DamienMcKenna
May be ... but the real situation i am trying to achieve is
-- with Workbench + Workbench Moderation
---a node type A referenced (and embed with inline Entity Form) a node type B
--- A is under Moderation and revision is created anytime published version is created.
--- B should ONLY be edited through Awhich means
****** to modify any field of form B embed in A with IEF , A must be opened and so after saving until new revision of A is not published B also shoudn't be updated
Comment #110
DamienMcKenna@delacosta456: Your use case strongly suggests that you should be using Paragraphs for the B object instead of a content type.
That said, this is off-topic for this issue.
Comment #111
oknateParagraphs aren't reusable. So using paragraphs instead of another entity type is not a workable solution in cases where inline entities need to be reusable.
Comment #112
DamienMcKenna@oknate: That is true, though the new Library functionality in the D8 version can expand the possibilities. Also, in delacosta456's use case, it isn't clear what the intended use cases are for content type B, which leaves lots of possibilities.
Comment #113
DamienMcKennaQuestions about the UX:
Comment #114
geek-merlinI'm working on this and have rerolled the patch. Instead of changing the signature of the presave method (which violates BC) this one sets the newRevision() on form build. I did some manual tests with this patch and it worksforme like a charm.
#113: Yes a new revision is created when the bundle is configured to, and only if there is a change. This is a reasonable default and if we want options for this, we can do that in a followup.
NR for the bot but did not fix tests.
Comment #115
joevagyok CreditAttribution: joevagyok commentedBy testing manually the patch #114, I found that revisions are not being created on change, but it changes the 1st revision of the referenced entity. And if you revert the host entity, the referenced entity does not revert. However the patch #92 works fine from this regard.
Comment #116
geek-merlin@joevagyok #115:
Thanks for testing this and reporting back.
> but it changes the 1st revision of the referenced entity
I do not understand this. Do you mean the current revision?
Also, please go to admin/structure/types/manage/[referenced-node-type] (for both node types) and look into the Publishing Options at the bottom. Is Create new revision checked?
Comment #117
joevagyok CreditAttribution: joevagyok commentedYes, I meant the current revision.
After taking a look at the patch #114 I found that your IF condition is the issue.
In my case I have an entity type that does not have bundles and it is not a bundle-able entity.
Do you have any specific reason in order to restrict newRevision() to getBundleEntityType() only?
In my opinion this should work for any revisionable content entity type regardless of bundle capability.
Comment #118
geek-merlinThanks for the feedback. Alas, can you refer me to a filename and line? Or even better, get dreditor and extract the patch lines you refer to?
Comment #119
joevagyok CreditAttribution: joevagyok commentedThis is the if statement I am referring to. This line here prevents my non bundle-able entity to be saved in a new revision, even though it is configured to do so.
Comment #120
geek-merlinAs you see in the code, i went along the lines of ContentEntityForm::addRevisionableFormFields to see if we should create a new revision.
> to be saved in a new revision, even though it is configured to do so.
If no bundles, can you elaborate how we should know if a new revision should be created? i don't know a generic API for that.
(Maybe we should instead add a "new revision" setting to IEF?)
Comment #121
joevagyok CreditAttribution: joevagyok commentedRight, I understand your intentions and your question is correct. You can't determine what should happen with revisions when the entity does not have the bundle configuration.
As first look, I believe in such case it would make sense to follow the host entity behavior, so if the referenced entity is revisionable but not bundleable, then do what the host entity will do with the new revision. Otherwise we look into the bundle config as you did in your patch.
It would be nice indeed to implement such config for IEF that could control this behavior on the form widget as a setting.
I will try to reroll the patch with these aspects in the following days.
Comment #122
geek-merlinI came to make a setting of it (untested) - can u review and test?
Comment #124
joevagyok CreditAttribution: joevagyok commentedI took the #122 patch and I wrote tests and I have took a look at the series of failures in other tests.
I found couple of issues regarding the entity change check with DiffArray, that returns false always since in that submit the values are already in updated state so even after buildEntity() it is the same. Changes were never been detected and doing this way it is not reliable enough. I would postpone this until we get the proper EntityChangedAPI in from core. Currently if you save a node without changing the fields it will create a new revision. So practically we follow standard drupal behavior. I see no problem with having new revision once the IEF are opened and the user hits Save.
I also found an issue with not using the ['#save_entity']. Basically, the save does not work without that when revisioning is involved. By making sure that this variable is set when we are creating new revision everything is back to normal. On the other hand it is true that it does not seem to be used, but I did not intend to change this completely from what the creators implemented as it would be out of scope.
To wrap it up, this patch brings the widget configuration for "Create new revision". I have extended the tests from the patch and I have added tests for "Entities without bundle" (entity_test module) case just in case.
Comment #125
joevagyok CreditAttribution: joevagyok commentedFixed some php code sniffer issues that I have introduced in my previous patch #124.
Comment #126
joevagyok CreditAttribution: joevagyok commentedI accidentally included the patch in the patch in #125, sorry.
It should be correct now.
Comment #127
geek-merlinKudos for the extensive tests!
Alas, this looks like some #122 changes got accidentally reverted.
InlineEntityForm:
Comment #128
joevagyok CreditAttribution: joevagyok commented@geek.merlin aka axel.rutz Please read my #124 comment where I explain my intentions on why that and others were changed. But if you take a closer look, this is not far at all what was in #122 just added some additional logic for improvement on deciding over revisioning.
Please, test and review the patch before marking back to Needs work.
Comment #129
geek-merlinAh, OK thanks. TBH i did not read that thoroughly enough :-/.
(I know how tedious this is but interdiffs would help. And let's look forward to the d.o gitlab thing that will simplify that...)
Now this totally makes sense to me code-wise. I did not yet test this manually, but given that i use #114 in production, the logic itself did not change since then (only the revisionable configuration), and the extensive tests you made are green, i' give this RTBC.
Really appreciate the work you put into this!
Comment #130
joevagyok CreditAttribution: joevagyok commentedI have created a new patch with an interdiff based on the #126 patch. I have simplified the code. I also removed an unnecessary line.Recreated this patch in #131.Comment #131
joevagyok CreditAttribution: joevagyok commentedIn #130, my final patch was not correct so I had to redo it. I have created a new patch with an interdiff based on the #126 patch. I have simplified the code. I also removed an unnecessary line of code. Thank you for the review you made @geek.merlin
Comment #132
geek-merlinSo
['#save_entity']being needed was a misunderstanding?Apart from that, the interdiff is quite simple and looks good to me.
Comment #133
joevagyok CreditAttribution: joevagyok commented@geek.merlin, right. After revisiting the code I realised that using it would save the entity right away in the complex widget when we click "Create node" and close the inline entity form by the ajax operation. This might be an unwanted change that I did not intend to introduce.
Comment #134
joevagyok CreditAttribution: joevagyok commentedAfter using this patch actively, we have encountered the fact that the "Revision log message" field is automatically added to the form since we are referencing revisions and we can create new revisions with IEF as well. Since this patch introduces the support for revisions I think it would well fit the scope to provide an additional widget setting to "Hide revision log message" input field from the form. I will proceed to provide this additional functionality to the patch.
Comment #135
geek-merlin> that the "Revision log message" field is automatically added to the form
See related.
Comment #136
joevagyok CreditAttribution: joevagyok commentedGreat! Thanks Axel :)
Comment #137
geek-merlinNow that #2974544: Convert tests from Simpletest to FunctionalJavascript is in, re-triggering test.
Also unassigning @bojanz.
Comment #138
geek-merlinOK, now that tests are modernized, #131 does not apply anymore and the tests need to be updated too.
@joevagyok can you look into this so we can bring this in soon? (I'm now comaintainer.)
Comment #139
joevagyok CreditAttribution: joevagyok commentedI have ported the revision web tests to Functional JavaScript tests.
Comment #140
joevagyok CreditAttribution: joevagyok commentedTry removing interdiff.txt from displaying on top, Dreditor went mad.
Comment #141
Chewie CreditAttribution: Chewie as a volunteer and at Petend for European Commission commentedI did testing of patch. In general looks good except failed test:
\Drupal\Tests\inline_entity_form\FunctionalJavascript\ComplexWidgetTest::testReferencingExistingEntitiesLooks we should have here 12 referencies in 'All bundles' field.
Comment #142
joevagyok CreditAttribution: joevagyok commentedThanks @Chewie. Yes I see that the test there assigns node from all existing bundles and since I added 3 new bundles to the test module it sees 12 and not 9 results anymore. I will fix the assertion and re-roll the patch.
Comment #143
joevagyok CreditAttribution: joevagyok commentedI fixed the error in the
ComplexWidgetTest::testReferencingExistingEntitiestest that originated from the fact that in the test module the patch adds 3 new content bundles and this particular test uses all existing bundles and the total number now is 12 instead of 9.Comment #144
joevagyok CreditAttribution: joevagyok commentedComment #145
joevagyok CreditAttribution: joevagyok commentedComment #146
Chewie CreditAttribution: Chewie at Petend for European Commission commentedI did a testing of last #143 patch. Patch looks good for me. Thanks, @joevagyok! I think it makes sense to put RTBC.
Great work was done!
Comment #147
geek-merlin🐳Wooooooooot!🐳 This is gorgeous. Thanks everyone who worked on this!