Skip to content

Update the error message when linking a dataset to a service metadata that is not editable by the user#9336

Open
josegar74 wants to merge 1 commit into
geonetwork:mainfrom
GeoCat:44-update-error-message-linking-dataset-service
Open

Update the error message when linking a dataset to a service metadata that is not editable by the user#9336
josegar74 wants to merge 1 commit into
geonetwork:mainfrom
GeoCat:44-update-error-message-linking-dataset-service

Conversation

@josegar74

@josegar74 josegar74 commented Jun 15, 2026

Copy link
Copy Markdown
Member

Currently if the user tries to edit a dataset metadata and link it to a service metadata that can not be edited by him, displays the following error message:

dataset-service-linking-error

If the user can not edit the service metadata, that message doesn't seem to make any sense, as indicates that is updating the service metadata only.

Same message was used when linking the dataset from the service metadata and the dataset is not editable by the user.

It have been created two different messages to try to describe the errors more clearly.

Checklist

  • I have read the contribution guidelines
  • Pull request provided for main branch, backports managed with label
  • Good housekeeping of code, cleaning up comments, tests, and documentation
  • Clean commit history broken into understandable chucks, avoiding big commits with hundreds of files, cautious of reformatting and whitespace changes
  • Clean commit messages, longer verbose messages are encouraged
  • API Changes are identified in commit messages
  • Testing provided for features or enhancements using automatic tests
  • User documentation provided for new features or enhancements in manual
  • Build documentation provided for development instructions in README.md files
  • Library management using pom.xml dependency management. Update build documentation with intended library use and library tutorials or documentation

@josegar74 josegar74 added this to the 4.4.12 milestone Jun 15, 2026
@josegar74 josegar74 requested a review from fxprunayre June 15, 2026 06:43
@josegar74 josegar74 marked this pull request as draft June 15, 2026 07:04
…vice’s metadata if the user cannot edit either the dataset or the service.

- When adding the service to the metadata of a dataset: the service cannot be editable. The message was confusing.
- When adding the dataset to the metadata of the service: the dataset cannot be editable and the addition of the distribution may fail. The same message was used as in the previous case, which was also confusing.
@josegar74 josegar74 force-pushed the 44-update-error-message-linking-dataset-service branch from 2275045 to ef9c345 Compare June 15, 2026 07:13
@josegar74 josegar74 marked this pull request as ready for review June 15, 2026 07:15
@josegar74 josegar74 modified the milestones: 4.4.12, 4.4.13 Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant