@@ -217,7 +217,7 @@ function Dataset(d::Dict; expected_project::Union{UUID, Nothing}=nothing)
217217end
218218
219219function Base. propertynames (:: Dataset )
220- return (:owner , :name , :uuid , :dtype , :size , :versions , :description , :tags )
220+ return (:owner , :name , :uuid , :dtype , :size , :versions , :description , :tags , :project )
221221end
222222
223223function Base. show (io:: IO , d:: Dataset )
@@ -695,7 +695,7 @@ function upload_dataset end
695695 # Any other 404 or other non-200 response indicates a backend failure
696696 _throw_invalidresponse (r)
697697 end
698- upload_config = _check_dataset_upload_config (r, dtype)
698+ upload_config = _check_dataset_upload_config (r, dtype; newly_created_dataset )
699699 # Upload the actual data
700700 try
701701 _upload_dataset (upload_config, local_path; progress)
@@ -720,7 +720,9 @@ function upload_dataset end
720720 return dataset ((username, dataset_name); auth)
721721end
722722
723- function _check_dataset_upload_config (r:: _RESTResponse , expected_dtype:: AbstractString )
723+ function _check_dataset_upload_config (
724+ r:: _RESTResponse , expected_dtype:: AbstractString ; newly_created_dataset:: Bool
725+ )
724726 upload_config, _ = _parse_response_json (r, Dict)
725727 # Verify that the dtype of the remote dataset is what we expect it to be.
726728 if upload_config[" dataset_type" ] != expected_dtype
0 commit comments