cens/ohmageServer — Issue #219: Reevaluate the Library
Author: jojenki
Created: 2012-02-23 22:25:15+00:00
State: open

We have a build target that creates a library for use by external clients. We created this a while ago and has not been explicitly kept up to date. We need to go over the library and its documentation to ensure that it is still accurate.

Also, there was an issue of flow regarding survey/prompt responses. Right now, if you have complete responses, you cannot create the corresponding SurveyResponse or PromptResponse objects without first creating a Campaign object. The original design assumed that someone using the library would first build the Campaign so that they could use it to control the flow of surveys and prompts for the user. In this scenario, you would always have access to a complete Campaign object to reference when creating the SurveyResponse and PromptResponse objects. However, it could be that the user has already generated acceptable responses, either through taking the survey and storing them for upload later or through downloading responses from the server, and therefore the SurveyResponse and PromptResponse objects can be safely created without needing to validate them through a Campaign object.

This is obviously a complex issue, so it is probably best that we leave this open until we have generated a complete scenario for future development on the library at which time we should close this issue and create smaller, more specific issues.