Bookkeeping icon indicating copy to clipboard operation
Bookkeeping copied to clipboard

[O2B-780] Create run type and detector types if they do not already e…

Open martinboulais opened this issue 3 years ago • 1 comments

I have a JIRA ticket

  • [x] branch and/or PR name(s) include(s) JIRA ID
  • [x] issue has "Fix version" assigned
  • [ ] issue "Status" is set to "In review"
  • [x] PR labels are selected

Notable changes for users:

  • When creating or updating a run, if related detectors and run type do not exists, create them

martinboulais avatar Nov 18 '22 08:11 martinboulais

Codecov Report

Merging #803 (e587dca) into main (fd9d54e) will increase coverage by 0.14%. The diff coverage is 92.18%.

:exclamation: Current head e587dca differs from pull request most recent head a52d75c. Consider uploading reports for the commit a52d75c to get more accurate results

@@            Coverage Diff             @@
##             main     #803      +/-   ##
==========================================
+ Coverage   47.30%   47.45%   +0.14%     
==========================================
  Files         451      455       +4     
  Lines        7149     7180      +31     
  Branches     1356     1365       +9     
==========================================
+ Hits         3382     3407      +25     
- Misses       3767     3773       +6     
Impacted Files Coverage Δ
lib/server/services/runType/getRunType.js 84.61% <ø> (+53.84%) :arrow_up:
lib/usecases/runType/index.js 100.00% <ø> (ø)
lib/server/services/detector/getDetector.js 84.61% <84.61%> (ø)
lib/server/services/detector/createDetector.js 90.90% <90.90%> (ø)
lib/server/services/runType/createRunType.js 90.90% <90.90%> (ø)
...services/detector/getOrCreateAllDetectorsByName.js 91.66% <91.66%> (ø)
lib/server/services/run/RunService.js 100.00% <100.00%> (+10.25%) :arrow_up:
lib/server/services/runType/getOrCreateRunType.js 100.00% <100.00%> (ø)
lib/usecases/run/StartRunUseCase.js 92.59% <100.00%> (-0.96%) :arrow_down:
...r/services/detector/getAllDetectorsByNameOrFail.js 0.00% <0.00%> (-80.00%) :arrow_down:
... and 5 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Dec 09 '22 09:12 codecov[bot]