inferno_core 0.4.10 → 0.4.12
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/inferno/apps/web/controllers/test_runs/results/index.rb +1 -1
- data/lib/inferno/apps/web/router.rb +1 -1
- data/lib/inferno/dsl/input_output_handling.rb +3 -2
- data/lib/inferno/exceptions.rb +2 -2
- data/lib/inferno/public/217.bundle.js +1 -1
- data/lib/inferno/public/bundle.js +15 -15
- data/lib/inferno/public/bundle.js.LICENSE.txt +39 -46
- data/lib/inferno/repositories/session_data.rb +39 -11
- data/lib/inferno/utils/preset_processor.rb +6 -0
- data/lib/inferno/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: 4b1eba213bf449c0eb90414707f7f10dbdc6d905a3318e10f9897c57dc8f50ea
|
4
|
+
data.tar.gz: 889d85b5f4d88ed64931456d98badf3e1906a4adad570e636a16a6b4284e4e7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ea65d2a4eb2541d74312cf0f761acb89f7c57406d930de97660ba0252b7dd03a9a08c0e87352a747ea8265c4e8786d2046b7ca7ed60932e115b262c28d6bce1
|
7
|
+
data.tar.gz: ac4069552e2187bb5eac1d607b7ece11ef96e2ca81074260252d8b5f51183c0363ba2cba8dcbf1e8c26d9302f6a486bfc180ccd24358ff5e56a6e8aedcb77d42
|
@@ -7,7 +7,7 @@ module Inferno
|
|
7
7
|
include Import[test_runs_repo: 'inferno.repositories.test_runs']
|
8
8
|
|
9
9
|
def handle(req, res)
|
10
|
-
results = test_runs_repo.results_for_test_run(req.params[:
|
10
|
+
results = test_runs_repo.results_for_test_run(req.params[:id])
|
11
11
|
res.body = serialize(results)
|
12
12
|
end
|
13
13
|
end
|
@@ -16,7 +16,7 @@ module Inferno
|
|
16
16
|
get '/:id', to: Inferno::Web::Controllers::TestRuns::Show, as: :show
|
17
17
|
delete '/:id', to: Inferno::Web::Controllers::TestRuns::Destroy, as: :destroy
|
18
18
|
|
19
|
-
get '/results', to: Inferno::Web::Controllers::TestRuns::Results::Index, as: :results
|
19
|
+
get ':id/results', to: Inferno::Web::Controllers::TestRuns::Results::Index, as: :results
|
20
20
|
end
|
21
21
|
|
22
22
|
scope 'test_sessions' do
|
@@ -8,12 +8,13 @@ module Inferno
|
|
8
8
|
# @param input_params [Hash] options for input such as type, description, or title
|
9
9
|
# @option input_params [String] :title Human readable title for input
|
10
10
|
# @option input_params [String] :description Description for the input
|
11
|
-
# @option input_params [String] :type text | textarea | radio | oauth_credentials
|
11
|
+
# @option input_params [String] :type text | textarea | radio | checkbox | oauth_credentials
|
12
12
|
# @option input_params [String] :default The default value for the input
|
13
13
|
# @option input_params [Boolean] :optional Set to true to not require input for test execution
|
14
14
|
# @option input_params [Boolean] :locked If true, the user can not alter the value
|
15
15
|
# @option input_params [Hash] :options Possible input option formats based on input type
|
16
|
-
# @option options [Array] :list_options Array of options for input formats
|
16
|
+
# @option options [Array] :list_options Array of options for input formats
|
17
|
+
# that require a list of possible values (radio and checkbox)
|
17
18
|
# @return [void]
|
18
19
|
# @example
|
19
20
|
# input :patient_id, title: 'Patient ID', description: 'The ID of the patient being searched for',
|
data/lib/inferno/exceptions.rb
CHANGED
@@ -77,8 +77,8 @@ module Inferno
|
|
77
77
|
end
|
78
78
|
|
79
79
|
class BadSessionDataType < RuntimeError
|
80
|
-
def initialize(name,
|
81
|
-
super("Expected '#{name}' to be a #{
|
80
|
+
def initialize(name, expected_class_names, actual_class)
|
81
|
+
super("Expected '#{name}' to be a #{expected_class_names}, but found a #{actual_class.name}.")
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkinferno_web_app=self.webpackChunkinferno_web_app||[]).push([[217],{3217:(t,e,n)=>{n.r(e),n.d(e,{getCLS:()=>
|
1
|
+
"use strict";(self.webpackChunkinferno_web_app=self.webpackChunkinferno_web_app||[]).push([[217],{3217:(t,e,n)=>{n.r(e),n.d(e,{getCLS:()=>d,getFCP:()=>m,getFID:()=>v,getLCP:()=>h,getTTFB:()=>S});var i,a,r=function(t){return{name:t,value:arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,delta:0,entries:[],id:"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),isFinal:!1}},o=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(t){}},s=!1,u=!1,c=function(t){s=!t.persisted},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u||(addEventListener("pagehide",c),addEventListener("beforeunload",(function(){})),u=!0),addEventListener("visibilitychange",(function(e){var n=e.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:n,isUnloading:s})}),{capture:!0,once:e})},l=function(t,e,n,i){var a;return function(){n&&e.isFinal&&n.disconnect(),e.value>=0&&(i||e.isFinal||"hidden"===document.visibilityState)&&(e.delta=e.value-(a||0),(e.delta||e.isFinal||void 0===a)&&(t(e),a=e.value))}},d=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),e())},s=o("layout-shift",a);s&&(e=l(t,i,s,n),p((function(t){var n=t.isUnloading;s.takeRecords().map(a),n&&(i.isFinal=!0),e()})))},f=function(){return void 0===i&&(i="hidden"===document.visibilityState?0:1/0,p((function(t){var e=t.timeStamp;return i=e}),!0)),{get timeStamp(){return i}}},m=function(t){var e,n=r("FCP"),i=f(),a=o("paint",(function(t){"first-contentful-paint"===t.name&&t.startTime<i.timeStamp&&(n.value=t.startTime,n.isFinal=!0,n.entries.push(t),e())}));a&&(e=l(t,n,a))},v=function(t){var e=r("FID"),n=f(),i=function(t){t.startTime<n.timeStamp&&(e.value=t.processingStart-t.startTime,e.entries.push(t),e.isFinal=!0,s())},a=o("first-input",i),s=l(t,e,a);a?p((function(){a.takeRecords().map(i),a.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(t,i){i.timeStamp<n.timeStamp&&(e.value=t,e.isFinal=!0,e.entries=[{entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+t}],s())}))},g=function(){return a||(a=new Promise((function(t){return["scroll","keydown","pointerdown"].map((function(e){addEventListener(e,t,{once:!0,passive:!0,capture:!0})}))}))),a},h=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r("LCP"),a=f(),s=function(t){var n=t.startTime;n<a.timeStamp?(i.value=n,i.entries.push(t)):i.isFinal=!0,e()},u=o("largest-contentful-paint",s);if(u){e=l(t,i,u,n);var c=function(){i.isFinal||(u.takeRecords().map(s),i.isFinal=!0,e())};g().then(c),p(c,!0)}},S=function(t){var e,n=r("TTFB");e=function(){try{var e=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,e={entryType:"navigation",startTime:0};for(var n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e}();n.value=n.delta=e.responseStart,n.entries=[e],n.isFinal=!0,t(n)}catch(t){}},"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)}}}]);
|