Last post Mar 24, 2012 04:51 PM by MarcusL
Mar 24, 2012 04:51 PM|MarcusL|LINK
I made a test project (zip link below) to demonstrate a few bugs with Upshot:
https://github.com/Marcus-L/Test-Upshot/zipball/master (requires MVC4 beta + sql express)
Calling refresh() on an upshot datasource doesn't update collection properties correctly. When a different set of results is returned in the collection property, those are merged into the existing set of entities instead of replacing them.
This is the "AddRemoveThings" button in the test project, it calls a method to do some adds/deletes, then re-calls refresh() which returns the correct results, but the upshot collection entities get merged instead of replaced (i.e. the new item shows up but
the deleted item doesn't get removed).
Calling reset() on a datasource doesn't actually reset the child collection entities! They are still stored by upshot and will be re-merged if you try to call refresh() again. This is the "TryResetRefresh" button in the test project (click
this after AddRemoveThings)
Inserting a parent+child in a single commitChanges() doesn't work. This is an extremely basic task scenario that seems cause a NYI error. This is the "TryInsertParentAndChild" button in the test project.
When will these bugs be fixed?