Skip to content

Commit

Permalink
Merge pull request #199 from Sanketika-Obsrv/#234api-integration
Browse files Browse the repository at this point in the history
Sanketika-Obsrv/issue-tracker#OBS-151: dataset create and update schema for file_upload_path prop support
  • Loading branch information
HarishGangula authored Jun 28, 2024
2 parents 5adbe2c + 7601bf6 commit 334f317
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 22 deletions.
4 changes: 2 additions & 2 deletions api-service/src/v2/configs/DatasetConfigDefault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const defaultMasterConfig = {
"redis_db_port": config.redis_config.denorm_redis_port,
"index_data": true,
"redis_db": 3,
"file_upload_path": []
"files_upload_path": []
},
"status": DatasetStatus.Draft,
"version": 1,
Expand Down Expand Up @@ -82,7 +82,7 @@ export const defaultDatasetConfig = {
"redis_db_port": config.redis_config.dedup_redis_port,
"index_data": true,
"redis_db": 0,
"file_upload_path": []
"files_upload_path": []
},
"status": DatasetStatus.Draft,
"api_version": "v2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,14 @@
"type": "string",
"minLength": 1
},
"file_upload_path": {
"files_upload_path": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
},
"required": ["data_key", "timestamp_key"],
"additionalProperties": false
},
"transformations_config": {
Expand Down Expand Up @@ -201,21 +200,14 @@
},
"mode": {
"type": "string",
"enum": [
"Strict",
"Lenient"
]
"enum": ["Strict", "Lenient"]
},
"metadata": {
"type": "object"
}
},
"additionalProperties": false,
"required": [
"field_key",
"transformation_function",
"mode"
]
"required": ["field_key", "transformation_function", "mode"]
}
},
"tags": {
Expand All @@ -232,4 +224,4 @@
},
"required": ["id", "ver", "ts", "params", "request"],
"additionalProperties": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
"redis_db": {
"type": "integer"
},
"file_upload_path": {
"files_upload_path": {
"type": "array",
"items": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
"dataMappings": {
"type": "object"
},
"file_upload_path": {
"files_upload_path": {
"type": "array",
"items": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const TestInputsForDatasetCreate = {
"dataset_config": {
"data_key": "",
"timestamp_key": "ets",
"file_upload_path": ["/config/file.json"]
"files_upload_path": ["/config/file.json"]
},
"tags": []
}
Expand Down Expand Up @@ -126,7 +126,7 @@ export const TestInputsForDatasetCreate = {
"dataset_config": {
"data_key": "",
"timestamp_key": "ets",
"file_upload_path": ["/config/file.json"]
"files_upload_path": ["/config/file.json"]
},
"transformations_config": [
{
Expand Down Expand Up @@ -182,7 +182,7 @@ export const TestInputsForDatasetCreate = {
"dataset_config": {
"data_key": "",
"timestamp_key": "ets",
"file_upload_path": ["/config/file.json"]
"files_upload_path": ["/config/file.json"]
},
"transformations_config": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const TestInputsForDatasetUpdate = {
"dataset_config": {
"data_key": "eid",
"timestamp_key": "ets",
"file_upload_path": ["/config/file.json"]
"files_upload_path": ["/config/file.json"]
}
}
},
Expand Down Expand Up @@ -356,7 +356,7 @@ export const TestInputsForDatasetUpdate = {
"dataset_config": {
"data_key": "mid",
"timestamp_key": "ets",
"file_upload_path": ["/config/file.json"]
"files_upload_path": ["/config/file.json"]
},
"tags": [
{
Expand Down
6 changes: 5 additions & 1 deletion api-service/swagger-doc/openapi_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ paths:
denorm_fields:
- denorm_key: eid
denorm_out_field: userdata
dataset_id: master-telemetry
transformations_config:
- field_key: eid
transformation_function:
Expand All @@ -93,6 +94,7 @@ paths:
dataset_config:
data_key: mid
timestamp_key: ets
files_upload_path: ["telemetry.json"]
tags:
- tag1
- tag2
Expand Down Expand Up @@ -261,10 +263,12 @@ paths:
- values:
denorm_key: eid
denorm_out_field: userdata
dataset_id: master-telemetry
action: remove
- values:
denorm_key: eid
denorm_out_field: edata
dataset_id: trip-record
action: add
transformation_config:
- values:
Expand Down Expand Up @@ -975,7 +979,7 @@ paths:
redis_db_port: 6379
index_data: true
redis_db: 70
file_upload_path: []
files_upload_path: []
configurations:
indexConfiguration:
index:
Expand Down

0 comments on commit 334f317

Please sign in to comment.