Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Comments

Rollback not undo#134

Merged
pixelhandler merged 1 commit intomasterfrom
rollback-not-undo
Jan 13, 2017
Merged

Rollback not undo#134
pixelhandler merged 1 commit intomasterfrom
rollback-not-undo

Conversation

@pixelhandler
Copy link
Owner

@pixelhandler pixelhandler commented Jan 13, 2017

Fix behavior for rollbackAttributes. The intent is to rollback to the value fetched from the persistence layer; not to stash an attribute’s value on every call to .set().

  • Fix failing tests for previousAttributes and rollbackAttributes
  • Update attr() set() method to only assign to .previous once

Fix behavior for rollbackAttributes. The intent is to rollback to the value
fetched from the persistence layer; not to stash an attribute’s value on every
call to `.set()`.

- Fix failing tests for previousAttributes and rollbackAttributes
- Update `attr()` `set()` method to only assign to `.previous` once
@pixelhandler
Copy link
Owner Author

@realityendshere Here is the PR to fix the rollback behavior. Thanks for the failing tests :)

@pixelhandler pixelhandler merged commit b75a229 into master Jan 13, 2017
@pixelhandler pixelhandler deleted the rollback-not-undo branch January 13, 2017 22:49
@pixelhandler
Copy link
Owner Author

@realityendshere this is included in ember-jsonapi-resources@2.0.3 now tag/2.0.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant