Commit Graph

9874 Commits

Author SHA1 Message Date
Alberto Miedes Garcés
620c83fb69 Simplify the way QueryTypeCreator is used 2017-01-27 12:54:33 +01:00
Alberto Miedes Garcés
073ce38a8d Improved API docs autogeneration 2017-01-27 12:39:44 +01:00
Juanjo Bazán
51be80eedc removes answer <-> voter association 2017-01-27 11:59:37 +01:00
Alberto Miedes Garcés
6101848f7a Run pending migration 2017-01-27 11:54:02 +01:00
Alberto Miedes Garcés
4b7cebf686 Improved public_for_api scopes and corresponding specs 2017-01-26 18:29:59 +01:00
Amaia Castro
996aa7b2be Merge pull request #96 from medialab-prado/94-hide-comments-when-showing-index
Hide comments box when showing index
2017-01-26 13:23:22 +01:00
Juanjo Bazán
ce7bac4a59 Merge branch 'master' into polls 2017-01-26 13:16:03 +01:00
Juanjo Bazán
b1a5a324c7 adds missing checkbox label for unfeasible investments 2017-01-26 13:15:43 +01:00
Alberto Miedes Garcés
5b7cbccd19 Merge branch 'master' into api-dev 2017-01-26 12:39:59 +01:00
Alberto Miedes Garcés
7cbd8da994 Move outdated Tag specs to ActsAsTaggableOn::Tag specs file 2017-01-26 12:26:42 +01:00
Alberto Miedes Garcés
14798deab0 Fix bug in singular_association resolver 2017-01-26 12:00:01 +01:00
Juanjo Bazán
4efc7e6fd1 Merge pull request #1368 from consul/polls-question-show
Polls question show
2017-01-26 11:56:56 +01:00
kikito
47abeff7fa fixes specs 2017-01-26 11:39:25 +01:00
kikito
183f8432eb Merge branch 'polls' into polls-question-show 2017-01-26 11:36:34 +01:00
Alberto Miedes Garcés
0c00b53765 Add Vote vote_flag field to API 2017-01-26 10:59:46 +01:00
Alberto Miedes Garcés
e8fc387574 Add Organization to API 2017-01-26 10:57:02 +01:00
Alberto Miedes Garcés
69fc161b83 Show taggings in API 2017-01-26 10:48:05 +01:00
Alberto Miedes Garcés
83267330a7 Group methods related to text generation for GraphQL documentation into a module 2017-01-26 10:47:12 +01:00
kikito
d8b54d2adc fixes question specs 2017-01-25 18:43:30 +01:00
kikito
d9351b123d prints a button to redirect to the poll when a question is answerable 2017-01-25 17:58:09 +01:00
Enrique García
613f16c27b Merge pull request #1367 from consul/poll_answers
Poll answers
2017-01-25 17:34:51 +01:00
Juanjo Bazán
cc6d841978 refactors age calculation 2017-01-25 17:16:17 +01:00
Juanjo Bazán
754095f4d0 fixes modified i18n key 2017-01-25 17:15:38 +01:00
Fernando Blat
08987f7c0c Merge pull request #95 from medialab-prado/69-find-annotation-with-same-ranges
Create a new comment instead of a new annotation with the same ranges
2017-01-25 16:31:51 +01:00
Amaia Castro
53d13d8524 Create a new comment instead of a new annotation with the same ranges 2017-01-25 16:04:10 +01:00
Juanjo Bazán
b13a76963a records participation of user via web
answering a poll question creates a voter with the user data to record
participation in question’s poll
2017-01-25 14:21:03 +01:00
Juanjo Bazán
086f4a4170 refactors Poll::Voter 2017-01-25 14:19:36 +01:00
Juanjo Bazán
5a72e4fbe8 fixes factories method call 2017-01-25 14:18:32 +01:00
Juanjo Bazán
0b2454fb97 adds User#age 2017-01-25 14:17:49 +01:00
Alberto Miedes Garcés
e7f55b10e2 Remove obsolete specs 2017-01-25 13:58:44 +01:00
Alberto Miedes Garcés
e3fca5c49f Remove functionality related to votes demographic info
Since this was giving me too much pain and nobody actually requested
this functionality, I decided to remove it.
2017-01-25 13:37:29 +01:00
Juanjo Bazán
8d8d822323 adds answer spec 2017-01-25 13:04:26 +01:00
Juanjo Bazán
5806d86e33 changes poll_voters to optionally reference an answer
adds indexes for poll_voters
2017-01-25 12:57:00 +01:00
Juanjo Bazán
6bc4f5b307 adds Poll::Answer model for web users
PartialResults is kept for booth results
2017-01-25 12:46:44 +01:00
Juanjo Bazán
8f235c25d3 poll has_many voters 2017-01-25 12:18:15 +01:00
Juanjo Bazán
900563e31c adds poll_id and stats fields to poll_voters 2017-01-25 12:03:48 +01:00
Juanjo Bazán
480f92bdd9 Merge pull request #1366 from consul/polls-geozones
Polls Geozones
2017-01-25 11:31:58 +01:00
kikito
499f9b51e2 makes it possible to create orphan poll questions 2017-01-25 11:19:18 +01:00
Alberto Miedes Garcés
ef6d089022 Refactor GraphqlController 2017-01-25 11:17:08 +01:00
kikito
2be88cb316 Adds missing validation to poll::question. Fixes specs 2017-01-25 10:46:57 +01:00
kikito
25930563e9 adds missing i18n 2017-01-25 10:15:38 +01:00
kikito
e935629fdb i18n 2017-01-24 19:01:28 +01:00
kikito
a4585b00f2 Merge branch 'polls' into polls-geozones 2017-01-24 18:26:23 +01:00
kikito
15b531f068 Fixes failing specs 2017-01-24 18:10:41 +01:00
kikito
6ed73f34b6 Adds activerecord translations 2017-01-24 18:10:30 +01:00
kikito
ddf8d5f811 Removes answerable/non_answerable questions in polls
Now they are either all answerable or non-answerable, so it is not
worth it to make the distinction in code
2017-01-24 18:10:13 +01:00
kikito
6711063c7d Moves geozones from question to poll in user show views 2017-01-24 18:09:27 +01:00
kikito
ab63c18d01 Moves geozones from questions to polls in admin show views 2017-01-24 18:08:48 +01:00
kikito
176a190149 Moves geozones from questions to polls in admin forms 2017-01-24 18:08:15 +01:00
kikito
65b0d27995 Moves geozones from questions to polls in admin controllers 2017-01-24 18:06:41 +01:00