Alberto Miedes Garcés
5b7cbccd19
Merge branch 'master' into api-dev
2017-01-26 12:39:59 +01:00
Alberto Miedes Garcés
14798deab0
Fix bug in singular_association resolver
2017-01-26 12:00:01 +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
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
113f9b32d7
Merge branch 'master' into polls
2017-01-19 16:51:19 +01:00
Alberto Miedes Garcés
0107ddce11
Fix bug when resolving multiple associations
2017-01-16 11:24:02 +01:00
Alberto Miedes Garcés
d2a8d509b6
Cleaning
2017-01-13 01:21:59 +01:00
Alberto Miedes Garcés
d1f14ffb93
Simplify the way GraphQL 'resolve' is used
2017-01-12 19:51:58 +01:00
Alberto Miedes Garcés
b0bd30e3d1
Move api config file parsing method into the ApiTypesCreator class
2017-01-09 13:36:53 +01:00
Alberto Miedes Garcés
60786f17c2
Improved code coverage for GraphQL resolvers specs
2017-01-09 10:14:31 +01:00
Alberto Miedes Garcés
e1b3d468e5
Fix failing spec
2017-01-08 14:27:20 +01:00
Alberto Miedes Garcés
398bc8c211
Split api types creation and query type creation between two different classes
2017-01-08 13:39:50 +01:00
Alberto Miedes Garcés
b9d2bc2801
Wrote specs for QueryType creation
2017-01-08 12:45:48 +01:00
Alberto Miedes Garcés
7027164867
Clean code
2017-01-08 11:37:56 +01:00
Alberto Miedes Garcés
ed6ba384dd
Wrote specs for GraphQL root resolvers
2017-01-08 11:37:15 +01:00
Alberto Miedes Garcés
0b302c2afc
Move code from GraphQL initializer into GraphQL::TypeCreator
2017-01-07 23:04:30 +01:00
Alberto Miedes Garcés
d76e4518e6
Extract QueryRoot resolve functions into its own classes
2017-01-07 22:43:42 +01:00
Alberto Miedes Garcés
3c73f35416
Removed useless code
2017-01-07 22:20:28 +01:00
Alberto Miedes Garcés
98db33f623
Track email digests
2017-01-05 23:31:11 +01:00
Alberto Miedes Garcés
6445fffc0d
Merge branch 'master' into api-dev-0.18.11
2017-01-04 16:21:32 +01:00
Alberto Miedes Garcés
9cfb3eb52e
Write specs for GraphQL::AssociationResolver
2017-01-03 18:30:53 +01:00
Alberto Miedes Garcés
cdc3b46370
Extract TypeCreator methods into AssociationResolver class
2017-01-03 16:52:13 +01:00
Alberto Miedes Garcés
4e12e9055c
Refactor GraphQL::TypeCreator
2017-01-03 16:27:11 +01:00
Alberto Miedes Garcés
0b4004042f
Expose age_range instead of date_of_birth for Voter/User class
2017-01-02 14:12:37 +01:00
Alberto Miedes Garcés
4783f14eb4
Show voter info in api
2017-01-02 00:13:16 +01:00
Alberto Miedes Garcés
7dc4d80e7b
Read GraphQL field types from file instead of from database
2017-01-01 19:36:07 +01:00
Alberto Miedes Garcés
0aed5338f6
Customize resolvers to only permit allowed records
2016-12-29 14:17:44 +01:00
Juanjo Bazán
5ec12e4b5b
Merge branch 'master' into redux-polling
2016-12-27 18:22:06 +01:00
kikito
9d97421b0e
Merge branch 'master' into budgets
2016-12-27 14:02:12 +01:00
rgarcia
398206c375
updates census api with invalid stubbed response
2016-12-20 12:21:35 +01:00
Alberto Miedes Garcés
402b07d959
Expose Proposal public_author using scopes instead of modules
2016-12-13 14:04:53 +01:00
Alberto Miedes Garcés
82954c922a
Expose public_author for proposals
2016-12-11 15:42:17 +01:00
Alberto Miedes Garcés
b2730b6239
DRY GraphQL::TypeCreator
2016-12-11 15:20:17 +01:00
Alberto Miedes Garcés
42355e770c
Fixed bug related to wrong use of GraphQL::Relay connection helper
2016-12-11 12:22:15 +01:00
Alberto Miedes Garcés
fdea4ad6ac
Merge branch 'master' into api-dev
2016-12-03 13:53:13 +01:00
Alberto Miedes Garcés
d1e1ee9d41
Moved api_types into TypeCreator
2016-11-30 13:43:10 +01:00
kikito
2a2179d0f3
Merge branch 'master' into budget
2016-11-28 11:41:49 +01:00
kikito
f0b8cfd4a2
Time.now -> Time.current
2016-11-23 19:19:19 +01:00
Alberto Miedes Garcés
8b30aaa6d4
Merge branch 'master' into api-dev
2016-11-18 16:40:33 +01:00
Alberto Miedes Garcés
6fca1f02fe
Added clarifying comments related to GraphQL return types
2016-11-17 17:23:57 +01:00
Alberto Miedes Garcés
36bdad8851
Fixed bug in GraphQL::TypeCreator
2016-11-17 17:23:27 +01:00
rgarcia
bb3c4c6399
adds consistency to ruby code style
...
Keep a blank line before and after private
Keep a blank line before and after protected
Remove extra empty line at class body end
Remove extra blank line
Add final newline
Use 2 (not 3) spaces for indentation
Use 2 (not 4) spaces for indentation
Remove space before comma
Add space after comma
Remove trailing whitespaces
Remove unnecessary spacing
Use snake_case for variable names
Do not use then for multi-line if
Remove unused block argument - i
Use the new Ruby 1.9 hash syntax
Remove unused assignment to variable
Indent when as deep as case
Align attributes
Align end with def
2016-11-15 11:18:43 +01:00
Alberto Miedes Garcés
195d1c5f69
Fixed bug in GraphQL::TypeCreator
2016-11-14 15:11:41 +01:00
rgarcia
b54aee5702
displays voter name if already voted
2016-11-14 13:52:38 +01:00
rgarcia
44df91346a
validates voter in census
2016-11-14 13:51:59 +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
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
Marcia
680c0636ed
expired password last
2016-10-06 14:19:48 +02:00
Marcia
78c6a30424
optimize code
2016-09-27 13:07:06 +02:00