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

Ensure error changes are added to changes block #303

Merged
merged 14 commits into from
Aug 13, 2018

Conversation

snewcomer
Copy link
Collaborator

@snewcomer snewcomer commented Jul 11, 2018

I haven't investigated the implications of this change; however, this is what it would look like. Note - there are still tests that execute and do not apply those changes if invalid.

I'm not sure if there is historical reasons for this or if simply was a design decision.

This also might require more information in the README.

Ref #297
#297 (comment)

@snewcomer
Copy link
Collaborator Author

@bgentry Mind trying out this PR and lmk if anything breaks for you (of course if you have time :) )?

@snewcomer snewcomer force-pushed the sn/add-changes-error branch from ee06eeb to 87d474e Compare July 29, 2018 17:50
@snewcomer snewcomer self-assigned this Jul 29, 2018
@snewcomer snewcomer force-pushed the sn/add-changes-error branch from 87d474e to a0637b8 Compare July 30, 2018 17:08
@snewcomer snewcomer force-pushed the sn/add-changes-error branch from a0637b8 to 301b0dd Compare August 8, 2018 21:12
@snewcomer
Copy link
Collaborator Author

@XaserAcheron Somewhat modifying what you did (the tests), but would love to hear your opinion on this PR. It essentially still adds changes to the changeset even if it is not valid.

@XaserAcheron
Copy link
Contributor

This breaks rollbackInvalid, but it ought to be a simple fix. You'll want to revert the definition of the test and add a couple of lines here-ish to also remove the invalid items from the CHANGES hash. Should do the trick.

@snewcomer
Copy link
Collaborator Author

@XaserAcheron ooo great call! Hadn't thought of that. Since the errors are potential, we need to see if they actually exist and then delete from the changes hash if present in the errors hash. 👍

@XaserAcheron
Copy link
Contributor

Just saw the commit -- looks good now! Or at least that little tiny feature I contributed looks good now, for what it's worth. :P

@snewcomer snewcomer merged commit c547f08 into adopted-ember-addons:master Aug 13, 2018
@snewcomer snewcomer deleted the sn/add-changes-error branch August 13, 2018 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants