-
Notifications
You must be signed in to change notification settings - Fork 8
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
ensure building creation handles errors graciously #743
Comments
@luytena I guess you are referring to this? ember-ebau-gwr/addon/controllers/building/edit/form.js Lines 110 to 117 in 352f960
|
Yes, in the create method in essence any exception that causes it to not go by the line ember-ebau-gwr/addon/services/building.js Lines 131 to 137 in 352f960
|
As an additional fix, we should ensure that building creation handles errors graciously, i.e. if when saving a building, if the addWork request fails or the addBuildingToConstructionProject, then the building should be left in a new state. At the moment we trigger modifyBuilding requests after a failed addBuildingToConstructionProject because the isNew flag isn't rolled back correctly.
Originally posted by @luytena in #741 (comment)
The text was updated successfully, but these errors were encountered: