-
Notifications
You must be signed in to change notification settings - Fork 214
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
Move object mapping to mainService DataService #1968
base: master
Are you sure you want to change the base?
Conversation
Latest commits add a couple of new features to the API.
*Note: For example, assume //Update 1
this.service.updateObjectProperties(myObject, "aProperty").then(function () {});
//Update 2
this.service.updateObjectProperties(myObject, "aProperty").then(function () {
// If the propertyDescriptor of "aProperty" has isDerived = false (default), this update
// will receive the same promise generated by Update 1.
// If the propertyDescriptor of "aProperty" has isDerived = true, this update will kick off
// a new fetch and generate a new promise.
}); This name "isDerived" comes from the idea that a derived property's value is subject to change based on the criteria used to fetch it. By that logic, we cannot assume that two updateObjectProperties() for the same property return the same results, and therefore, we cannot return the same promise for 2 separate calls. In the future, we can improve on this by checking whether there were changes on the properties on which this property is derived. |
DataService organized into the following - Snapshotting - Service Hierarchy - Mappings - Model - Data Triggers - Data Object Properties - Data Object Creation - Data Object Changes - Fetching Data - Saving Data - Offline - Utilities
713d596
to
c5681e9
Compare
No description provided.