marklogic/marklogic-samplestack — pull request #363 by grechaw (2014-12-10 19:33:44+00:00)
Title: Seed data and bugs

Don't merge yet -- just getting this ready and documented.

This PR updates samplestack to use new seed data.
This new seed data, 1.6, uses strings for the "accepted" values, because of an EA-3 bug. These will go back to boolean when we have the 8.0-1 server to work with.
There are some changes to mary and joe that are in this application data and in the seed data too.

There is a change to /v1/session payload -- rather than returning the array of vote posts for a user, it returns voteCount. The change mike requested for hasVoted is in place in this PR, although @stu-salsbury and I have discussed implementing hasVoted directly in the questions payload. Whether browser will get voting working with this PR or needs more discussion is TBD, but what we agreed on for #269 is in place.

Tests are all passing -- though I've noticed an issue with sort-frequency test... it sometimes fails on the first run AFTER dbload is run -- I think this is because of the asynchronous nature of index updates.

The checkbox for 'show resolved only' does not work with this PR in place -- the browser needs to change to look for a string rather than boolean, until we go back to boolean as mentioned above.

In short -- seed-data 1.6 is not available (it probably will be by the time you're looking at this though) , and there's a breaking change to hasVoted and to the 'show resolved only' checkbox.