labimotion 2.2.0.rc17 → 2.2.0.rc18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/labimotion/apis/mtt_api.rb +6 -3
- data/lib/labimotion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac9e13a86048207de58add4ce3c2670dd3d3ece7b334103a4b8afef774309bd7
|
|
4
|
+
data.tar.gz: a21c3957630ea45d248eec5f49999e31424d3ea30c70b3d9b34b11dbe3105c12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ec1e065535fe7fbfa1c94f82f1f5f06057857aa6439b41fab7e8570b4b584276a9625fd5d806431a6abe3307b147107f6e91469c65b351bcf3b5a9f868d8d83
|
|
7
|
+
data.tar.gz: 4ab8e424d00107d029dbe0cdd97740a2d2470994121c1d82b40fd902c5bbd1d1712849756da75631f675666ee39f09a4d56f0839452eb0a29a9b8a78c1ef37bc
|
|
@@ -29,12 +29,15 @@ module Labimotion
|
|
|
29
29
|
|
|
30
30
|
resource :mtt do
|
|
31
31
|
namespace :requests do
|
|
32
|
-
desc 'Get MTT requests for current user'
|
|
32
|
+
desc 'Get MTT requests for current user, scoped to a single element'
|
|
33
|
+
params do
|
|
34
|
+
requires :element_id, type: Integer, desc: 'Only return requests for this element'
|
|
35
|
+
end
|
|
33
36
|
get do
|
|
34
|
-
# Get
|
|
37
|
+
# Get requests created by current user for the selected element only
|
|
35
38
|
requests = Labimotion::DoseRespRequest
|
|
36
39
|
.includes(:dose_resp_outputs)
|
|
37
|
-
.where(created_by: current_user.id)
|
|
40
|
+
.where(created_by: current_user.id, element_id: params[:element_id])
|
|
38
41
|
.order(created_at: :desc)
|
|
39
42
|
|
|
40
43
|
# Return formatted response
|
data/lib/labimotion/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: labimotion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.0.
|
|
4
|
+
version: 2.2.0.rc18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chia-Lin Lin
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-07-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: caxlsx
|