Alberto Miedes Garcés
d4752491f8
Fix timezones
2017-05-15 20:39:59 +02:00
Alberto Miedes Garcés
ad8aba0739
Revised public fields, wrote more exhaustive specs
2017-05-15 20:22:11 +02:00
Alberto Miedes Garcés
5d9054d284
Merge branch 'master' into api-dev-PRs
...
Conflicts:
Gemfile.lock
config/routes.rb
db/dev_seeds.rb
db/schema.rb
2017-05-11 21:59:42 +02:00
rgarcia
229f9cfefc
renames class to migrate spending proposals to investments
2017-05-04 20:37:28 +02:00
Raimond Garcia
ead9b58d07
Merge branch 'master' into iss-1192-test
2017-04-12 11:51:48 +02:00
Alberto Miedes Garcés
468b88da6f
Merge branch 'master' into iss-1192-test
2017-03-09 13:12:43 +01:00
kikito
ba87eaa47c
Moves Age calculation to a module instead of monkeypatching Date
2017-02-03 15:35:41 +01:00
kikito
3535cfc0d6
implements Date#age_in_years extension method
2017-02-03 12:46:07 +01:00
Alberto Miedes Garcés
c52602e04b
Simplify the way ApiTypesCreator is used
2017-01-27 13:13:19 +01:00
Alberto Miedes Garcés
620c83fb69
Simplify the way QueryTypeCreator is used
2017-01-27 12:54:33 +01:00
Alberto Miedes Garcés
4b7cebf686
Improved public_for_api scopes and corresponding specs
2017-01-26 18:29:59 +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
e8fc387574
Add Organization to API
2017-01-26 10:57:02 +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
Alberto Miedes Garcés
18fb1485eb
No need to specify the resolve type for GraphQL::Schema
...
This was needed back in the 0.18.11 version but not anymore after the
update to 1.3.0
2017-01-16 11:28:28 +01:00
Alberto Miedes Garcés
cb0a477d88
Fix weird bug caused by pending specs
2017-01-16 11:23:48 +01:00
Alberto Miedes Garcés
7a9373942a
Testing GraphQL 1.3.0 in Travis
2017-01-12 20:11:47 +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
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
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
9cfb3eb52e
Write specs for GraphQL::AssociationResolver
2017-01-03 18:30:53 +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
7dc4d80e7b
Read GraphQL field types from file instead of from database
2017-01-01 19:36:07 +01:00
Alberto Miedes Garcés
2741dcf03c
Temporary remove organizations from API
2016-12-26 20:45:46 +01:00
Alberto Miedes Garcés
10eedebcb2
Refactor GraphQL specs to use public_author instead of author
2016-12-13 14:26:00 +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
a0f1976c1a
Refactor GraphQL::TypeCreator specs
2016-12-02 21:53:36 +01:00
Alberto Miedes Garcés
c973195267
Refactor ConsulSchema specs
2016-12-02 21:30:13 +01:00
Alberto Miedes Garcés
aef20aadf7
Refactor specs for TypeCreator and ConsulSchema
2016-11-30 13:44:31 +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
027bdf3f16
DRYed specs
2016-11-23 00:16:01 +01:00
Alberto Miedes Garcés
13273f4bc2
DRYed specs
2016-11-22 23:49:05 +01:00
Alberto Miedes Garcés
7bb1778124
Finished tests for GraphQL queries for single resources
2016-11-18 19:57:07 +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
860704d908
Rewrote tests to tackle more specific stuff
2016-11-18 16:27:15 +01:00
Alberto Miedes Garcés
4e2a003931
Half-made tests for ConsulSchema
2016-11-17 17:54:02 +01:00
Alberto Miedes Garcés
96bfbbf9af
Half-made tests for GraphQL::TypeCreator
2016-11-17 17:48:03 +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
kikito
b4c7675c31
imports votes
2016-09-07 15:58:39 +02:00