Skip to content

feat: TCM-6606 add localeId and certificate attachment types to attachments-api - #141

Open
shoffman-smartling wants to merge 1 commit into
2.xfrom
TCM-6606-attachment-certificate-type-support
Open

feat: TCM-6606 add localeId and certificate attachment types to attachments-api#141
shoffman-smartling wants to merge 1 commit into
2.xfrom
TCM-6606-attachment-certificate-type-support

Conversation

@shoffman-smartling

@shoffman-smartling shoffman-smartling commented Jul 27, 2026

Copy link
Copy Markdown

Summary

  • Adds GLOSSARIES, TRANSLATION_CERTIFICATE_BUNDLE, and LOCALE_TRANSLATION_CERTIFICATE to AttachmentType, matching attachment-service's own canonical enum values
  • Adds a localeId field to AttachmentPTO and AttachmentUploadPTO so callers can associate an uploaded attachment with a specific job locale, needed for the two new certificate types
  • Adds AttachmentType.toUrlSegment(), which hyphenates multi-word type names (e.g. translation-certificate-bundle) to match attachment-service's own URL routing convention, since name().toLowerCase() alone produces an incorrect underscore-separated segment for these new values

Tracked in TCM-6606.

Test plan

  • ./mvnw -pl smartling-attachments-api -am test passes (6/6 tests in AttachmentsApiTest, including 2 new tests covering the wire format and enum values)

…hments-api

Adds GLOSSARIES, TRANSLATION_CERTIFICATE_BUNDLE, and LOCALE_TRANSLATION_CERTIFICATE
to AttachmentType, matching attachment-service's own canonical enum values.
Adds a localeId field to AttachmentPTO and AttachmentUploadPTO so callers can
associate an uploaded attachment with a specific job locale, as required for
the two new certificate types.

Also adds AttachmentType.toUrlSegment(), which hyphenates multi-word type names
(e.g. translation-certificate-bundle) matching attachment-service's own URL
routing convention, since name().toLowerCase() alone produces an incorrect
underscore-separated segment for these new values.
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