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

Adds method to reset data object to last snapshot #1952

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

johnnykahalawai
Copy link
Collaborator

@marchant - per our discussion, I added the capability to reset a single data object.

@johnnykahalawai
Copy link
Collaborator Author

Useful for use in combination with a form e.g. when the user cancels the form the data object can be mapped back to its last known state.

@@ -808,6 +805,12 @@ exports.RawDataService = DataService.specialize(/** @lends RawDataService.protot
* [addRawData()]{@link RawDataService#addRawData}
* call that invoked this method.
*/
mapRawDataToObject: {
Copy link
Member

Choose a reason for hiding this comment

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

doesn't that break backward compatibility or are we now in position to do so?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will fix - the code comments were not lined up so I put it over the right function. There was a merge conflict and I removed the wrong block.

Inadvertently removed support for backwards compability.
@hthetiot hthetiot removed their request for review April 4, 2018 18:10
@hthetiot hthetiot added this to the v17.3.x Data milestone May 21, 2018
johnnykahalawai added a commit that referenced this pull request Jun 6, 2018
This commit can be dropped after this PR is merged:

#1952
tejaede pushed a commit that referenced this pull request Dec 11, 2018
This commit can be dropped after this PR is merged:

#1952
marchant pushed a commit that referenced this pull request Dec 22, 2018
This commit can be dropped after this PR is merged:

#1952
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.

3 participants