Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into dev-integrate
  • Loading branch information
yuanzhou committed Oct 8, 2024
2 parents 38b02b7 + 665c36b commit 0172997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PyYAML==5.4.1
# Use the branch name of commons from github for testing new changes made in commons from different branch
# Default is main branch specified in docker-compose.development.yml if not set
# git+https://github.com/hubmapconsortium/commons.git@${COMMONS_BRANCH}#egg=hubmap-commons
hubmap-commons==2.1.16
hubmap-commons==2.1.18

# For unit test
nose2==0.10.0
2 changes: 1 addition & 1 deletion src/schema/schema_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def validate_if_revision_is_unique(property_key, normalized_entity_type, request
def halt_update_if_DOI_exists(property_key, normalized_entity_type, request, existing_data_dict, new_data_dict):
if 'doi_url' in existing_data_dict or 'registered_doi' in existing_data_dict:
raise ValueError(f"Unable to modify existing {existing_data_dict['entity_type']}"
f" {existing_data_dict['uuid']} due DOI.")
f" {existing_data_dict['uuid']} due to DOI already exists.")

"""
Do not allow a Collection to be created or updated with DOI information if it does not meet all the
Expand Down

0 comments on commit 0172997

Please sign in to comment.