CMPUT301W15T12 / C301Project

Apache License 2.0
3 stars 2 forks source link

Question about saving #81

Closed IchigoKIl closed 9 years ago

IchigoKIl commented 9 years ago

How do I save my progress on the app? When I create a new account and submit a new claim, and then close the app my account is gone... What should I be doing to save?

qsjiang commented 9 years ago

@vanbelle will be implementing a "saving to server" button inside the top right menu.

Not saving records automatically is a design decision we made for minimizing the impact on existing api.

ViIIager commented 9 years ago

when was this decision made? i think it is a bad decision. its too late to change it now, but given the scope of the app, one would think that an account creation is saved once you click create account.

qsjiang commented 9 years ago

Hi @Pengwin-man The decision was made on Thursday when you missed the lab meeting.

" one would think that an account creation is saved once you click create account." I think so as well. Technically any add/change to model should be saved to the server right away.

In fact the first version of the ESClient I wrote does exactly that, but the code that communicate with the server are internet calls, and can not be called directly like other apis(requires AsyncClass)

That means all the activities will have to implement asyncclass when modifying/adding/deleting claims, and users.

Although I already have the backend support written, but the amount of change would be too much for the team to handle in the current time constrain. Considering all this we decided to go with the current approach.

vanbelle commented 9 years ago

This has been implemented and pushed, but I only added it so far in the claimlist menu, if we want it elsewhere let me know and we can create some other menu items.