Output culture variant update dates from the Delivery API#19180
Merged
AndyButland merged 1 commit intorelease/16.0from Apr 29, 2025
Merged
Conversation
AndyButland
reviewed
Apr 29, 2025
Contributor
AndyButland
left a comment
There was a problem hiding this comment.
Code and tests all look good to me.
Tested with the same setup as the linked PR - with this data output in Razor:
Published culture date (en): 4/29/2025 4:27:12 AM
Published culture date (it): 4/25/2025 2:23:13 PM
Request to retrieve item with en-US language:
{
"contentType": "testPage",
"name": "Test Page",
"createDate": "2025-04-23T12:09:24.693Z",
"updateDate": "2025-04-29T04:27:12.2159775Z",
...
Request to retrieve item with it language:
{
"contentType": "testPage",
"name": "Test Page",
"createDate": "2025-04-23T12:09:24.693Z",
"updateDate": "2025-04-25T14:23:13.267Z",
...
Request for another invariant page also returns the expected value.
AndyButland
approved these changes
Apr 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
The Delivery API current outputs the "global" update date for culture variant content, which makes it hard to detect culture specific changes.
This PR updates the Delivery API output, so the
updateDateproperty reflects the "culture date" of the requested content.Testing this PR
Verify that:
updateDatereflects the "culture date" for culture variant content.updateDatestill works for invariant content.