Skip to content

Commit e487039

Browse files
OUW-3671
1 parent 02fbcfa commit e487039

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

src/searching/builder/ExecutionsHistorySearchBuilder.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import SearchWithSummaryBuilder from './SearchWithSummaryBuilder';
44
import FieldFinder from '../../util/searchingFields/FieldFinder';
5-
6-
5+
const BASE_URL = '/operations/history';
76
/**
87
* Defined a search over Executions
98
* @example ogapi.executionsHistorySearchBuilder()
@@ -12,9 +11,9 @@ export default class ExecutionsHistorySearchBuilder extends SearchWithSummaryBui
1211
/**
1312
* @param {!InternalOpenGateAPI} parent - Instance of our InternalOpenGateAPI
1413
*/
15-
constructor(parent, fieldFinder = new FieldFinder(parent, '/operations')) {
14+
constructor(parent, fieldFinder = new FieldFinder(parent, '/operations/history')) {
1615
super(parent, {}, fieldFinder);
17-
this._url = '/entities/operations/history';
16+
this._url = '/entities' + BASE_URL;
1817
}
1918
/**
2019
* The response will only have a summary information

src/util/searchingFields/FieldFinder.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const match_url = {
2929
'/tasks': 'TASKS',
3030
'/alarms': 'ENTITY_ALARM',
3131
'/operations': 'ENTITY_OPERATION',
32+
'/operations/history': 'ENTITY_OPERATION_HISTORY',
3233
'/certificates': 'CERTIFICATE',
3334
'/bundles': 'UPDATE_BUNDLE_VERSION',
3435
'/datapoints': 'DATAPOINTS',

src/util/searchingFields/source-precompiled/Fields.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
// Fields generated at: Fri May 07 2021 12:57:57 GMT+0200 (Central European Summer Time)
22
// DB: 172.19.18.242:1521/QA
33
export const GENERATED_FIELDS = {
4+
"ENTITY_OPERATION_HISTORY": {
5+
"ENTITY_OPERATION_HISTORY":[
6+
"applicationEmail",
7+
"entityId",
8+
"entityType",
9+
"jobActivatedDate",
10+
"jobId",
11+
"jobUserNotes",
12+
"operationAttemptCurrent",
13+
"operationAttemptMax",
14+
"operationDate",
15+
"operationDetails",
16+
"operationEndDate",
17+
"operationId",
18+
"operationInitDate",
19+
"operationName",
20+
"operationNotify",
21+
"operationParameters",
22+
"operationResult",
23+
"operationStatus",
24+
"operationSteps"
25+
]
26+
},
427
"ENTITY_OPERATION": {
528
"ENTITY_OPERATION": [
629
"applicationEmail",

0 commit comments

Comments
 (0)