Skip to content

add transaction support to nested service calls - #130

Merged
daffl merged 2 commits into
feathersjs:masterfrom
paflopes:master
Dec 2, 2017
Merged

daffl merged 2 commits into
feathersjs:masterfrom
paflopes:master

Conversation

@paflopes

Copy link
Copy Markdown
Contributor

Fixes #118
Using the proposed solution in the issue. If any extra tests are necessary please let me know.

@daffl

daffl commented Nov 2, 2017

Copy link
Copy Markdown
Member

Sorry, I almost missed this! This looks great, thank you for doing this. Is there a way we can test this? I just added the transaction hooks to the normal tests to make sure they at least don't break but it doesn't cover the case of nested service calls.

@paflopes

paflopes commented Nov 2, 2017

Copy link
Copy Markdown
Contributor Author

We could create two other services with one service's hook calling the other one inside a transaction. I think this should fail before and pass now. What do you think?

@daffl
daffl merged commit 7fc105f into feathersjs:master Dec 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants