Closed (fixed)
Project:
Conditional Fields
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2021 at 15:02 UTC
Updated:
5 Apr 2022 at 20:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
paulocsNotice that I didn't fix any code standard because it is out of the scope of this issue.
Comment #3
colan👍
Comment #4
marcusvsouza commentedThe patch applies without problems and work as expected, does not affect or change module functioning.
Comment #5
colanCould someone do a code review? I just thumbs upped the idea, and don't have time right now.
Comment #6
marcusvsouza commentedI will do the code review!
Comment #7
marcusvsouza commentedThe function logic of “function conditional_fields_element_after_build” was transferred to a service and having no change in its functionality, no code pattern work was done because it escapes the scope of the issue.
Comment #8
colanI was hoping to commit this, but it no longer applies.
Can we get it ready to go again before committing anything else? It's a big and important change. Thanks!
Comment #9
paulocsI'll provide a re-roll.
Comment #10
paulocsComment #12
colanThanks, committed! I re-queued all of the other 4.x RTBCs for testing to ensure they still work.
Comment #13
colanActually, there are method names like
conditionalFieldsIsPriorityField(), which should be renamed to drop the CF prefixes. For example, this one should beisPriorityField(). Let's keep this open until we can update these?Comment #14
paulocsWorking on #13. I'll open a MR.
Comment #16
paulocsComment #17
andregp commented@paulocs' MR correctly updates all methods from ConditionalFieldsElementAlterHelper.php that starts with "conditionalFields...". Thanks!
I have a question though. There are some methods on Conditions.php that also have the CF prefixes (conditionalFieldsDependencyDefaultSettings, conditionalFieldsStates, conditionalFieldsEffects, conditionalFieldsConditions).
@colan, should they be updated too (on a separated issue)?
Comment #19
colanThanks all!
#17: Sure, that would be a good idea.