Commit Graph

15211 Commits

Author SHA1 Message Date
kikito
598b1b9c01 Adds group by to answerable_by scope to avoid duplicates 2016-11-14 13:35:23 +01:00
Alberto Miedes Garcés
f6cd7a3456 Disable CSRF protection for GraphQL controller
Related documentation at:
http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtec
tion/ClassMethods.html
2016-11-13 20:07:09 +01:00
kikito
38efad77f3 Changes the way question#copy_attributes_from_proposal works 2016-11-11 19:11:53 +01:00
kikito
e5e3fe32da Removes save_and_open_page from spec 2016-11-11 19:11:18 +01:00
kikito
219e139efb Adds poll_partial_result factory 2016-11-11 19:10:56 +01:00
kikito
11a98dce07 Refactors in poll/question model 2016-11-11 19:10:36 +01:00
kikito
0c9e6db04d Implements answers in a partial 2016-11-11 19:10:11 +01:00
kikito
63311d6cd1 reimplements routes for questions 2016-11-11 19:08:46 +01:00
kikito
048ada3e17 Adds poll partial result 2016-11-11 19:08:32 +01:00
kikito
3ce7f671fb Adds poll partial result 2016-11-11 19:08:15 +01:00
Alberto Miedes Garcés
fc2d4fda5b Fixed bug in TypeCreator and improved field descriptions 2016-11-11 12:52:54 +01:00
Alberto Miedes Garcés
0a23533a02 Refactor creation of the QueryRoot
Also incremented the max_depth for nested queries since the use of
pagination increases the needed depth to retrieve useful data (edges,
nodes, etc.)
2016-11-11 12:51:45 +01:00
Alberto Miedes Garcés
dd4b29898c Ran forgotten migration added by my last pull from consul/master 2016-11-10 22:38:22 +01:00
Alberto Miedes Garcés
c42bfbc9a0 Merge branch 'master' into api-coding-madrid 2016-11-10 22:33:27 +01:00
Alberto Miedes Garcés
59a355df1b First working version of new GraphQL::TypeCreator after major refactoring 2016-11-10 20:53:15 +01:00
Alberto Miedes Garcés
49317e2c11 Added support for associations (WITHOUT PAGINATION) 2016-11-08 22:19:16 +01:00
Alberto Miedes Garcés
277c784234 First simple API version with autogenerated GraphQL types 2016-11-08 17:40:13 +01:00
Alberto Miedes Garcés
e7de5c3a7f Deleted old GraphQL type files 2016-11-08 16:38:51 +01:00
kikito
4db6ae489f Adds new passing test to poll questions 2016-11-08 15:53:49 +01:00
kikito
6dd2b54123 Fixes bug in Poll::Question#answerable_by 2016-11-08 15:52:13 +01:00
kikito
506cf0dd70 Refactors polls_controller using answerable_by. Implements more specs 2016-11-07 17:43:53 +01:00
kikito
3255ca700f User new answerable_by method in ability 2016-11-07 17:42:52 +01:00
kikito
83fd70b048 Extracts some logic from poll_question to poll 2016-11-07 17:34:24 +01:00
kikito
d39f19abb8 Defines Poll::Question#answerable_by?(user) and uses it in abilities 2016-11-07 16:28:39 +01:00
kikito
fd3f00d61a Adds missing poll to poll_question factory 2016-11-07 16:27:48 +01:00
kikito
09cb25af30 Adds all_geozones to poll_questions 2016-11-07 16:27:34 +01:00
kikito
f821d7beb7 Implements abilities for poll & poll_question 2016-11-07 10:37:22 +01:00
kikito
35a5136d9f Implements filtering in polls/index 2016-11-03 17:52:15 +01:00
kikito
3d22c556e8 Adds scenarios (some missing) for poll voting 2016-11-02 17:50:08 +01:00
kikito
0305d2bd65 Adds time scopes and methods to poll 2016-11-02 17:49:34 +01:00
Raimond Garcia
f24ced329f Merge pull request #1254 from consul/password-changed-at
sets default value for password_changed_at
2016-11-02 17:43:56 +01:00
Alberto Garcia Cabeza
e778c49e64 removes orange blocks and improves contrast on proposals 2016-11-02 16:31:38 +01:00
rgarcia
1a8f7e119f sets default value for password_changed_at 2016-11-02 14:51:52 +01:00
Alberto Garcia Cabeza
7594981964 changes text 2% of census to 1% 2016-11-02 14:22:37 +01:00
Alberto Garcia Cabeza
2c4b5315c8 removes blue blocks and improves contrast on debates 2016-11-02 13:07:26 +01:00
Alberto Garcia Cabeza
f8649ad6c2 improves styles on comments votes 2016-11-02 12:17:15 +01:00
Alberto Garcia Cabeza
e9b5a8980e removes redundant link on header 2016-10-31 18:39:57 +01:00
Juanjo Bazán
87ec74b49f Merge pull request #1253 from consul/refactor-styles
Refactor styles
2016-10-31 17:27:52 +01:00
Alberto Garcia Cabeza
6fd5e6a67a unifies styles for participation not allowed 2016-10-31 16:50:13 +01:00
kikito
575aa62960 Starts introducing valid answers to poll questions 2016-10-31 16:31:48 +01:00
Enrique García
df7fb0360c Merge pull request #1252 from consul/i18n
I18n
2016-10-31 16:09:09 +01:00
kikito
1aab780592 Starts adding questions to polls 2016-10-31 14:27:25 +01:00
kikito
3eca3faacd First version of Polls Controller 2016-10-31 14:13:56 +01:00
Alberto Garcia Cabeza
d771b739bf renames variables, removes unused styles 2016-10-31 13:25:48 +01:00
Alberto Garcia Cabeza
7d4f92f10a unifies styles of page forms 2016-10-31 13:11:23 +01:00
Alberto Garcia Cabeza
6d9ced63a2 renames and removes unused variables 2016-10-31 13:10:15 +01:00
rgarcia
028cc4362d Makes i18n-tasks only aware of english and spanish locales 2016-10-31 11:54:44 +01:00
rgarcia
d540be333a Makes tolk aware of french and portuguese translations 2016-10-31 11:54:26 +01:00
rgarcia
c0f400a4d9 Adds custom locale name for Português 2016-10-31 11:50:24 +01:00
rgarcia
aeec264b8b makes fallback locale spanish 2016-10-31 11:50:16 +01:00