Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Sanketika-Obsrv/issue-tracker#154: fix: fileUploadPath as array
  • Loading branch information
JeraldJF committed May 2, 2024
1 parent 44a3a2f commit a4338b2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions api-service/src/configs/DatasetConfigDefault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const defaultMasterConfig = {
"redis_db_port": config.redis_config.redis_port,
"index_data": true,
"redis_db": 3,
"fileUploadPath": ""
"fileUploadPath": []
},
"status": DatasetStatus.Draft,
"version": 1,
Expand Down Expand Up @@ -81,7 +81,7 @@ export const defaultDatasetConfig = {
"redis_db_port": config.redis_config.redis_port,
"index_data": true,
"redis_db": 0,
"fileUploadPath": ""
"fileUploadPath": []
},
"status": DatasetStatus.Draft,
"version": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,11 @@
"minLength": 1
},
"fileUploadPath": {
"type": "string",
"minLength": 1
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
},
"required": ["data_key", "timestamp_key"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,12 @@
"type": "string",
"minLength": 1
},
"fileUploadPath":{
"type": "string",
"minLength": 1
"fileUploadPath": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TestInputsForDatasetCreate = {
"dataset_config": {
"data_key": "",
"timestamp_key": "ets",
"fileUploadPath": "/config/file.json"
"fileUploadPath": ["/config/file.json"]
},
"tags": []
}
Expand Down Expand Up @@ -84,7 +84,7 @@ export const TestInputsForDatasetCreate = {
"dataset_config": {
"data_key": "",
"timestamp_key": "ets",
"fileUploadPath": "/config/file.json"
"fileUploadPath": ["/config/file.json"]
},
"transformations_config": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ export const TestInputsForDatasetUpdate = {
],
"dataset_config": {
"data_key": "mid",
"timestamp_key": "ets"
"timestamp_key": "ets",
"fileUploadPath": ["/config/file.json"]
},
"tags": [
{
Expand Down

0 comments on commit a4338b2

Please sign in to comment.