Skip to content

[BUG] [Singleton Service] Don't support version fallback in combination API #321

@nannany00

Description

@nannany00

Describe the bug
Version fallback is a new feature for Singleton Service, the detail is: when the translation requests for a newer version by product and the translation is not avaliable, Singleton Service will return the previous existing version's content as a fallback. Once the translation of newer version is ready, it will return totally matched version's content.
This feature should be added to all translation-related API, but, it doesn't work for Combination API.
**Notes: **
It reproduces on both bundle and s3 build.

To Reproduce
Steps to reproduce the behavior:

  1. Get Singleton Service build based on v0.3.0
  2. Go to API: POST /i18n/api/v2/combination/translationsAndPattern Get translations and patterns
  3. Testing data:
Product Name: Testing
version: 1.0.0
component: default
Translation ready: en, zh-Hans, ja

Request data:

Testing/2.0.0/default/ja

Response data:

  "data": {
    "components": null,
...
}

Expected behavior
Translation of version 1.0.0 should be returned.
Version fallback feature should work for all translation-related APIs.

Screenshots
NA

Desktop (please complete the following information):
NA

Additional context
NA

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions