Skip to content

Commit a634b71

Browse files
committed
feat #OBS-I640 : change of name
1 parent 622610c commit a634b71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api-service/src/configs/Config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@ export const config = {
146146
"config_path": process.env.alerts_config_path
147147
},
148148
"dataset_filter_config": {
149-
"filter_limit": process.env.filter_limit ? parseInt(process.env.filter_limit) : 10 // Maximum number of filters allowed in a dataset
149+
"status_filter_limit": process.env.status_filter_limit ? parseInt(process.env.status_filter_limit) : 10 // Maximum number of filters allowed in a dataset
150150
}
151151
}

api-service/src/controllers/DatasetList/DatasetList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const errorCode = "DATASET_LIST_FAILURE"
1414
const liveDatasetStatus = ["Live", "Retired", "Purged"]
1515
const draftDatasetStatus = ["Draft", "ReadyToPublish"]
1616
const defaultFields = ["dataset_id", "name", "type", "status", "tags", "version", "api_version", "dataset_config", "created_date", "updated_date"]
17-
const MAX_STATUS_ARRAY_SIZE = config.dataset_filter_config.filter_limit || 10;
17+
const MAX_STATUS_ARRAY_SIZE = config.dataset_filter_config.status_filter_limit || 10;
1818

1919
const datasetList = async (req: Request, res: Response) => {
2020

0 commit comments

Comments
 (0)