Needs review
Project:
Default Content
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Nov 2020 at 12:00 UTC
Updated:
1 Sep 2025 at 09:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
duaelfrI'm dropping this here but I suppose it's going to need some testing to ensure it's not breaking anything important :)
It could benefit from a test coverage extension too.
Comment #3
berdirPassing tests but not all computed fields are read-only. this might break content_moderation integration for example? Maybe better to check for read-only fields, but of course the computed fields would need to set that correctly.
Comment #4
alphawebgroupThat's not relevant for every case in the world...
We also should have an option where we can export/import computed fields.
Comment #5
marios anagnostopoulos commentedAuto generated path aliases are also computed fields and probably need to be included in your export files, otherwise the entities will need to be resaved in order to generate it.
That probably means that a "read-only" check is not sufficient. Maybe we should also add some mechanism for exclusions.
I am changing this to needs work.
Comment #6
duaelfrChanging scope and IS according to #3, #4 and #5.
Comment #7
duaelfrGitlab seems to be broken for now so uploading a patch instead of opening a MR
Comment #8
leksat commented#7 works like a charm. Really like the approach! Every project can do its own thing now.
Comment #11
andypostThis change is fragile and needs some test
Comment #12
s.messaris commentedComment #14
sickness29 commentedFixed code quality and added test, please have a look
Comment #15
boazpoolman commentedThis feature is working wonders for me, thank you!
I'm uploading a patch here with all the changes from the MR.
All the credits to the authors, I'm just uploading so that I can use the patch in my composer.json.