Fixes bug on updating Tags on Dataset Description.
This commit is contained in:
parent
33552ecd70
commit
6a4602a45e
|
@ -334,12 +334,15 @@ public class DatasetManager {
|
||||||
checkDatasetValidation(dataset);
|
checkDatasetValidation(dataset);
|
||||||
UserInfo userInfo = apiContext.getOperationsContext().getBuilderFactory().getBuilder(UserInfoBuilder.class).id(principal.getId()).build();
|
UserInfo userInfo = apiContext.getOperationsContext().getBuilderFactory().getBuilder(UserInfoBuilder.class).id(principal.getId()).build();
|
||||||
dataset.setCreator(userInfo);
|
dataset.setCreator(userInfo);
|
||||||
updateTags(apiContext.getOperationsContext().getDatasetRepository(), datasetWizardModel);
|
|
||||||
createRegistriesIfTheyDontExist(apiContext.getOperationsContext().getDatabaseRepository().getRegistryDao(), dataset);
|
createRegistriesIfTheyDontExist(apiContext.getOperationsContext().getDatabaseRepository().getRegistryDao(), dataset);
|
||||||
createDataRepositoriesIfTheyDontExist(apiContext.getOperationsContext().getDatabaseRepository().getDataRepositoryDao(), dataset);
|
createDataRepositoriesIfTheyDontExist(apiContext.getOperationsContext().getDatabaseRepository().getDataRepositoryDao(), dataset);
|
||||||
createServicesIfTheyDontExist(dataset);
|
createServicesIfTheyDontExist(dataset);
|
||||||
createExternalDatasetsIfTheyDontExist(dataset);
|
createExternalDatasetsIfTheyDontExist(dataset);
|
||||||
return apiContext.getOperationsContext().getDatabaseRepository().getDatasetDao().createOrUpdate(dataset);
|
Dataset dataset1 = apiContext.getOperationsContext().getDatabaseRepository().getDatasetDao().createOrUpdate(dataset);
|
||||||
|
datasetWizardModel.setId(dataset1.getId());
|
||||||
|
updateTags(apiContext.getOperationsContext().getDatasetRepository(), datasetWizardModel);
|
||||||
|
return dataset1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkDatasetValidation(Dataset dataset) throws Exception {
|
private void checkDatasetValidation(Dataset dataset) throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue