Skip to content

Commit 2526ef4

Browse files
authored
Merge pull request #253 from lifeomic/FLE-346-remove-foundation-xml-import
FLE-346: Remove lo tasks create-foundation-xml-import (breaking)
2 parents da064c6 + 30be11b commit 2526ef4

3 files changed

Lines changed: 6 additions & 158 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Removed
11+
12+
- **BREAKING:** Removed `lo tasks create-foundation-xml-import`. The Foundation XML task-service pipeline was removed ([FLE-346](https://lifeomic.atlassian.net/browse/FLE-346), [task-service#199](https://github.com/lifeomic/task-service/pull/199)). Use the GA4GH replacement flow.
13+
814
## [13.9.0] - 2023-01-04
915

1016
### Added

lib/cmds/tasks_cmds/create-foundation-task.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

test/unit/commands/task.test.js

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const cancel = proxyquire('../../../lib/cmds/tasks_cmds/cancel', mocks);
2828
const retry = proxyquire('../../../lib/cmds/tasks_cmds/retry', mocks);
2929
const list = proxyquire('../../../lib/cmds/tasks_cmds/list', mocks);
3030
const create = proxyquire('../../../lib/cmds/tasks_cmds/create', mocks);
31-
const createFoundationTask = proxyquire('../../../lib/cmds/tasks_cmds/create-foundation-task', mocks);
3231
const createNantomicsTask = proxyquire('../../../lib/cmds/tasks_cmds/create-nantomics-task', mocks);
3332
const createAshionTask = proxyquire('../../../lib/cmds/tasks_cmds/create-ashion-task', mocks);
3433
const createNantBulkTask = proxyquire('../../../lib/cmds/tasks_cmds/create-nant-bulk-task', mocks);
@@ -88,74 +87,6 @@ test.serial.cb('The "tasks-create" command should create a task', t => {
8887
.parse('create');
8988
});
9089

91-
test.serial.cb('The "create-foundation-xml-import" command should create a foundation ingest task', t => {
92-
const res = { data: {} };
93-
postStub.onFirstCall().returns(res);
94-
callback = () => {
95-
t.is(postStub.callCount, 1);
96-
t.is(postStub.getCall(0).args[1], '/v1/tasks/system/foundation-xml-import');
97-
t.deepEqual(postStub.getCall(0).args[2], {
98-
xmlFileId: 'c8ef7300-1373-4e51-8eb9-ff333600f6a5',
99-
datasetId: 'db3e09e9-1ecd-4976-aa5e-70ac7ada0cc3',
100-
reportFileId: '1234',
101-
subjectId: '2a6dc73e-ed30-4387-94c1-0cd661da56d9',
102-
sequenceName: 'test3',
103-
testType: 'test1',
104-
performerId: 'performer1',
105-
indexedDate: '1999-01-01T00:00:00.000Z',
106-
indexType: 'all',
107-
reIngestFile: false,
108-
bodySite: 'Colon',
109-
bodySiteSystem: 'http://a.fancy.system.com',
110-
bodySiteDisplay: 'body site notation',
111-
sendFailedTo: 'failed@user.com'
112-
});
113-
t.is(printSpy.callCount, 1);
114-
t.is(printSpy.getCall(0).args[0], res.data);
115-
t.end();
116-
};
117-
118-
yargs.command(createFoundationTask)
119-
.parse('create-foundation-xml-import db3e09e9-1ecd-4976-aa5e-70ac7ada0cc3 -x c8ef7300-1373-4e51-8eb9-ff333600f6a5 ' +
120-
'-r 1234 -s 2a6dc73e-ed30-4387-94c1-0cd661da56d9 -n test3 --test-type test1 --performer-id performer1 ' +
121-
'--indexed-date "1999-01-01" --index-type all --body-site "Colon" --body-site-system "http://a.fancy.system.com" ' +
122-
'--body-site-display "body site notation" --send-failed-to failed@user.com');
123-
});
124-
125-
test.serial.cb('The "create-foundation-xml-import" accepts re-ingest-file as an optional boolean flag', t => {
126-
const res = { data: {} };
127-
postStub.onFirstCall().returns(res);
128-
callback = () => {
129-
t.is(postStub.callCount, 1);
130-
t.is(postStub.getCall(0).args[1], '/v1/tasks/system/foundation-xml-import');
131-
t.deepEqual(postStub.getCall(0).args[2], {
132-
xmlFileId: 'c8ef7300-1373-4e51-8eb9-ff333600f6a5',
133-
datasetId: 'db3e09e9-1ecd-4976-aa5e-70ac7ada0cc3',
134-
reportFileId: '1234',
135-
subjectId: '2a6dc73e-ed30-4387-94c1-0cd661da56d9',
136-
sequenceName: 'test3',
137-
testType: 'test1',
138-
performerId: 'performer1',
139-
indexedDate: '1999-01-01T00:00:00.000Z',
140-
indexType: 'all',
141-
reIngestFile: true,
142-
bodySite: 'Colon',
143-
bodySiteSystem: 'http://a.fancy.system.com',
144-
bodySiteDisplay: 'body site notation',
145-
sendFailedTo: undefined
146-
});
147-
t.is(printSpy.callCount, 1);
148-
t.is(printSpy.getCall(0).args[0], res.data);
149-
t.end();
150-
};
151-
152-
yargs.command(createFoundationTask)
153-
.parse('create-foundation-xml-import db3e09e9-1ecd-4976-aa5e-70ac7ada0cc3 -x c8ef7300-1373-4e51-8eb9-ff333600f6a5 ' +
154-
'-r 1234 -s 2a6dc73e-ed30-4387-94c1-0cd661da56d9 -n test3 --test-type test1 --performer-id performer1 ' +
155-
'--indexed-date "1999-01-01" --index-type all --re-ingest-file --body-site "Colon" ' +
156-
'--body-site-system "http://a.fancy.system.com" --body-site-display "body site notation"');
157-
});
158-
15990
test.serial.cb('The "create-ashion-import" command should create a ashion ingest task', t => {
16091
const res = { data: {} };
16192
postStub.onFirstCall().returns(res);

0 commit comments

Comments
 (0)