Skip to content

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

Open
shoffman-smartling wants to merge 1 commit into
masterfrom
TCM-6606-attachment-certificate-type-support-1x
Open

feat: TCM-6606 add localeId and certificate attachment types to attachments-api#142
shoffman-smartling wants to merge 1 commit into
masterfrom
TCM-6606-attachment-certificate-type-support-1x

Conversation

@shoffman-smartling

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

Copy link
Copy Markdown

Summary

  • Ports the same additive change from the 2.x line (TCM-6606-attachment-certificate-type-support) to master, so java-api-sdk-internal (which currently depends on this line) can consume it without a Java 17 migration
  • 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
  • Adds AttachmentType.toUrlSegment() for correct hyphenated URL segments on the new multi-word type names

Tracked in TCM-6606.

Test plan

  • ./mvnw -pl smartling-attachments-api -am test passes (6/6 tests in AttachmentsApiTest), built and verified against Java 11 targeting the module's Java 8 compatibility level

…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