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:
- Get Singleton Service build based on v0.3.0
- Go to API: POST /i18n/api/v2/combination/translationsAndPattern Get translations and patterns
- Testing data:
Product Name: Testing
version: 1.0.0
component: default
Translation ready: en, zh-Hans, ja
Request data:
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
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:
Request data:
Response data:
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