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

Update contentful client to use system id #1088

Merged
merged 4 commits into from
Nov 3, 2023
Merged

Conversation

lkostrowski
Copy link
Member

@lkostrowski lkostrowski commented Oct 31, 2023

Scope of the PR

Fixes #1086

docs saleor/saleor-docs#1015

Related issues

Checklist

Copy link

changeset-bot bot commented Oct 31, 2023

🦋 Changeset detected

Latest commit: e9e5d21

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-app-cms-v2 Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lkostrowski lkostrowski linked an issue Oct 31, 2023 that may be closed by this pull request
1 task
Copy link

vercel bot commented Oct 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saleor-app-cms-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 3, 2023 11:27am
10 Ignored Deployments
Name Status Preview Comments Updated (UTC)
saleor-app-crm ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-data-importer ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-emails-and-messages ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-invoices ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-klaviyo ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-products-feed ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-search ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-segment ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-slack ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am
saleor-app-taxes ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 11:27am

@@ -41,7 +41,9 @@ export class ContentfulBulkSyncProcessor implements BulkSyncProcessor {
},
})
.then((r) => {
if (r?.metadata) {
const resp = Array.isArray(r) ? r[0] : r;
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: Please comment why taking the first element is justified here.

@lkostrowski lkostrowski merged commit 958dbcd into main Nov 3, 2023
9 checks passed
@lkostrowski lkostrowski deleted the contentful-id-serialize branch November 3, 2023 11:36
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.

CMS App - contentful resource ID is invalid
2 participants