Skip to content

Create (POST) does not return entity including changed values from trigger #724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bart-degreed opened this issue Apr 15, 2020 · 2 comments · Fixed by #731
Closed

Create (POST) does not return entity including changed values from trigger #724

bart-degreed opened this issue Apr 15, 2020 · 2 comments · Fixed by #731

Comments

@bart-degreed
Copy link
Contributor

This only works correctly when the POST request has an 'includes' query string parameter.

This was referenced May 4, 2020
@maurei
Copy link
Member

maurei commented May 8, 2020

Could you elaborate with a little example?

@bart-degreed
Copy link
Contributor Author

You create a resource, which has a CreationTime column that is auto-filled from a database trigger with the current time. So after create, a re-fetch is needed to observe the change. The relationship part, I don't remember which test covers that, but the code used to be to re-fetch only when the request also contains a relationship (in DefaultService or DefaultRepo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants