Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
17 Jan 2015 at 09:45 UTC
Updated:
3 Sep 2018 at 04:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dermarioI will give it a try. Its a bit more complex than the action i ported before.
Comment #2
dermariohttps://github.com/fago/rules/pull/129
My first try to create a first version of the port.
Comment #3
dermarioMy pull request is still open. The last problem i tried to solve was to introduce an exception that handles wrong context parameters. How can we get some progress on it?
Comment #4
fagoThanks. This looks good now, there is just a class that needs to be removed then it can be merged. See my comment on github.
Comment #5
B31 commentedComment #6
dasjoHi Giuseppe,
you changed the issue status from "Needs work" to "Needs review" without adding a reference to a pull request. Changing back to needs work again, feel free to provide a link to your work in progress if you have worked on this.
Thanks,
dasjo
Comment #7
fagoThe PR is https://github.com/fago/rules/pull/129 - which has been updated by dermario. giuseppeib just updated the issue for him - I'm looking into this now though.
Comment #9
fagoPicked it up and completed it on the way (wanted to merge it and found issues while doing so). Changes:
- Fixed data types to match d8
- Added missing todos
- rounding behaviour requires a conversion to integers
Setting back to needs work though as there is one todo left we can address in another PR: The context definitions needs to be changed depending on the target type context being set on the object.
Comment #10
fago#2456829: Context definition needs to be updated before execution is done - see EntityFetchByField as example. So this can be picked up.
Comment #11
piyuesh23 commented@Fago,
Updated data_convert action. Setting the coversion_result's type to the target's type from context definition.
PR: https://github.com/fago/rules/pull/285
Comment #12
piyuesh23 commentedComment #13
klausiThe pull request has some unrelated fixes in rules.module, can you remove that change and also extend the test case to cover the refining of the context?
Comment #14
tr commentedI re-rolled #11 as a PATCH and removed the unrelated (and already fixed) changes that were mentioned in #13. Posting here so the testbot can test it and so others can review this issue.
I have not evaluated whether this completely addresses the @todo from #9, but the patch does seem consistent with the work done in #10.
Comment #16
tr commentedCorrected function signature.
Comment #17
tr commentedHere's a new patch that removes the @todo comment, adds a test for the new refineContextDefinitions() method, and adds asserts to the existing tests to check that the context type of the provided variable matches the target_type.
I think this is ready to be committed? Sure would be nice to get some feedback, as this is one of the last tasks that needs completing for #2269577: [META] Port all actions to 8.x.
Comment #18
tr commentedComment #20
tr commentedCommitted #17.