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
rgarcia
3ba57bbab2
adds valuator tags
2017-01-08 13:24:05 +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
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
rgarcia
dde1d34172
fixes conflicts with master
2017-01-05 01:56:35 +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
b36deb0382
Read API types and fields from config/api.yml
2017-01-04 14:26:30 +01:00
Fernando Blat
8350143496
Don't fetch setting if table doesn't exist
2017-01-04 13:37:55 +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
kikito
68d598a43d
Merge branch 'master' into budgets
2017-01-02 12:10:23 +01:00
Alberto Miedes Garcés
f4e0ef7eea
Truncate votes api timestamp to hour
2017-01-02 12:00:58 +01:00
Alberto Miedes Garcés
8fe38f889b
Fix typo
2017-01-02 10:52:27 +01:00
kikito
4adf32d582
Changes initializer to avoid crash when migrating database from scratch
2017-01-02 10:02:34 +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
0f663603d0
Only create field to retrieve single objects in QueryRoot if ID was exposed
2016-12-29 14:19:11 +01:00
Alberto Miedes Garcés
90130f20e7
Add Votes info to api
2016-12-29 12:03:00 +01:00
Alberto Miedes Garcés
80c3108a18
Add Tag to api
2016-12-29 11:13:57 +01:00
Alberto Miedes Garcés
074a8182f6
Add ProposalNotification to api
2016-12-29 10:58:40 +01:00
rgarcia
0a6e86ea83
increase delayed job max run time to 30 minutes
2016-12-28 11:41:41 +01:00
rgarcia
c9f62bf2b9
fixes conflicts
2016-12-28 11:41:32 +01:00
Alberto Miedes Garcés
90ff84b6ef
Update API fields for Comment
2016-12-27 18:18:22 +01:00
Alberto Miedes Garcés
0e501e2edd
Update API fields for Debate, User and Geozone
2016-12-27 18:18:00 +01:00
Alberto Miedes Garcés
506696df0a
Call <ApiModel>::public_for_api if available
2016-12-27 18:17:02 +01:00
kikito
9d97421b0e
Merge branch 'master' into budgets
2016-12-27 14:02:12 +01:00
Alberto Miedes Garcés
2741dcf03c
Temporary remove organizations from API
2016-12-26 20:45:46 +01:00
Alberto Miedes Garcés
5daf59e813
Update Proposal fields exposed in API
2016-12-26 13:42:45 +01:00
Alberto Miedes Garcés
d4b049175c
Merge branch 'master' into api-dev-0.18.11
2016-12-26 12:55:17 +01:00
Juanjo Bazán
d057c9457d
Merge branch 'master' into signature-sheets
2016-12-23 20:23:56 +01:00
Fernando Blat
85ce7d7227
Devise won't read mail from Settings in test environment
2016-12-23 15:45:20 +01:00
Fernando Blat
a07fbc5b41
Extract mailer from name and address to a setting
2016-12-23 11:28:53 +01:00
rgarcia
3c682b8a9b
adds signature sheets
2016-12-20 12:21:05 +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
aef20aadf7
Refactor specs for TypeCreator and ConsulSchema
2016-11-30 13:44:31 +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
Alberto Miedes Garcés
8b30aaa6d4
Merge branch 'master' into api-dev
2016-11-18 16:40:33 +01:00
Alberto Miedes Garcés
700fcaab16
Expose proposal/debate comments in the API so I can test :has_many associations
2016-11-18 16:24:41 +01:00
Alberto Miedes Garcés
fc61d63aff
Fixed bug for the Comment element inside the API_TYPE_DEFINITIONS
2016-11-17 17:25: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
b10b701319
Started GraphQL::TypeCreator testing
2016-11-14 16:08:56 +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
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
1f72c5cc74
improves expired password view
2016-09-30 10:10:20 +02:00
Marcia
4269f3810b
Merge remote-tracking branch 'upstream/master' into admin_password_expired
2016-09-27 13:26:08 +02:00