Skip to content

chore(release): staging to production - 2026.06.02 - #1089

Merged
ct3685 merged 1 commit into
productionfrom
staging
Jun 2, 2026
Merged

chore(release): staging to production - 2026.06.02#1089
ct3685 merged 1 commit into
productionfrom
staging

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

🚀 Release: Staging to Production

Release Date: 2026-06-02

Changes in this release


This PR is automatically created/updated when commits are pushed to staging.
Merging this PR will trigger the release workflow to create a new GitHub release.

#1088)

## Summary
The Contentful document loader unconditionally added
`sys.archivedAt[exists]=false` to every query in `runQuery()`. This
property is only valid on the **Preview API**. The **Delivery (CDN)
API** rejects it with:

```
400 Bad Request
The property "sys.archivedAt" is invalid when querying a published Entry
```

because published entries can never be archived. As a result, any
document store backed by the Delivery API fails to refresh/upsert.

## Fix
Scope the `sys.archivedAt[exists]=false` filter to the Preview API host
(`preview.contentful.com`). The Delivery API never returns archived
entries anyway, and the existing post-fetch `sys.archivedVersion` filter
is left in place as a safety net.

```ts
if (this.host === 'preview.contentful.com') {
    query['sys.archivedAt[exists]'] = false
}
```

## Impact
- Delivery-API-backed document stores can refresh/upsert again.
- Preview-API behavior is unchanged (archived entries still excluded).

## Test plan
- [ ] Refresh a document store configured against the Delivery API
(`cdn.contentful.com`) and confirm it completes without the 400.
- [ ] Refresh a document store configured against the Preview API and
confirm archived entries remain excluded.
@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
answerai-docs Building Building Preview Jun 2, 2026 5:25pm
the-answerai Building Building Preview Jun 2, 2026 5:25pm

Request Review

@ct3685
ct3685 merged commit ed45615 into production Jun 2, 2026
8 checks passed
@maxtechera
maxtechera temporarily deployed to staging - aai-unified2-flowise-moonstruck June 2, 2026 17:26 — with Render Inactive
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.

2 participants