Skip to content

Commit

Permalink
YDA-6085: changed incomplete metadata message
Browse files Browse the repository at this point in the history
  • Loading branch information
claudisa-uu committed Jan 23, 2025
1 parent 3932e0b commit cc8b9ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion policies_datapackage_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def can_transition_datapackage_status(ctx: rule.Context,
return policy.fail('Metadata missing, unable to submit this data package for publication.')

if not meta.is_json_metadata_valid(ctx, meta_path):
return policy.fail('Metadata is not valid, please open the metadata form for more information')
return policy.fail('Metadata is either incomplete or invalid, please open the metadata form for more information')

return policy.succeed()

Expand Down
2 changes: 1 addition & 1 deletion policies_folder_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def can_transition_folder_status(ctx: rule.Context,
return policy.fail('Metadata missing, unable to submit this folder')

if not meta.is_json_metadata_valid(ctx, meta_path):
return policy.fail('Metadata is not valid, please open the metadata form for more information')
return policy.fail('Metadata is either incomplete or invalid, please open the metadata form for more information')

elif status_to in [constants.research_package_state.ACCEPTED,
constants.research_package_state.REJECTED]:
Expand Down

0 comments on commit cc8b9ac

Please sign in to comment.