mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-26 18:15:59 +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,
|
||||
@Nullable String deprecationNote, @Nonnull String user) throws Exception {
|
||||
@Nonnull String deprecationNote, @Nonnull String user) throws Exception {
|
||||
throw new UnsupportedOperationException("Not implemented yet");
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ public class Dataset extends Controller {
|
||||
|
||||
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);
|
||||
} catch (Exception e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user