Skip to content

Commit 07b068b

Browse files
committed
Add api to accept data requests
In this PR I change how the accepted_at is used. It was in a weird place because right now the owner could create a request that has it set automatically. So basically the code was not really used. I now use it to let the owner approve the requests made through IRIS. This also made it possible to remove the dead code :) references [#125](railslove/recover-backlog#125)
1 parent 0569a51 commit 07b068b

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ gem 'activestorage-validator'
2222
gem 'image_processing'
2323
gem 'paper_trail'
2424
gem 'protobuf'
25+
gem 'jimson'
2526

2627
# Emails
2728
gem 'mailgun-ruby', '~> 1.2'

Gemfile.lock

+8
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ GEM
9393
aws-sigv4 (1.2.3)
9494
aws-eventstream (~> 1, >= 1.0.2)
9595
bcrypt (3.1.16)
96+
blankslate (3.1.3)
9697
bootsnap (1.7.5)
9798
msgpack (~> 1.0)
9899
builder (3.2.4)
@@ -180,6 +181,11 @@ GEM
180181
interactor-rails (2.2.1)
181182
interactor (~> 3.0)
182183
rails (>= 4.2)
184+
jimson (0.13.0)
185+
blankslate (>= 3.1.3)
186+
multi_json (>= 1.11.2)
187+
rack (>= 1.4.5)
188+
rest-client (>= 1.7.3)
183189
jmespath (1.4.0)
184190
jquery-rails (4.4.0)
185191
rails-dom-testing (>= 1, < 3)
@@ -225,6 +231,7 @@ GEM
225231
mini_portile2 (2.5.1)
226232
minitest (5.14.4)
227233
msgpack (1.4.2)
234+
multi_json (1.15.0)
228235
multi_xml (0.6.0)
229236
multipart-post (2.1.1)
230237
nested_form (0.3.2)
@@ -421,6 +428,7 @@ DEPENDENCIES
421428
image_processing
422429
inky-rb
423430
interactor-rails
431+
jimson
424432
letter_opener
425433
listen (~> 3.5)
426434
mailgun-ruby (~> 1.2)

spec/interactors/accept_data_request_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
it "accepts the data request" do
1414
data_request = subject.call.data_request
15+
expect(data_request).to_not be_nil
1516
expect(data_request.accepted_at).to_not be_nil
1617
end
1718
end

0 commit comments

Comments
 (0)