query-interface-server 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.autotest +23 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +7 -0
- data/README.md +24 -1
- data/lib/query-interface-server/resource.rb +100 -58
- data/lib/query-interface-server/version.rb +1 -1
- data/spec/lib/query_interface_spec.rb +206 -106
- data/spec/spec_helper.rb +3 -0
- metadata +3 -3
- data/spec/log/development.log +0 -488
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c354df3c0641bc4a0f2af5ff73a0e1ad082bca6
|
4
|
+
data.tar.gz: 9716fc8c754f75573b722c50e0d6bf51c683590c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e0f57542ce05c3371cfc27baf947895dd42186067d5c58f6172e6515fb37849cb87688350c12321621ff80bbc78817b3ce32aab3e69fd23c0d07d89dee58648
|
7
|
+
data.tar.gz: 0c1393eff412dae4076a6097ad3740e409236b3328a15c3111741a47d7535b5ecf5906b35a458093ee6f19f7d14b010527b8b8cd091e185a70e9874978fb8b6e
|
data/.autotest
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
Autotest.add_hook :initialize do |at|
|
2
|
+
%w[ .git log script tasks LICENSE README.rdoc ].each do |exception|
|
3
|
+
at.add_exception(exception)
|
4
|
+
end
|
5
|
+
|
6
|
+
at.clear_mappings
|
7
|
+
|
8
|
+
|
9
|
+
at.add_mapping %r{\Alib/(.+)\.rb\z} do |_,match|
|
10
|
+
at.files_matching %r{\Aspec/lib/query_interface_spec\.rb\z}
|
11
|
+
end
|
12
|
+
|
13
|
+
# when the spec configuration changes make sure all specs pass
|
14
|
+
at.add_mapping %r{\Aspec/spec_helper\.rb\z} do
|
15
|
+
at.files_matching %r{\Aspec/lib/query_interface_spec\.rb\z}
|
16
|
+
end
|
17
|
+
|
18
|
+
# when a spec is updated, make sure it passes
|
19
|
+
at.add_mapping %r{\Aspec/lib/(.+)_spec\.rb\z} do |filename,_|
|
20
|
+
filename
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -27,6 +27,7 @@ GEM
|
|
27
27
|
tzinfo (~> 0.3.37)
|
28
28
|
arel (4.0.0)
|
29
29
|
atomic (1.1.10)
|
30
|
+
autotest-standalone (4.5.11)
|
30
31
|
builder (3.1.4)
|
31
32
|
diff-lcs (1.2.4)
|
32
33
|
erubis (2.7.0)
|
@@ -72,6 +73,10 @@ GEM
|
|
72
73
|
rspec-expectations (~> 2.14.0)
|
73
74
|
rspec-mocks (~> 2.14.0)
|
74
75
|
sequel (4.0.0)
|
76
|
+
simplecov (0.7.1)
|
77
|
+
multi_json (~> 1.0)
|
78
|
+
simplecov-html (~> 0.7.1)
|
79
|
+
simplecov-html (0.7.1)
|
75
80
|
sprockets (2.10.0)
|
76
81
|
hike (~> 1.2)
|
77
82
|
multi_json (~> 1.0)
|
@@ -94,8 +99,10 @@ PLATFORMS
|
|
94
99
|
ruby
|
95
100
|
|
96
101
|
DEPENDENCIES
|
102
|
+
autotest-standalone
|
97
103
|
rails
|
98
104
|
rake
|
99
105
|
rspec
|
100
106
|
rspec-rails
|
101
107
|
sequel
|
108
|
+
simplecov
|
data/README.md
CHANGED
@@ -17,5 +17,28 @@ or use ``gem 'query-interface-server'`` in your Gemfile when using bundler.
|
|
17
17
|
##Examples
|
18
18
|
|
19
19
|
|
20
|
-
###
|
20
|
+
### Include QueryInterface in a Controller
|
21
21
|
|
22
|
+
```ruby
|
23
|
+
class UsersController < ApplicationController
|
24
|
+
|
25
|
+
include QueryInterface::Server::Resource.for(User)
|
26
|
+
|
27
|
+
end
|
28
|
+
```
|
29
|
+
|
30
|
+
### Add Route for Query
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
MyApplication::Application.routes.draw do
|
34
|
+
|
35
|
+
resources :users, only: [] do
|
36
|
+
collection do
|
37
|
+
get :query
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
#...
|
42
|
+
|
43
|
+
end
|
44
|
+
```
|
@@ -11,13 +11,52 @@ module QueryInterface
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
+
class UnknownTransformation < Exception; end
|
15
|
+
class InvalidContextException < Exception; end
|
16
|
+
|
14
17
|
module InstanceMethods
|
15
18
|
|
19
|
+
attr_writer :context, :context_type
|
20
|
+
|
21
|
+
def validate_transformation(transformation)
|
22
|
+
methods = {
|
23
|
+
filter: {method: :filter_transformation, result: :dataset, accepts: :dataset},
|
24
|
+
with: {method: :with_transformation, result: :dataset, accepts: :dataset},
|
25
|
+
order: {method: :order_transformation, result: :dataset, accepts: :dataset},
|
26
|
+
instance: {method: :instance_transformation, result: :instance, accepts: :dataset},
|
27
|
+
context: {method: :context_transformation, result: :dataset, accepts: :instance},
|
28
|
+
map_ids: {method: :map_ids, result: :ids, accepts: :dataset},
|
29
|
+
paginate: {method: :paginate, result: :page, accepts: :dataset},
|
30
|
+
first: {method: :first, result: :instance, accepts: :dataset},
|
31
|
+
last: {method: :last, result: :instance, accepts: :dataset},
|
32
|
+
count: {method: :count, result: :count, accepts: :dataset}
|
33
|
+
}
|
34
|
+
argument_method = transformation['transformation'].to_sym
|
35
|
+
raise UnknownTransformation, "#{argument_method}" unless methods.has_key?(argument_method)
|
36
|
+
param = transformation['parameter']
|
37
|
+
description = methods[argument_method]
|
38
|
+
raise InvalidContextException, "expected: #{description[:accepts]}, got: #{self.context_type}" unless self.context_type == description[:accepts]
|
39
|
+
return [description[:method], param, description[:result]]
|
40
|
+
end
|
41
|
+
|
42
|
+
def context_type
|
43
|
+
@context_type ||= :dataset
|
44
|
+
end
|
45
|
+
|
46
|
+
def context
|
47
|
+
@context ||= query_model.filter.select_all(query_model.table_name)
|
48
|
+
end
|
49
|
+
|
50
|
+
def id_selector
|
51
|
+
primary_key = self.context.model.primary_key.to_s
|
52
|
+
"#{self.context.model.table_name}__#{primary_key}".to_sym
|
53
|
+
end
|
54
|
+
|
16
55
|
def query_send(method_name, *args)
|
17
56
|
if respond_to?(method_name)
|
18
57
|
send(method_name, *args)
|
19
|
-
elsif
|
20
|
-
|
58
|
+
elsif self.context.respond_to?(method_name)
|
59
|
+
self.context.send(method_name, *args)
|
21
60
|
elsif block_given?
|
22
61
|
yield(*args)
|
23
62
|
else
|
@@ -25,69 +64,72 @@ module QueryInterface
|
|
25
64
|
end
|
26
65
|
end
|
27
66
|
|
28
|
-
def
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
67
|
+
def default_order
|
68
|
+
order_transformation(self.id_selector.to_s)
|
69
|
+
end
|
70
|
+
|
71
|
+
def filter_transformation(param)
|
72
|
+
self.query_send("filter_#{param['field']}", param['value'])
|
73
|
+
end
|
74
|
+
|
75
|
+
def with_transformation(param)
|
76
|
+
self.query_send("with_#{param}")
|
77
|
+
end
|
78
|
+
|
79
|
+
def order_transformation(param)
|
80
|
+
field = param
|
81
|
+
direction = :asc
|
82
|
+
if field.starts_with?('-')
|
83
|
+
field = field[1..-1]
|
84
|
+
direction = :desc
|
85
|
+
end
|
86
|
+
query_send("order_#{field}_#{direction}") do
|
87
|
+
self.context.order_append(Sequel.send(direction, field.to_sym))
|
38
88
|
end
|
39
89
|
end
|
40
90
|
|
91
|
+
def instance_transformation(param)
|
92
|
+
self.context.filter(self.id_selector => param).first
|
93
|
+
end
|
94
|
+
|
95
|
+
def context_transformation(param)
|
96
|
+
context = query_send("#{param}_dataset")
|
97
|
+
context.select_all(context.model.table_name)
|
98
|
+
end
|
99
|
+
|
100
|
+
def map_ids(param)
|
101
|
+
default_order.select(self.id_selector).map(&:id)
|
102
|
+
end
|
103
|
+
|
104
|
+
def count(param)
|
105
|
+
{count: self.context.count}
|
106
|
+
end
|
107
|
+
|
108
|
+
def paginate(param)
|
109
|
+
context = default_order
|
110
|
+
{total: context.count, objects: context.paginate(param['page'].to_i, param['per_page'].to_i)}
|
111
|
+
end
|
112
|
+
|
113
|
+
def first(param)
|
114
|
+
default_order.first
|
115
|
+
end
|
116
|
+
|
117
|
+
def last(param)
|
118
|
+
default_order.last
|
119
|
+
end
|
120
|
+
|
41
121
|
def query
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
@instances = query_model.filter.select_all(query_model.table_name)
|
50
|
-
query_data["conditions"].each do |key, value|
|
51
|
-
@instances = query_send("filter_#{key}", value)
|
52
|
-
end
|
53
|
-
|
54
|
-
query_data["with"].each do |field|
|
55
|
-
@instances = query_send("with_#{field}")
|
56
|
-
end
|
57
|
-
|
58
|
-
order = query_data['order'] << "#{query_model.table_name}__id"
|
59
|
-
order_query(order)
|
60
|
-
|
61
|
-
case query_data["mode"].to_sym
|
62
|
-
when :evaluate
|
63
|
-
@result = @instances
|
64
|
-
when :count
|
65
|
-
@result = {count: @instances.count}
|
66
|
-
when :ids
|
67
|
-
id_selector = "#{query_model.table_name}__id".to_sym
|
68
|
-
@result = @instances.select(id_selector).map(&:id)
|
69
|
-
when :paginate
|
70
|
-
page = query_data["page"].to_i
|
71
|
-
per_page = query_data["per_page"].to_i
|
72
|
-
@result = {total: @instances.count, objects: @instances.paginate(page, per_page)}
|
73
|
-
when :first
|
74
|
-
@result = @instances.first
|
75
|
-
when :last
|
76
|
-
@result = @instances.last
|
77
|
-
else
|
78
|
-
return head :unprocessable_entity
|
79
|
-
end
|
80
|
-
if @result
|
81
|
-
respond_with(@result)
|
82
|
-
else
|
83
|
-
head :not_found
|
84
|
-
end
|
85
|
-
else
|
86
|
-
head :unprocessable_entity
|
122
|
+
transformations = params[:transformations] || []
|
123
|
+
transformations = JSON.parse(transformations) unless transformations.is_a?(Array)
|
124
|
+
transformations.each do |transformation|
|
125
|
+
method, param, context_type = self.validate_transformation(transformation)
|
126
|
+
self.context = self.send(method, param)
|
127
|
+
self.context_type = context_type
|
87
128
|
end
|
129
|
+
self.context = self.default_order if self.context_type == :dataset
|
130
|
+
respond_with(self.context)
|
88
131
|
end
|
89
132
|
end
|
90
|
-
|
91
133
|
end
|
92
134
|
end
|
93
135
|
end
|
@@ -1,14 +1,25 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
class Foo; end
|
4
|
-
|
5
3
|
describe QueryInterface, type: :controller do
|
4
|
+
class Foo
|
5
|
+
def self.table_name
|
6
|
+
:foo_table
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
class Nested
|
11
|
+
def self.table_name
|
12
|
+
:nested_table
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
|
6
17
|
controller(ActionController::Base) do
|
7
18
|
respond_to :json
|
8
19
|
include QueryInterface::Server::Resource.for(Foo)
|
9
20
|
end
|
10
|
-
let(:foo){
|
11
|
-
let(:foos){ double('foo instances', to_json: '{}') }
|
21
|
+
let(:foo){ double("Foo instance").as_null_object }
|
22
|
+
let(:foos){ double('foo instances', to_json: '{}', model: Foo) }
|
12
23
|
|
13
24
|
it "provides query_model as an instance method in the base class" do
|
14
25
|
controller.query_model.should == Foo
|
@@ -16,120 +27,231 @@ describe QueryInterface, type: :controller do
|
|
16
27
|
|
17
28
|
context "GET 'query'" do
|
18
29
|
|
19
|
-
context "
|
20
|
-
|
21
|
-
|
30
|
+
context "transformations" do
|
31
|
+
it "only allows for a predefined list of transformations" do
|
32
|
+
expect {
|
33
|
+
controller.validate_transformation({'transformation' => 'bogus', 'parameter' => nil})
|
34
|
+
}.to raise_error("bogus")
|
35
|
+
controller.validate_transformation({'transformation' => 'with', 'parameter' => nil}).should eq([:with_transformation, nil, :dataset])
|
36
|
+
end
|
37
|
+
|
38
|
+
it "only allows transformations who accept the current content_type to run" do
|
39
|
+
controller.context_type = :instance
|
40
|
+
expect {
|
41
|
+
controller.validate_transformation({'transformation' => 'with', 'parameter' => 'y'})
|
42
|
+
}.to raise_error("expected: dataset, got: instance")
|
43
|
+
end
|
44
|
+
|
45
|
+
context "id selector" do
|
46
|
+
it "creates the id selector qualified from table name and primary key" do
|
47
|
+
controller.context = double('context', model: double('model', table_name: :table, primary_key: :id))
|
48
|
+
controller.id_selector.should == :table__id
|
49
|
+
end
|
22
50
|
end
|
23
51
|
|
24
|
-
context "
|
25
|
-
it "
|
26
|
-
|
27
|
-
|
52
|
+
context "context accessor" do
|
53
|
+
it "returns the existing context" do
|
54
|
+
context = double("context")
|
55
|
+
controller.instance_variable_set(:@context, context)
|
56
|
+
controller.context.should eq(context)
|
57
|
+
end
|
58
|
+
|
59
|
+
it "creates a new context if non is present" do
|
60
|
+
context = double("context")
|
61
|
+
controller.query_model.should_receive(:filter).and_return(foos)
|
62
|
+
foos.should_receive(:select_all).with(:foo_table).and_return(context)
|
63
|
+
controller.context.should eq(context)
|
64
|
+
assigns(:context).should eq(context)
|
28
65
|
end
|
29
66
|
end
|
67
|
+
|
30
68
|
end
|
31
69
|
|
32
|
-
context "
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
controller.
|
38
|
-
foos.should_receive(:select_all).with(:foo_table).and_return(foos)
|
70
|
+
context "transformation methods" do
|
71
|
+
let(:context) {double("context")}
|
72
|
+
|
73
|
+
it "performs a filter transformation" do
|
74
|
+
controller.should_receive(:query_send).with('filter_a', 'b').and_return(context)
|
75
|
+
controller.filter_transformation({'field' => 'a', 'value' => 'b'}).should eq(context)
|
39
76
|
end
|
40
77
|
|
41
|
-
|
42
|
-
|
78
|
+
it "performs a with transformation" do
|
79
|
+
controller.should_receive(:query_send).with('with_x').and_return(context)
|
80
|
+
controller.with_transformation('x').should eq(context)
|
43
81
|
end
|
44
82
|
|
45
|
-
|
46
|
-
|
83
|
+
it "performs a instance transformation on an existing context" do
|
84
|
+
id_selector = :id_selector
|
85
|
+
controller.context = context
|
86
|
+
controller.should_receive(:id_selector).and_return(id_selector)
|
87
|
+
context.should_receive(:filter).with({id_selector => 42}).and_return(context)
|
88
|
+
context.should_receive(:first).and_return(context)
|
89
|
+
controller.instance_transformation(42).should eq(context)
|
90
|
+
end
|
47
91
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
92
|
+
it "performs a context transformation" do
|
93
|
+
controller.should_receive(:query_send).with('context_dataset').and_return(context)
|
94
|
+
context.should_receive(:model).and_return(double("model", table_name: :foo_table))
|
95
|
+
context.should_receive(:select_all).with(:foo_table).and_return(context)
|
96
|
+
controller.context_transformation('context').should eq(context)
|
97
|
+
end
|
53
98
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
99
|
+
context "order transformation" do
|
100
|
+
it "should call query_send with order_*_* for the supplied order field" do
|
101
|
+
ordered = double("ordered a")
|
102
|
+
controller.should_receive(:query_send).with("order_a_asc").and_return(ordered)
|
103
|
+
controller.order_transformation("a").should eq(ordered)
|
59
104
|
end
|
60
|
-
end
|
61
105
|
|
62
|
-
|
63
|
-
|
106
|
+
it "performs descending ordering if appropriate" do
|
107
|
+
ordered = double("ordered a")
|
108
|
+
controller.should_receive(:query_send).with("order_a_desc").and_return(ordered)
|
109
|
+
controller.order_transformation("-a").should eq(ordered)
|
110
|
+
end
|
64
111
|
|
65
|
-
it "
|
66
|
-
|
67
|
-
|
68
|
-
|
112
|
+
it "performs a fallback sequel ordering operation when no concrete implementation is available" do
|
113
|
+
context = double("context")
|
114
|
+
ordered = double("ordered a")
|
115
|
+
controller.instance_variable_set(:@context, context)
|
116
|
+
context.should_receive(:order_append).with(Sequel.asc(:a)).and_return(ordered)
|
117
|
+
controller.order_transformation("a").should eq(ordered)
|
69
118
|
end
|
70
119
|
|
71
|
-
it "
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
120
|
+
it "performs fallback for descending ordering" do
|
121
|
+
context = double("context")
|
122
|
+
ordered = double("ordered a")
|
123
|
+
controller.instance_variable_set(:@context, context)
|
124
|
+
context.should_receive(:order_append).with(Sequel.desc(:a)).and_return(ordered)
|
125
|
+
controller.order_transformation("-a").should eq(ordered)
|
76
126
|
end
|
77
127
|
end
|
78
128
|
|
79
|
-
|
80
|
-
let(:ordered) { double('ordered').as_null_object }
|
129
|
+
end
|
81
130
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
131
|
+
context "query" do
|
132
|
+
before(:each) do
|
133
|
+
routes.draw { get "query" => "anonymous#query" }
|
134
|
+
Foo.stub(:filter).and_return(foos)
|
135
|
+
Foo.stub(:primary_key).and_return(:id)
|
136
|
+
controller.stub(:order_query)
|
137
|
+
foos.stub(:select_all).with(:foo_table).and_return(foos)
|
138
|
+
end
|
87
139
|
|
88
|
-
|
89
|
-
|
90
|
-
|
140
|
+
|
141
|
+
context "transformation processing" do
|
142
|
+
let(:filtered) { double('filtered').as_null_object }
|
143
|
+
|
144
|
+
it "calls the corresponding methods in any transformation" do
|
145
|
+
controller.should_receive(:filter_foo).with('bar').and_return(filtered)
|
146
|
+
get :query,
|
147
|
+
transformations: [
|
148
|
+
{transformation: :filter, parameter: {field: :foo, value: 'bar'}},
|
149
|
+
], format: :json
|
150
|
+
assigns(:context).should == filtered
|
91
151
|
response.should be_ok
|
92
152
|
end
|
93
153
|
end
|
94
154
|
|
95
|
-
context "query_data['mode']" do
|
96
|
-
it "should return an error when the mode is not known" do
|
97
|
-
query mode: 'frobnicate'
|
98
|
-
response.status.should == 422
|
99
|
-
end
|
100
155
|
|
101
|
-
|
102
|
-
query mode: 'evaluate'
|
103
|
-
response.should be_ok
|
104
|
-
assigns(:result).should == assigns(:instances)
|
105
|
-
end
|
156
|
+
context "end points" do
|
106
157
|
|
107
|
-
it "should return a count of instances when
|
158
|
+
it "should return a count of instances when an 'count' transformation is given" do
|
108
159
|
foos.should_receive(:count).and_return(42)
|
109
|
-
|
160
|
+
get :query,
|
161
|
+
transformations: [
|
162
|
+
{transformation: :count, parameter: nil}
|
163
|
+
], format: :json
|
110
164
|
response.should be_ok
|
111
|
-
assigns(:
|
165
|
+
assigns(:context).should == {count: 42}
|
112
166
|
end
|
113
167
|
|
114
|
-
it "should return a hash with objects and total when
|
168
|
+
it "should return a hash with objects and total when a 'pagination' transformation is given" do
|
169
|
+
controller.should_receive(:default_order).and_return(foos)
|
115
170
|
foos.should_receive(:count).and_return(42)
|
116
171
|
foos.should_receive(:paginate).with(1, 10).and_return('paginated')
|
117
|
-
|
172
|
+
get :query,
|
173
|
+
transformations: [
|
174
|
+
{transformation: :paginate, parameter: {page: 1, per_page: 10}}
|
175
|
+
], format: :json
|
118
176
|
response.should be_ok
|
119
|
-
assigns(:
|
177
|
+
assigns(:context).should == {objects: 'paginated', total: 42}
|
120
178
|
end
|
121
179
|
|
122
|
-
it "should return a single object
|
180
|
+
it "should return a single object when a 'first' transformation is given" do
|
181
|
+
controller.should_receive(:default_order).and_return(foos)
|
123
182
|
foos.should_receive(:first).and_return('first object')
|
124
|
-
|
125
|
-
|
183
|
+
get :query,
|
184
|
+
transformations: [
|
185
|
+
{transformation: :first, parameter: nil}
|
186
|
+
], format: :json
|
187
|
+
assigns(:context).should == 'first object'
|
126
188
|
end
|
127
189
|
|
128
|
-
it "should return a single object
|
190
|
+
it "should return a single object when a 'last' transformation is given" do
|
191
|
+
controller.should_receive(:default_order).and_return(foos)
|
129
192
|
foos.should_receive(:last).and_return('last object')
|
130
|
-
|
131
|
-
|
193
|
+
get :query,
|
194
|
+
transformations: [
|
195
|
+
{transformation: :last, parameter: nil}
|
196
|
+
], format: :json
|
197
|
+
assigns(:context).should == 'last object'
|
132
198
|
end
|
199
|
+
|
200
|
+
it "should return a list of ids when a 'map_ids' transformation is given" do
|
201
|
+
controller.should_receive(:default_order).and_return(foos)
|
202
|
+
foos.should_receive(:select).with(:foo_table__id).and_return([double("one", id: 1), double("two", id: 2)])
|
203
|
+
get :query,
|
204
|
+
transformations: [
|
205
|
+
{transformation: :map_ids, parameter: nil}
|
206
|
+
], format: :json
|
207
|
+
assigns(:context).should == [1, 2]
|
208
|
+
end
|
209
|
+
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
context "instance calls" do
|
215
|
+
before(:each) do
|
216
|
+
routes.draw { get "query" => "anonymous#query" }
|
217
|
+
Foo.stub(:filter).and_return(foos)
|
218
|
+
Foo.stub(:table_name).and_return(:foo_table)
|
219
|
+
controller.stub(:order_query)
|
220
|
+
end
|
221
|
+
|
222
|
+
context "instance evaluation" do
|
223
|
+
|
224
|
+
it "queries for the single object supplied by instance" do
|
225
|
+
foos.should_receive(:select_all).with(:foo_table).and_return(foos)
|
226
|
+
id_selector = double("id selector")
|
227
|
+
controller.should_receive(:id_selector).and_return(id_selector)
|
228
|
+
foos.should_receive(:filter).with(id_selector => 99).and_return(foos)
|
229
|
+
foos.should_receive(:first).and_return(foo)
|
230
|
+
get :query, transformations:
|
231
|
+
[
|
232
|
+
{transformation: :instance, parameter: 99},
|
233
|
+
], format: :json
|
234
|
+
response.should be_ok
|
235
|
+
assigns(:context).should eq(foo)
|
236
|
+
end
|
237
|
+
|
238
|
+
it "assigns an association dataset if a context is supplied" do
|
239
|
+
foos.should_receive(:select_all).with(:foo_table).and_return(foos)
|
240
|
+
id_selector = double("id selector")
|
241
|
+
nested = double("nested things", model: Nested)
|
242
|
+
controller.should_receive(:id_selector).and_return(id_selector)
|
243
|
+
foos.should_receive(:filter).with(id_selector => 99).and_return(foos)
|
244
|
+
foos.should_receive(:first).and_return(foo)
|
245
|
+
controller.should_receive(:query_send).with("nested_dataset").and_return(nested)
|
246
|
+
nested.should_receive(:select_all).with(:nested_table).and_return(nested)
|
247
|
+
controller.should_receive(:default_order).and_return(nested)
|
248
|
+
get :query, transformations:
|
249
|
+
[
|
250
|
+
{transformation: :instance, parameter: 99},
|
251
|
+
{transformation: :context, parameter: 'nested'},
|
252
|
+
], format: :json
|
253
|
+
assigns(:context).should eq(nested)
|
254
|
+
response.should be_ok
|
133
255
|
end
|
134
256
|
end
|
135
257
|
end
|
@@ -138,8 +260,8 @@ describe QueryInterface, type: :controller do
|
|
138
260
|
let(:send_result) {double("send result")}
|
139
261
|
|
140
262
|
before(:each) do
|
141
|
-
@
|
142
|
-
controller.instance_variable_set(:@
|
263
|
+
@context = double("context")
|
264
|
+
controller.instance_variable_set(:@context, @context)
|
143
265
|
end
|
144
266
|
|
145
267
|
it "should call the supplied method name on the controller if it responds to such a message" do
|
@@ -148,48 +270,26 @@ describe QueryInterface, type: :controller do
|
|
148
270
|
controller.query_send("method_name_foo", "argument").should eq(send_result)
|
149
271
|
end
|
150
272
|
|
151
|
-
it "should call the supplied method name on @
|
273
|
+
it "should call the supplied method name on @context if avaiable and controller doesnt provide the method" do
|
152
274
|
controller.should_receive(:respond_to?).with("method_name_foo").and_return(false)
|
153
|
-
@
|
154
|
-
@
|
275
|
+
@context.should_receive(:respond_to?).with("method_name_foo").and_return(true)
|
276
|
+
@context.should_receive(:send).with("method_name_foo", "argument").and_return(send_result)
|
155
277
|
controller.query_send("method_name_foo", "argument").should eq(send_result)
|
156
278
|
end
|
157
279
|
|
158
|
-
it "should yield arguments to a supplied block if neither
|
280
|
+
it "should yield arguments to a supplied block if neither context nor controller provide the requested method" do
|
159
281
|
controller.should_receive(:respond_to?).with("method_name_foo").and_return(false)
|
160
|
-
@
|
282
|
+
@context.should_receive(:respond_to?).with("method_name_foo").and_return(false)
|
161
283
|
controller.query_send("method_name_foo", "argument") {|*args| args[0].should eq("argument")}
|
162
284
|
end
|
163
285
|
|
164
286
|
it "should raise an exception if non of the above can be done" do
|
165
287
|
controller.should_receive(:respond_to?).with("method_name_foo").and_return(false)
|
166
|
-
@
|
288
|
+
@context.should_receive(:respond_to?).with("method_name_foo").and_return(false)
|
167
289
|
expect {
|
168
290
|
controller.query_send("method_name_foo", "argument")
|
169
291
|
}.to raise_error(Exception, "method method_name_foo not found")
|
170
292
|
end
|
171
293
|
end
|
172
294
|
|
173
|
-
context "order_query" do
|
174
|
-
it "should call query_send with order_*_* for every order field" do
|
175
|
-
controller.instance_variable_set(:@instances, foos)
|
176
|
-
ordered_by_a = double('ordered by a')
|
177
|
-
ordered_by_a_b = double('ordered by a, b')
|
178
|
-
controller.should_receive(:query_send).with("order_a_asc").and_return(ordered_by_a)
|
179
|
-
controller.should_receive(:query_send).with("order_b_desc").and_return(ordered_by_a_b)
|
180
|
-
controller.order_query(['a', '-b'])
|
181
|
-
assigns(:instances).should == ordered_by_a_b
|
182
|
-
end
|
183
|
-
|
184
|
-
it "should guess the order parameters when no manual ordering is implemented" do
|
185
|
-
controller.instance_variable_set(:@instances, foos)
|
186
|
-
ordered_by_a = double('ordered by a')
|
187
|
-
ordered_by_a_b = double('ordered by a, b')
|
188
|
-
foos.should_receive(:order_append).with(Sequel.asc(:a)).and_return(ordered_by_a)
|
189
|
-
ordered_by_a.should_receive(:order_append).with(Sequel.desc(:b)).and_return(ordered_by_a_b)
|
190
|
-
controller.order_query(['a', '-b'])
|
191
|
-
assigns(:instances).should == ordered_by_a_b
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
295
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query-interface-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Kopecky <andreas.kopecky@radarservices.com>
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sequel
|
@@ -90,6 +90,7 @@ extra_rdoc_files:
|
|
90
90
|
- LICENSE
|
91
91
|
- README.md
|
92
92
|
files:
|
93
|
+
- .autotest
|
93
94
|
- Gemfile
|
94
95
|
- Gemfile.lock
|
95
96
|
- LICENSE
|
@@ -100,7 +101,6 @@ files:
|
|
100
101
|
- lib/query-interface-server/version.rb
|
101
102
|
- query-interface-server.gemspec
|
102
103
|
- spec/lib/query_interface_spec.rb
|
103
|
-
- spec/log/development.log
|
104
104
|
- spec/spec_helper.rb
|
105
105
|
homepage: http://github.com/rs-dev/query-interface-server
|
106
106
|
licenses:
|
data/spec/log/development.log
DELETED
@@ -1,488 +0,0 @@
|
|
1
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
2
|
-
Processing by AnonymousController#query as JSON
|
3
|
-
Completed 422 Unprocessable Entity in 0ms
|
4
|
-
Processing by AnonymousController#query as JSON
|
5
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
6
|
-
Completed 500 Internal Server Error in 0ms
|
7
|
-
Processing by AnonymousController#query as JSON
|
8
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
9
|
-
Completed 500 Internal Server Error in 0ms
|
10
|
-
Processing by AnonymousController#query as JSON
|
11
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
12
|
-
Completed 500 Internal Server Error in 0ms
|
13
|
-
Processing by AnonymousController#query as JSON
|
14
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
15
|
-
Completed 500 Internal Server Error in 0ms
|
16
|
-
Processing by AnonymousController#query as JSON
|
17
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
18
|
-
Completed 500 Internal Server Error in 0ms
|
19
|
-
Processing by AnonymousController#query as JSON
|
20
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
21
|
-
Completed 500 Internal Server Error in 0ms
|
22
|
-
Processing by AnonymousController#query as JSON
|
23
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
24
|
-
Completed 422 Unprocessable Entity in 0ms
|
25
|
-
Processing by AnonymousController#query as JSON
|
26
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
27
|
-
Completed 500 Internal Server Error in 0ms
|
28
|
-
Processing by AnonymousController#query as JSON
|
29
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
30
|
-
Completed 500 Internal Server Error in 0ms
|
31
|
-
Processing by AnonymousController#query as JSON
|
32
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
33
|
-
Completed 500 Internal Server Error in 20ms
|
34
|
-
Processing by AnonymousController#query as JSON
|
35
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
36
|
-
Completed 500 Internal Server Error in 0ms
|
37
|
-
Processing by AnonymousController#query as JSON
|
38
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
39
|
-
Completed 500 Internal Server Error in 0ms
|
40
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
41
|
-
Processing by AnonymousController#query as JSON
|
42
|
-
Completed 422 Unprocessable Entity in 0ms
|
43
|
-
Processing by AnonymousController#query as JSON
|
44
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
45
|
-
Completed 200 OK in 3ms (Views: 0.1ms)
|
46
|
-
Processing by AnonymousController#query as JSON
|
47
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
48
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
49
|
-
Processing by AnonymousController#query as JSON
|
50
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
51
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
52
|
-
Processing by AnonymousController#query as JSON
|
53
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
54
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
55
|
-
Processing by AnonymousController#query as JSON
|
56
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
57
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
58
|
-
Processing by AnonymousController#query as JSON
|
59
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
60
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
61
|
-
Processing by AnonymousController#query as JSON
|
62
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
63
|
-
Completed 422 Unprocessable Entity in 0ms
|
64
|
-
Processing by AnonymousController#query as JSON
|
65
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
66
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
67
|
-
Processing by AnonymousController#query as JSON
|
68
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
69
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
70
|
-
Processing by AnonymousController#query as JSON
|
71
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
72
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
73
|
-
Processing by AnonymousController#query as JSON
|
74
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
75
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
76
|
-
Processing by AnonymousController#query as JSON
|
77
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
78
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
79
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
80
|
-
Processing by AnonymousController#query as JSON
|
81
|
-
Completed 422 Unprocessable Entity in 0ms
|
82
|
-
Processing by AnonymousController#query as JSON
|
83
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
84
|
-
Completed 200 OK in 3ms (Views: 0.1ms)
|
85
|
-
Processing by AnonymousController#query as JSON
|
86
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
87
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
88
|
-
Processing by AnonymousController#query as JSON
|
89
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
90
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
91
|
-
Processing by AnonymousController#query as JSON
|
92
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
93
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
94
|
-
Processing by AnonymousController#query as JSON
|
95
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
96
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
97
|
-
Processing by AnonymousController#query as JSON
|
98
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
99
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
100
|
-
Processing by AnonymousController#query as JSON
|
101
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
102
|
-
Completed 422 Unprocessable Entity in 0ms
|
103
|
-
Processing by AnonymousController#query as JSON
|
104
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
105
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
106
|
-
Processing by AnonymousController#query as JSON
|
107
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
108
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
109
|
-
Processing by AnonymousController#query as JSON
|
110
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
111
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
112
|
-
Processing by AnonymousController#query as JSON
|
113
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
114
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
115
|
-
Processing by AnonymousController#query as JSON
|
116
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
117
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
118
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
119
|
-
Processing by AnonymousController#query as JSON
|
120
|
-
Completed 422 Unprocessable Entity in 0ms
|
121
|
-
Processing by AnonymousController#query as JSON
|
122
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
123
|
-
Completed 200 OK in 21ms (Views: 0.1ms)
|
124
|
-
Processing by AnonymousController#query as JSON
|
125
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
126
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
127
|
-
Processing by AnonymousController#query as JSON
|
128
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
129
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
130
|
-
Processing by AnonymousController#query as JSON
|
131
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
132
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
133
|
-
Processing by AnonymousController#query as JSON
|
134
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
135
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
136
|
-
Processing by AnonymousController#query as JSON
|
137
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
138
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
139
|
-
Processing by AnonymousController#query as JSON
|
140
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
141
|
-
Completed 422 Unprocessable Entity in 0ms
|
142
|
-
Processing by AnonymousController#query as JSON
|
143
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
144
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
145
|
-
Processing by AnonymousController#query as JSON
|
146
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
147
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
148
|
-
Processing by AnonymousController#query as JSON
|
149
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
150
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
151
|
-
Processing by AnonymousController#query as JSON
|
152
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
153
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
154
|
-
Processing by AnonymousController#query as JSON
|
155
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
156
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
157
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
158
|
-
Processing by AnonymousController#query as JSON
|
159
|
-
Completed 422 Unprocessable Entity in 0ms
|
160
|
-
Processing by AnonymousController#query as JSON
|
161
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
162
|
-
Completed 200 OK in 21ms (Views: 0.1ms)
|
163
|
-
Processing by AnonymousController#query as JSON
|
164
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
165
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
166
|
-
Processing by AnonymousController#query as JSON
|
167
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
168
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
169
|
-
Processing by AnonymousController#query as JSON
|
170
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
171
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
172
|
-
Processing by AnonymousController#query as JSON
|
173
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
174
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
175
|
-
Processing by AnonymousController#query as JSON
|
176
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
177
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
178
|
-
Processing by AnonymousController#query as JSON
|
179
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
180
|
-
Completed 422 Unprocessable Entity in 0ms
|
181
|
-
Processing by AnonymousController#query as JSON
|
182
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
183
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
184
|
-
Processing by AnonymousController#query as JSON
|
185
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
186
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
187
|
-
Processing by AnonymousController#query as JSON
|
188
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
189
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
190
|
-
Processing by AnonymousController#query as JSON
|
191
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
192
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
193
|
-
Processing by AnonymousController#query as JSON
|
194
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
195
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
196
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
197
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
198
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
199
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
200
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
201
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
202
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
203
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
204
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
205
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
206
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
207
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
208
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
209
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
210
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
211
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
212
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
213
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
214
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
215
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
216
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
217
|
-
Processing by AnonymousController#query as JSON
|
218
|
-
Completed 422 Unprocessable Entity in 0ms
|
219
|
-
Processing by AnonymousController#query as JSON
|
220
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
221
|
-
Completed 200 OK in 21ms (Views: 0.1ms)
|
222
|
-
Processing by AnonymousController#query as JSON
|
223
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
224
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
225
|
-
Processing by AnonymousController#query as JSON
|
226
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
227
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
228
|
-
Processing by AnonymousController#query as JSON
|
229
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
230
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
231
|
-
Processing by AnonymousController#query as JSON
|
232
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
233
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
234
|
-
Processing by AnonymousController#query as JSON
|
235
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
236
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
237
|
-
Processing by AnonymousController#query as JSON
|
238
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
239
|
-
Completed 422 Unprocessable Entity in 0ms
|
240
|
-
Processing by AnonymousController#query as JSON
|
241
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
242
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
243
|
-
Processing by AnonymousController#query as JSON
|
244
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
245
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
246
|
-
Processing by AnonymousController#query as JSON
|
247
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
248
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
249
|
-
Processing by AnonymousController#query as JSON
|
250
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
251
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
252
|
-
Processing by AnonymousController#query as JSON
|
253
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
254
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
255
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
256
|
-
Processing by AnonymousController#query as JSON
|
257
|
-
Completed 422 Unprocessable Entity in 0ms
|
258
|
-
Processing by AnonymousController#query as JSON
|
259
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
260
|
-
Completed 200 OK in 21ms (Views: 0.1ms)
|
261
|
-
Processing by AnonymousController#query as JSON
|
262
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
263
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
264
|
-
Processing by AnonymousController#query as JSON
|
265
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
266
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
267
|
-
Processing by AnonymousController#query as JSON
|
268
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
269
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
270
|
-
Processing by AnonymousController#query as JSON
|
271
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
272
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
273
|
-
Processing by AnonymousController#query as JSON
|
274
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
275
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
276
|
-
Processing by AnonymousController#query as JSON
|
277
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
278
|
-
Completed 422 Unprocessable Entity in 0ms
|
279
|
-
Processing by AnonymousController#query as JSON
|
280
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
281
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
282
|
-
Processing by AnonymousController#query as JSON
|
283
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
284
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
285
|
-
Processing by AnonymousController#query as JSON
|
286
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
287
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
288
|
-
Processing by AnonymousController#query as JSON
|
289
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
290
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
291
|
-
Processing by AnonymousController#query as JSON
|
292
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
293
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
294
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
295
|
-
Processing by AnonymousController#query as JSON
|
296
|
-
Completed 422 Unprocessable Entity in 0ms
|
297
|
-
Processing by AnonymousController#query as JSON
|
298
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
299
|
-
Completed 200 OK in 21ms (Views: 0.1ms)
|
300
|
-
Processing by AnonymousController#query as JSON
|
301
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
302
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
303
|
-
Processing by AnonymousController#query as JSON
|
304
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
305
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
306
|
-
Processing by AnonymousController#query as JSON
|
307
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
308
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
309
|
-
Processing by AnonymousController#query as JSON
|
310
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
311
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
312
|
-
Processing by AnonymousController#query as JSON
|
313
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
314
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
315
|
-
Processing by AnonymousController#query as JSON
|
316
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
317
|
-
Completed 422 Unprocessable Entity in 0ms
|
318
|
-
Processing by AnonymousController#query as JSON
|
319
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
320
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
321
|
-
Processing by AnonymousController#query as JSON
|
322
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
323
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
324
|
-
Processing by AnonymousController#query as JSON
|
325
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
326
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
327
|
-
Processing by AnonymousController#query as JSON
|
328
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
329
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
330
|
-
Processing by AnonymousController#query as JSON
|
331
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
332
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
333
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
334
|
-
Processing by AnonymousController#query as JSON
|
335
|
-
Completed 422 Unprocessable Entity in 0ms
|
336
|
-
Processing by AnonymousController#query as JSON
|
337
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
338
|
-
Completed 200 OK in 3ms (Views: 0.1ms)
|
339
|
-
Processing by AnonymousController#query as JSON
|
340
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
341
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
342
|
-
Processing by AnonymousController#query as JSON
|
343
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
344
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
345
|
-
Processing by AnonymousController#query as JSON
|
346
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
347
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
348
|
-
Processing by AnonymousController#query as JSON
|
349
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
350
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
351
|
-
Processing by AnonymousController#query as JSON
|
352
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
353
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
354
|
-
Processing by AnonymousController#query as JSON
|
355
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
356
|
-
Completed 422 Unprocessable Entity in 0ms
|
357
|
-
Processing by AnonymousController#query as JSON
|
358
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
359
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
360
|
-
Processing by AnonymousController#query as JSON
|
361
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
362
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
363
|
-
Processing by AnonymousController#query as JSON
|
364
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
365
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
366
|
-
Processing by AnonymousController#query as JSON
|
367
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
368
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
369
|
-
Processing by AnonymousController#query as JSON
|
370
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
371
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
372
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
373
|
-
Processing by AnonymousController#query as JSON
|
374
|
-
Completed 422 Unprocessable Entity in 0ms
|
375
|
-
Processing by AnonymousController#query as JSON
|
376
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
377
|
-
Completed 200 OK in 3ms (Views: 0.1ms)
|
378
|
-
Processing by AnonymousController#query as JSON
|
379
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
380
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
381
|
-
Processing by AnonymousController#query as JSON
|
382
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
383
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
384
|
-
Processing by AnonymousController#query as JSON
|
385
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
386
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
387
|
-
Processing by AnonymousController#query as JSON
|
388
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
389
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
390
|
-
Processing by AnonymousController#query as JSON
|
391
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
392
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
393
|
-
Processing by AnonymousController#query as JSON
|
394
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
395
|
-
Completed 422 Unprocessable Entity in 0ms
|
396
|
-
Processing by AnonymousController#query as JSON
|
397
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
398
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
399
|
-
Processing by AnonymousController#query as JSON
|
400
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
401
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
402
|
-
Processing by AnonymousController#query as JSON
|
403
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
404
|
-
Completed 200 OK in 2ms (Views: 0.1ms)
|
405
|
-
Processing by AnonymousController#query as JSON
|
406
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
407
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
408
|
-
Processing by AnonymousController#query as JSON
|
409
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
410
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
411
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
412
|
-
Processing by AnonymousController#query as JSON
|
413
|
-
Completed 422 Unprocessable Entity in 0ms
|
414
|
-
Processing by AnonymousController#query as JSON
|
415
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
416
|
-
Completed 200 OK in 3ms (Views: 0.1ms)
|
417
|
-
Processing by AnonymousController#query as JSON
|
418
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
419
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
420
|
-
Processing by AnonymousController#query as JSON
|
421
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
422
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
423
|
-
Processing by AnonymousController#query as JSON
|
424
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
425
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
426
|
-
Processing by AnonymousController#query as JSON
|
427
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
428
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
429
|
-
Processing by AnonymousController#query as JSON
|
430
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
431
|
-
Completed 200 OK in 1ms (Views: 0.0ms)
|
432
|
-
Processing by AnonymousController#query as JSON
|
433
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
434
|
-
Completed 422 Unprocessable Entity in 0ms
|
435
|
-
Processing by AnonymousController#query as JSON
|
436
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
437
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
438
|
-
Processing by AnonymousController#query as JSON
|
439
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
440
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
441
|
-
Processing by AnonymousController#query as JSON
|
442
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
443
|
-
Completed 200 OK in 2ms (Views: 0.1ms)
|
444
|
-
Processing by AnonymousController#query as JSON
|
445
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
446
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
447
|
-
Processing by AnonymousController#query as JSON
|
448
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
449
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
450
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from env_config at /home/natano/.rvm/gems/ruby-2.0.0-p247@query-interface-server/gems/railties-4.0.0/lib/rails/application.rb:141)
|
451
|
-
Processing by AnonymousController#query as JSON
|
452
|
-
Completed 422 Unprocessable Entity in 0ms
|
453
|
-
Processing by AnonymousController#query as JSON
|
454
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
455
|
-
Completed 200 OK in 3ms (Views: 0.1ms)
|
456
|
-
Processing by AnonymousController#query as JSON
|
457
|
-
Parameters: {"query_data"=>{"conditions"=>{"foo"=>"bar"}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
458
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
459
|
-
Processing by AnonymousController#query as JSON
|
460
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
461
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
462
|
-
Processing by AnonymousController#query as JSON
|
463
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[:foo], "order"=>[], "mode"=>:evaluate}}
|
464
|
-
Completed 200 OK in 0ms (Views: 0.1ms)
|
465
|
-
Processing by AnonymousController#query as JSON
|
466
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>:evaluate}}
|
467
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
468
|
-
Processing by AnonymousController#query as JSON
|
469
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>["foo", "-bar", "baz"], "mode"=>:evaluate}}
|
470
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
471
|
-
Processing by AnonymousController#query as JSON
|
472
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"frobnicate"}}
|
473
|
-
Completed 422 Unprocessable Entity in 0ms
|
474
|
-
Processing by AnonymousController#query as JSON
|
475
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"evaluate"}}
|
476
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
477
|
-
Processing by AnonymousController#query as JSON
|
478
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"count"}}
|
479
|
-
Completed 200 OK in 1ms (Views: 0.1ms)
|
480
|
-
Processing by AnonymousController#query as JSON
|
481
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"paginate", "page"=>1, "per_page"=>10}}
|
482
|
-
Completed 200 OK in 2ms (Views: 0.2ms)
|
483
|
-
Processing by AnonymousController#query as JSON
|
484
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"first"}}
|
485
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|
486
|
-
Processing by AnonymousController#query as JSON
|
487
|
-
Parameters: {"query_data"=>{"conditions"=>{}, "with"=>[], "order"=>[], "mode"=>"last"}}
|
488
|
-
Completed 200 OK in 0ms (Views: 0.0ms)
|