Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: product:lastModifiedAt from Catalog Service #68

Merged
merged 6 commits into from
Dec 16, 2024

Conversation

dicagno
Copy link
Collaborator

@dicagno dicagno commented Dec 16, 2024

PR proposed for #67
According to the proposed implementation, this product:lastModifiedAt is rendered as a meta tag by default, and can have undefined value in case the data source does not expose it.

@@ -25,6 +25,7 @@
<meta property="product:availability" content="In stock">
<meta property="product:price.amount" content="29">
<meta property="product:price.currency" content="USD">
<meta property="product:lastModifiedAt" content="2024-12-16T06:25:43.024Z">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since product:lastModifiedAt is not part of Open Graph product specification I'm not sure we should use that. Maybe last-modified would be more appropriate?

From the index you can also pull out the last-modified header which is returned by Edge Delivery Services. But this would correspond to when the document was published.

I'm guessing it would be better track the date from the catalog service and not the date the document was published. wdyt @dicagno?

Copy link
Contributor

@maxakuru maxakuru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lastModifiedAtCS sounds pretty clunky to me, but not enough to want it changed.. I can see why the CS suffix is useful

@dicagno dicagno merged commit 51663ff into main Dec 16, 2024
4 checks passed
@dicagno dicagno deleted the feat/product_last-modified-at branch December 16, 2024 20:11
github-actions bot pushed a commit that referenced this pull request Dec 16, 2024
# [1.12.0](v1.11.5...v1.12.0) (2024-12-16)

### Features

* product:lastModifiedAt from Catalog Service ([#68](#68)) ([51663ff](51663ff))
Copy link

🎉 This PR is included in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants