Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Jun 2016 at 16:52 UTC
Updated:
6 Sep 2016 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mile23Comment #3
mile23Comment #4
mile23The patch.
This isn't a meta because it's not that many replacements.
Comment #5
mile23Comment #6
mile23Wrong parent.
Comment #7
mile23Rerolled.
Comment #8
mile23Patch still applies to 8.3.x.
Removes all entity_revision* usages.
Re-running test.
Comment #9
daffie commentedIn the test Drupal\field\Tests\FormTest on line 578 there is the following comment: "$entity = entity_revision_load($entity_type, $entity->getRevisionId());". Can we replace that usage also?
All other usages for entity_revision_load() and entity_revision_delete() have been removed from the code base. The patch looks great. Almost RTBC for me.
Comment #10
urvigala commentedComment #11
sneha_surve commentedComment #12
sneha_surve commentedApplied patch as per said in #9.
Thanks!
Comment #13
timmillwoodMerging the patches in #7 and #12. Interdiff is based on #7.
Comment #14
daffie commentedLooks good to me.
All usages for entity_revision_load() and entity_revision_delete() have been removed from the code base.
The patch looks great.
I have one nitpick left, but that can be done on commit.
Sorry for nitpicking, but if you do this multiline then the second and third lines should be only 2 spaces indented and not 4 spaces. As an alternative you can put it on a single line.
Comment #15
alexpottFixed on commit.
Committed 4d8efc4 and pushed to 8.3.x. Thanks!
Removed unused use on commit.
Comment #17
eric_a commentedThis is uncommenting code apart from replacing the deprecated function (and fixing indentation). Nothing seems to have broken, but quite a big change for this issue.
Comment #18
eric_a commentedSeriously, this either needs a revert or some feedback. Why did we bring back that dead code in #12 and #13? Was it on purpose or a by accident? We could have converted dead code without uncommenting, we could have deleted dead code, but bringing it back in a conversion issue without any comment whatsoever is.. weird.
Comment #20
eric_a commentedComment #21
alexpott@Eric_A it is a test - let's worry about the important things. The commenting out erroneously occurred in #1822000: Remove Drupal\field_test\Plugin\Entity\Type\TestEntity in favor of EntityTest (probably as part of getting the patch to work but was missed on review). The test is pretty meaningless - but it is hardly alone in that.
Comment #22
eric_a commentedHaving this in 8.3.x but not in 8.2.x does make it harder to port some 8.3.x patches or forward port 8.2.x patches, like for example coding standard patches.
So we had erroneous changes to FormTest twice, but luckily the test is pretty meaningless. Sigh, ok. Thanks for the feedback.
Comment #23
alexpott@Eric_A well in that case just target 8.3.x first and if there's energy to backport to 8.2.x so be it.
Comment #24
eric_a commentedI do understand there's some hesitance to cherry-pick this task to 8.2.x now that it is in beta, but is the above really the policy for 8.2.x bug fixes? That would be a shame, cause then 8.2.x became half dead right after 8.3.x opened. Some policies are hard to track, I thought the policy here was to open bug fixes against the current minor (Not sure if that would be 8.1.x or 8.2.x right now) even if we commit to the latest open branch first.