Skip to content

Conversation

@abdimo101
Copy link
Member

@abdimo101 abdimo101 commented Jan 14, 2026

Description

This PR implements encoding and decoding of metadata keys in sampleCharacteristics to handle special characters in MongoDB.

  • Added @Transform decorators in OutputSampleDto and UpdateSampleDto to encode/decode metadata keys
  • Updated samples.controller.ts and samples.service.ts to use DTOs.
  • Created migration script 20260114145500-encode-sample-metadatakeys.js to encode existing sample metadata keys in the database
  • Added tests for metadata keys in Sample.js

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 January 14, 2026 14:55
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