summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/frontend/JsonRequestProvider.java
AgeCommit message (Collapse)Author
2014-04-08Fixing 500 on New Account Login Bug.Jesse Morgan
AccountRedirectResource was expecting the user to have a UserRecord, but new users did not have one. This caused JsonRequestProvider to throw an IOException and AccountRedirectResource to return 500. JsonRequestProvider now throws a NotFoundException on 404 and AccountRedirectResource properly handles it.
2014-02-22Adding support to post new messages.Jesse Morgan
Other Changes: * JsonEncodedProvider no longer implements Provider. * Only the first answer is shown. Others slide down. * Switch going deeper and the feed.
2014-02-20Added support for displaying message on Feed.Jesse Morgan
Changed MessageThread so that a thread always contains one original message. Added support in JsonEncodedProvider for JavaTypes in addition to classes. Updated communityfeed.ftl to actually display questions and answers.
2013-10-20First stage of a major refactoring.Jesse Morgan
Question and Answer can now be serialized and deserialized to/from JSON. As such, I no longer have to pass awkward maps around. As part of this change I have introduced a Provider interface to abstract out loading and persisting these beans. The scoring logic has been completed factored out of SurveyResultsResource and into the various ScoringEngines. Tests have been added for Question, Answer, and the ScoringEngines. A bug has been fixed in computing the value for slider questions. The label identifiers in the circle questions have changed from all lower case to camel case. That is, topleft is now topLeft. Several issues have been corrected in the circle answers where the point values did not match the labels. Testing and code coverage support and reports have been added.