Skip to content

Commit

Permalink
Merge pull request #141 from lilt/4.x-fix-translations
Browse files Browse the repository at this point in the history
Hotfix connector translation ids
  • Loading branch information
hadomskyi authored Jan 30, 2024
2 parents 2449f97 + 94ea19d commit c88afc9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 4.4.3 - 2023-11-15
### Changed
- Change translation limit for get translation request

## 4.4.2 - 2023-11-15
### Fixed
- Lock release issue after queue message processing
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lilt/craft-lilt-plugin",
"description": "The Lilt plugin makes it easy for you to send content to Lilt for translation right from within Craft CMS.",
"type": "craft-plugin",
"version": "4.4.2",
"version": "4.4.3",
"keywords": [
"craft",
"cms",
Expand Down
4 changes: 2 additions & 2 deletions e2e/cypress/support/flow/instant.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ Cypress.Commands.add('instantFlow', ({
'name': 'Authorization', 'values': ['Bearer this_is_apy_key'],
}], 'queryStringParameters': [
{
'name': 'limit', 'values': ['100'],
'name': 'limit', 'values': ['1000'],
}, {
'name': 'start', 'values': ['00'],
}, {
'name': 'job_id', 'values': ['777'],
}],
}, 'httpResponse': {
'statusCode': 200, 'body': JSON.stringify({
'limit': 100, 'start': 0, 'results': translationsResult,
'limit': 1000, 'start': 0, 'results': translationsResult,
}),
}, 'times': {
'unlimited': true,
Expand Down
4 changes: 2 additions & 2 deletions e2e/cypress/support/flow/verified.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ Cypress.Commands.add('verifiedFlow', ({
'name': 'Authorization', 'values': ['Bearer this_is_apy_key'],
}], 'queryStringParameters': [
{
'name': 'limit', 'values': ['100'],
'name': 'limit', 'values': ['1000'],
}, {
'name': 'start', 'values': ['00'],
}, {
'name': 'job_id', 'values': ['777'],
}],
}, 'httpResponse': {
'statusCode': 200, 'body': JSON.stringify({
'limit': 100, 'start': 0, 'results': translationsResult,
'limit': 1000, 'start': 0, 'results': translationsResult,
}),
}, 'times': {
'unlimited': true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function findByJobId(int $jobId): ConnectorTranslationsResponse
}

$response = $this->apiInstance->servicesApiDeliveriesGetDeliveriesByJobId(
100,
1000,
"00",
$jobId
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function testSyncSuccess(IntegrationTester $I): void
$I->expectTranslationsGetRequest(
777,
0,
100,
1000,
HttpCode::OK,
$responseBody
);
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/modules/FetchJobStatusFromConnectorCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testExecuteSuccessVerified(IntegrationTester $I): void
$I->expectTranslationsGetRequest(
777,
0,
100,
1000,
HttpCode::OK,
$responseBody
);
Expand Down Expand Up @@ -240,7 +240,7 @@ public function testExecuteSuccessInstant(IntegrationTester $I): void
$I->expectTranslationsGetRequest(
777,
0,
100,
1000,
HttpCode::OK,
$responseBody
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function testExecuteInstantSuccess(IntegrationTester $I): void
$I->expectTranslationsGetRequest(
777,
0,
100,
1000,
HttpCode::OK,
$translationsResponseBody
);
Expand Down Expand Up @@ -241,7 +241,7 @@ public function testExecuteVerifiedSuccess(IntegrationTester $I): void
$I->expectTranslationsGetRequest(
777,
0,
100,
1000,
HttpCode::OK,
$translationsResponseBody
);
Expand Down

0 comments on commit c88afc9

Please sign in to comment.