Skip to content

Commit db4196b

Browse files
authored
feat(API): add updated_since param for downloads (#858)
1 parent 1a8fe8e commit db4196b

File tree

6 files changed

+33
-2
lines changed

6 files changed

+33
-2
lines changed

.github/workflows/test-ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
cd ./clients/ruby
2222
bundle exec rspec
2323
- name: Check licenses
24-
uses: phrase/actions/lawa-ruby-ci@v1
24+
uses: phrase/actions/lawa-ruby-ci@main
2525
with:
2626
working-directory: ./clients/ruby
2727
github-token: ${{ secrets.GH_LAWA_ACCESS_TOKEN }}

clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,13 @@ public void localeDownloadTest() throws ApiException, IOException, InterruptedEx
172172
String translationKeyPrefix = null;
173173
Boolean filterByPrefix = null;
174174
List<String> localeIds = null;
175+
String updatedSince = null;
175176
File response = api.localeDownload(projectId, id, xPhraseAppOTP, ifModifiedSince, ifNoneMatch,
176177
branch, fileFormat, tags, tag, includeEmptyTranslations, excludeEmptyZeroForms,
177178
includeTranslatedKeys, keepNotranslateTags, convertEmoji, formatOptions, encoding,
178179
skipUnverifiedTranslations, includeUnverifiedTranslations, useLastReviewedVersion,
179180
fallbackLocaleId, sourceLocaleId, translationKeyPrefix, filterByPrefix,
180-
customMetadataFilters, localeIds);
181+
customMetadataFilters, localeIds, updatedSince);
181182

182183
String fileContents = new String(java.nio.file.Files.readAllBytes(response.toPath()));
183184
Assert.assertEquals("Correct file contents", fileContents, body);

clients/ruby/.license-decisions.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
- - :inherit_from
33
- url: https://raw.githubusercontent.com/phrase/lawa/master/config/license-decisions.yml
44
authorization: token $GITHUB_TOKEN
5+
- - :approve
6+
- json
7+
- :who: Sönke Behrendt
8+
:why: ruby license
9+
:versions: []
10+
:when: 2025-07-08 15:04:25.587413000 Z

doc/compiled.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8671,6 +8671,15 @@
86718671
"de",
86728672
"en"
86738673
]
8674+
},
8675+
{
8676+
"name": "updated_since",
8677+
"description": "Only include keys that have been updated since the given date. The date must be in ISO 8601 format (e.g., `2023-01-01T00:00:00Z`).\n",
8678+
"in": "query",
8679+
"schema": {
8680+
"type": "string"
8681+
},
8682+
"example": "2023-01-01T00:00:00Z"
86748683
}
86758684
],
86768685
"responses": {
@@ -8835,6 +8844,10 @@
88358844
"description": "Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.\n",
88368845
"type": "object",
88378846
"properties": {}
8847+
},
8848+
"updated_since": {
8849+
"description": "Only include keys that have been updated since the given date. The date must be in ISO 8601 format (e.g., `2023-01-01T00:00:00Z`).\n",
8850+
"type": "string"
88388851
}
88398852
}
88408853
}

paths/locale_downloads/create.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ requestBody:
8585
Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
8686
type: object
8787
properties: {}
88+
updated_since:
89+
description: |
90+
Only include keys that have been updated since the given date. The date must be in ISO 8601 format (e.g., `2023-01-01T00:00:00Z`).
91+
type: string
8892
responses:
8993
"201":
9094
description: Created

paths/locales/download.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ parameters:
143143
example:
144144
- de
145145
- en
146+
- name: updated_since
147+
description: |
148+
Only include keys that have been updated since the given date. The date must be in ISO 8601 format (e.g., `2023-01-01T00:00:00Z`).
149+
in: query
150+
schema:
151+
type: string
152+
example: "2023-01-01T00:00:00Z"
146153
responses:
147154
"200":
148155
description: OK

0 commit comments

Comments
 (0)