CommentFileSizeAuthor
#17 2409053-17.patch7.43 KBtr
#16 2409053-16.patch605 bytestr
#14 2409053-14.patch585 bytestr

Comments

dermario’s picture

Assigned: Unassigned » dermario

I will give it a try. Its a bit more complex than the action i ported before.

dermario’s picture

Assigned: dermario » Unassigned
Status: Active » Needs review

https://github.com/fago/rules/pull/129

My first try to create a first version of the port.

dermario’s picture

My 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?

fago’s picture

Status: Needs review » Needs work

Thanks. This looks good now, there is just a class that needs to be removed then it can be merged. See my comment on github.

B31’s picture

Status: Needs work » Needs review
dasjo’s picture

Status: Needs review » Needs work

Hi 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

fago’s picture

The 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.

  • dermario authored 5535c1a on 8.x-3.x
    Issue #2409053 by dermario: Port data_convert action to D8.
    
  • d1761d6 committed on 8.x-3.x
    Issue #2409053: Fixed data_convert action to only support rounding...
fago’s picture

Title: Port Convert data type (data_convert) action to D8 » Adjust context definitions of data_convert action

Picked 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.

fago’s picture

Issue tags: +Contributor

#2456829: Context definition needs to be updated before execution is done - see EntityFetchByField as example. So this can be picked up.

piyuesh23’s picture

@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

piyuesh23’s picture

Status: Needs work » Needs review
klausi’s picture

Status: Needs review » Needs work

The 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?

tr’s picture

Status: Needs work » Needs review
StatusFileSize
new585 bytes

I 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.

Status: Needs review » Needs work

The last submitted patch, 14: 2409053-14.patch, failed testing. View results

tr’s picture

Status: Needs work » Needs review
StatusFileSize
new605 bytes

Corrected function signature.

tr’s picture

StatusFileSize
new7.43 KB

Here'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.

tr’s picture

Assigned: Unassigned » tr

  • TR committed fd4f376 on 8.x-3.x
    Issue #2409053 by TR, piyuesh23: Adjust context definitions of...
tr’s picture

Status: Needs review » Fixed

Committed #17.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.