Skip to content

fix(dataset): prevent duplicate metadata keys when renaming#2547

Merged
nitrosx merged 3 commits intomasterfrom
dataset-metadata-update-content-type
Feb 17, 2026
Merged

fix(dataset): prevent duplicate metadata keys when renaming#2547
nitrosx merged 3 commits intomasterfrom
dataset-metadata-update-content-type

Conversation

@abdimo101
Copy link
Member

Description

This PR fixes an issue where renaming scientific metadata keys in the V4 dataset would create duplicate metadata key records instead of updating the existing one.

The problem occurred because the default content-type was set to "application/merge-patch+json", which merges new keys with existing ones rather than replacing them. By changing the default content-type to "application/json", users must now provide all the metadata keys for the specific dataset when updating, as the new metadata will replace the old ones completely.

Users can still use "application/merge-patch+json" by explicitly setting the content-type header if they need merge behavior.

Motivation

Fixes

  • Bug fixed (#X)

Changes:

  • changes made

Tests included

  • Included for each change/fix?
  • Passing?

Documentation

  • swagger documentation updated (required for API changes)
  • official documentation updated

official documentation info

@abdimo101 abdimo101 requested a review from a team as a code owner February 16, 2026 16:22
@abdimo101 abdimo101 changed the title fix: Prevent duplicate metadata keys when renaming in V4 dataset fix: prevent duplicate metadata keys when renaming in V4 dataset Feb 16, 2026
@abdimo101 abdimo101 changed the title fix: prevent duplicate metadata keys when renaming in V4 dataset fix: prevent duplicate metadata keys when renaming in v4 dataset Feb 16, 2026
@abdimo101 abdimo101 changed the title fix: prevent duplicate metadata keys when renaming in v4 dataset fix(dataset): prevent duplicate metadata keys when renaming Feb 16, 2026
@nitrosx nitrosx merged commit 9aed0f6 into master Feb 17, 2026
14 checks passed
@nitrosx nitrosx deleted the dataset-metadata-update-content-type branch February 17, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants