Skip to content

Commit fadcd2e

Browse files
committed
[CST-6685] removed -a option
1 parent aa53e2f commit fadcd2e

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,10 @@ describe('ExportBatchSelectorComponent', () => {
150150
done();
151151
});
152152
});
153-
it('should invoke the batch-export script with option --id uuid and -a option', () => {
153+
it('should invoke the batch-export script with option --id uuid option', () => {
154154
const parameterValues: ProcessParameter[] = [
155155
Object.assign(new ProcessParameter(), { name: '--id', value: mockCollection.uuid }),
156156
Object.assign(new ProcessParameter(), { name: '--type', value: 'COLLECTION' }),
157-
Object.assign(new ProcessParameter(), { name: '-a' }),
158157
];
159158
expect(scriptService.invoke).toHaveBeenCalledWith(BATCH_EXPORT_SCRIPT_NAME, parameterValues, []);
160159
});
@@ -176,7 +175,7 @@ describe('ExportBatchSelectorComponent', () => {
176175
done();
177176
});
178177
});
179-
it('should invoke the Batch-export script with option --id uuid without the -a option', () => {
178+
it('should invoke the Batch-export script with option --id uuid without option', () => {
180179
const parameterValues: ProcessParameter[] = [
181180
Object.assign(new ProcessParameter(), { name: '--id', value: mockCollection.uuid }),
182181
Object.assign(new ProcessParameter(), { name: '--type', value: 'COLLECTION' })

src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ export class ExportBatchSelectorComponent extends DSOSelectorModalWrapperCompone
8686
Object.assign(new ProcessParameter(), { name: '--type', value: 'COLLECTION' })
8787
];
8888
return this.authorizationDataService.isAuthorized(FeatureID.AdministratorOf).pipe(
89-
switchMap((isAdmin) => {
90-
if (isAdmin) {
91-
parameterValues.push(Object.assign(new ProcessParameter(), {name: '-a'}));
92-
}
89+
switchMap(() => {
9390
return this.scriptDataService.invoke(BATCH_EXPORT_SCRIPT_NAME, parameterValues, []);
9491
}),
9592
getFirstCompletedRemoteData(),

0 commit comments

Comments
 (0)