Skip to content
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

Handle deleted offerings in the user API #1033

Merged
merged 3 commits into from
Sep 25, 2015

Conversation

jrjohnson
Copy link
Member

The main fix is that user instructedOfferings and instructedIlmSessions no longer return deleted offerings or sessions.

I also added InvalidInputWithSafeUserMessageException which when thrown results in a 400 error and the display of the exception message to the API user.

@stopfstedt
Copy link
Member

LGTM 👍

return $this->instructorIlmSessions;

//criteria not 100% reliable on many to many relationships
//fix in https://github.com/doctrine/doctrine2/pull/1399
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bummer.

@saschaben
Copy link
Member

@dartajax, please merge!

dartajax added a commit that referenced this pull request Sep 25, 2015
Handle deleted offerings in the user API
@dartajax dartajax merged commit b99a0e0 into ilios:master Sep 25, 2015
@jrjohnson jrjohnson deleted the 1028-deletedofferings branch October 6, 2015 22:42
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.

None yet

4 participants