mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-26 10:06:13 +00:00
Made deprecation note nonnull (#982)
This commit is contained in:
parent
e3672d8837
commit
ed8ba02bed
@ -193,7 +193,7 @@ public class DictDatasetDao extends BaseDao {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setDatasetDeprecation(@Nonnull String datasetUrn, boolean isDeprecated,
|
public void setDatasetDeprecation(@Nonnull String datasetUrn, boolean isDeprecated,
|
||||||
@Nullable String deprecationNote, @Nonnull String user) throws Exception {
|
@Nonnull String deprecationNote, @Nonnull String user) throws Exception {
|
||||||
throw new UnsupportedOperationException("Not implemented yet");
|
throw new UnsupportedOperationException("Not implemented yet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ public class Dataset extends Controller {
|
|||||||
|
|
||||||
boolean deprecated = record.get("deprecated").asBoolean();
|
boolean deprecated = record.get("deprecated").asBoolean();
|
||||||
|
|
||||||
String deprecationNote = record.hasNonNull("deprecationNote") ? record.get("deprecationNote").asText() : null;
|
String deprecationNote = record.hasNonNull("deprecationNote") ? record.get("deprecationNote").asText() : "";
|
||||||
|
|
||||||
DICT_DATASET_DAO.setDatasetDeprecation(datasetUrn, deprecated, deprecationNote, username);
|
DICT_DATASET_DAO.setDatasetDeprecation(datasetUrn, deprecated, deprecationNote, username);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user