Closed (fixed)
Project:
Entity Reference Revisions
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2015 at 12:00 UTC
Updated:
2 Oct 2015 at 11:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anushka-mp commentedComment #2
miro_dietikerOh wow nice reduction!
I cannot RTBC this as i'm not deep enough into entity reference topic to know what remaining stuff is needed... And if we have enough test coverage.
Comment #3
berdirWe still want to keep this method I think, and add a revision id. Not sure how that would actually look like, though.
Comment #4
berdirAlso, is there a reason you separated this from #2455551: Merge EntityReferenceRevisionsItem & ConfigurableEntityReferenceRevisionsItem? I think it could go together, as further methods are merged together and so on.
I guess there is a risk that something breaks by this, setValue() and similar methods are very complex, but things might be broken right now as well, and it should be easier to keep up with core.
Comment #5
Anushka-mp commented@Berdir, I removed this because it was identical to the parent method. Not sure about revision id there.
Comment #6
berdirTrue, the current implementation is identical. Sounds like it could be a separate issue to generate better values.
Comment #7
jeroen.b commentedI remember having some issues with using the default implementation for some functions which caused the paragraphs entity to be saved twice (end result was the same, but I rather prevent extra saves).
So that's something that should be tested.
Comment #11
berdirI still think we should do this together with #2455551: Merge EntityReferenceRevisionsItem & ConfigurableEntityReferenceRevisionsItem.
Make sure this works with paragraph by running the paragraph tests with the patch applied.
Comment #12
sasanikolic commentedMerged EntityReferenceRevisionsItem and ConfigurableEntityReferenceRevisionsItem and checked paragraphs tests - they pass.
Comment #13
berdirThe whole hook should be removed and the remaining keys that are not yet set should be merged into the annotation of the remaining class.
Can we directly extend ConfigurableEntityReferenceItem?
Comment #14
sasanikolic commentedUhm, what about that error msg about the new line?
There is an empty line at the end of the file...
Comment #15
berdirprovider is set automatically if it's your module, you only need to specify it if you are providing a plugin for another module (or changing it)
Comment #16
sasanikolic commentedOk, deleted the provider from the annotation.
Comment #17
sasanikolic commentedRemoved some extra/same classes.
Comment #18
LKS90 commentedUnused.
Can you make those just like the occurrence a few lines above that?
It's mostly about $this->getName() instead of $this->name, but then I wonder why we don't use $this->getParent() either.
Missing empty line.
Comment #19
sasanikolic commentedFixes for the comment above.
Comment #20
LKS90 commentedPls fix!
Just kidding... The
\ No newline at end of fileis the old version, if you'd make the mistake, it'd be there twice (see this example:)I'll set this to RTBC since I think this is good to go, tested mostly with paragraphs.
Comment #22
miro_dietikerCommitted. I guess paragraphs need fixing now. :-)
Comment #23
miro_dietikerLooks fine. Paragraph still works perfectly for me.
Comment #25
Maouna commentedI am trying to install the paragraphs module, but I got this:
Fatal error: Access to undeclared static property: Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem::$NEW_ENTITY_MARKER in xxx/htdocs/modules/contrib/entity_reference_revisions/src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php on line 204
I think it is related to this issue because I found this in the applied patch:
What do you recommend me to do now?
Comment #26
giancarlosotelo commented#25 There is a fix for that #2576767: Fix failing tests.