Skip to content

Commit

Permalink
Merge pull request #293 from Sanketika-Obsrv/datasetListUpdate
Browse files Browse the repository at this point in the history
#OBS-I410: updated list api
  • Loading branch information
HarishGangula authored Dec 23, 2024
2 parents ada7581 + 768db5b commit 2e2ca31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-service/src/controllers/DatasetList/DatasetList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const listDatasets = async (request: Record<string, any>): Promise<Record<string
const draftFilters = _.set(_.cloneDeep(filters), "status", _.isEmpty(status) ? draftDatasetStatus : _.intersection(status, draftDatasetStatus));
const liveFilters = _.set(_.cloneDeep(filters), "status", _.isEmpty(status) ? liveDatasetStatus : _.intersection(status, liveDatasetStatus));
const liveDatasetList = await datasetService.findDatasets(liveFilters, defaultFields, [["updated_date", "DESC"]]);
const draftDatasetList = await datasetService.findDraftDatasets(draftFilters, defaultFields, [["updated_date", "DESC"]]);
const draftDatasetList = await datasetService.findDraftDatasets(draftFilters, [...defaultFields, "data_schema", "validation_config", "dedup_config", "denorm_config", "connectors_config", "version_key"], [["updated_date", "DESC"]]);
return _.compact(_.concat(liveDatasetList, draftDatasetList));
}

Expand Down

0 comments on commit 2e2ca31

Please sign in to comment.