Skip to content

Commit 7cb7f94

Browse files
authored
Merge pull request #548 from europeana/feat/MET-3379-Temporarily-Remove-Incremental-Harvesting
Comment out incremental harvest functionality
2 parents 0e27102 + 017019c commit 7cb7f94

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

projects/metis/cypress/integration/dataset.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ context('metis-ui', () => {
7575

7676
describe('dataset workflow', () => {
7777
const fieldsOnlyHTTP = ['#url'];
78-
const fieldsOnlyOAI = ['#incremental-harvest', '#harvest-url', '#setspec', '#metadata-format'];
78+
//const fieldsOnlyOAI = ['#incremental-harvest', '#harvest-url', '#setspec', '#metadata-format'];
79+
const fieldsOnlyOAI = ['#harvest-url', '#setspec', '#metadata-format'];
7980

8081
beforeEach(() => {
8182
setupDatasetPage('workflow', 1);

projects/metis/src/app/_models/workflow-form.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const parameterFieldPresets = Object.assign(
6868
if (pType === 'HARVEST') {
6969
paramField = [
7070
ParameterFieldName.harvestUrl,
71-
ParameterFieldName.incrementalHarvest,
71+
//ParameterFieldName.incrementalHarvest,
7272
ParameterFieldName.metadataFormat,
7373
ParameterFieldName.pluginType,
7474
ParameterFieldName.setSpec,

projects/metis/src/app/dataset/workflow/workflow-form-field/workflow-form-field.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
</ng-container>
2929
<ng-container *ngIf="workflowForm.value.pluginType === EnumProtocolType.OAIPMH_HARVEST">
3030
{{ workflowForm.value.harvestUrl }}
31+
<!--
3132
<br />
3233
Incremental harvest: {{ workflowForm.value.incrementalHarvest }}
34+
-->
3335
<br />
3436
Setspec: {{ workflowForm.value.setSpec }}
3537
<ng-container *ngIf="workflowForm.value.metadataFormat">

projects/metis/src/app/dataset/workflow/workflow.component.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
22
import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
33
import { FormControl, ReactiveFormsModule } from '@angular/forms';
4-
import { of } from 'rxjs';
4+
//import { of } from 'rxjs';
55

66
import {
77
createMockPipe,
@@ -19,7 +19,7 @@ import {
1919
PluginMetadata,
2020
PluginType,
2121
successNotification,
22-
Workflow,
22+
//Workflow,
2323
WorkflowExecution,
2424
WorkflowFieldData,
2525
workflowFormFieldConf,
@@ -249,6 +249,7 @@ describe('WorkflowComponent', () => {
249249
expect(fields[1].conf.currentlyViewed).toBeFalsy();
250250
});
251251

252+
/*
252253
it('should enable the incremental-harvesting field', fakeAsync(() => {
253254
const getField = (): FormControl => {
254255
return component.workflowForm.get('incrementalHarvest') as FormControl;
@@ -285,6 +286,7 @@ describe('WorkflowComponent', () => {
285286
component.enableIncrementalHarvestingFieldIfAvailable(component.workflowData as Workflow);
286287
expect(getField().disabled).toBeFalsy();
287288
}));
289+
*/
288290

289291
it('should format the form values', () => {
290292
let result: { metisPluginsMetadata: PluginMetadata[] } = component.formatFormValues();

projects/metis/src/app/dataset/workflow/workflow.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export class WorkflowComponent extends SubscriptionManager implements OnInit {
199199
*
200200
* @param {Workflow} workflowData
201201
**/
202+
/*
202203
enableIncrementalHarvestingFieldIfAvailable(workflowData: Workflow): void {
203204
this.subs.push(
204205
this.workflows
@@ -212,6 +213,7 @@ export class WorkflowComponent extends SubscriptionManager implements OnInit {
212213
})
213214
);
214215
}
216+
*/
215217

216218
/** buildForm
217219
/* set up a reactive form for creating and editing a workflow
@@ -385,10 +387,10 @@ export class WorkflowComponent extends SubscriptionManager implements OnInit {
385387
this.workflowForm.controls.harvestUrl.setValue(thisWorkflow.url.trim().split('?')[0]);
386388
this.workflowForm.controls.setSpec.setValue(thisWorkflow.setSpec);
387389
this.workflowForm.controls.metadataFormat.setValue(thisWorkflow.metadataFormat);
388-
this.workflowForm.controls.incrementalHarvest.setValue(thisWorkflow.incrementalHarvest);
390+
//this.workflowForm.controls.incrementalHarvest.setValue(thisWorkflow.incrementalHarvest);
389391
}
390392
}
391-
this.enableIncrementalHarvestingFieldIfAvailable(workflow);
393+
//this.enableIncrementalHarvestingFieldIfAvailable(workflow);
392394
}
393395

394396
/** extractPluginParamsExtra
@@ -496,7 +498,7 @@ export class WorkflowComponent extends SubscriptionManager implements OnInit {
496498
if (conf.name === 'pluginHARVEST') {
497499
const paramsOAIPMH: ParameterField = [
498500
ParameterFieldName.harvestUrl,
499-
ParameterFieldName.incrementalHarvest,
501+
//ParameterFieldName.incrementalHarvest,
500502
ParameterFieldName.metadataFormat,
501503
ParameterFieldName.setSpec
502504
];

projects/shared/src/lib/form/protocol-field-set/protocol-field-set.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
</div>
4444
</div>
4545

46+
<!--
4647
<div class="form-group" *ngIf="isProtocolOAIPMH()" [formGroup]="form">
4748
<input type="checkbox" id="incremental-harvest" formControlName="incrementalHarvest" />
4849
<label
@@ -52,6 +53,7 @@
5253
Incremental Harvest
5354
</label>
5455
</div>
56+
-->
5557

5658
<div class="form-group" *ngIf="isProtocolOAIPMH()" [formGroup]="form">
5759
<label for="harvest-url" i18n="protocol label harvest url@@protocolLabelHarvestUrl">

0 commit comments

Comments
 (0)