fix(page-data): scope WeChat delivery verification to newly bound pages
Memind CI / Test, build, and release guards (push) Failing after 4s
Memind CI / Test, build, and release guards (push) Failing after 4s
Historical workspace Page Data HTML was failing delivery smoke checks and blocking new survey links from reaching WeChat users. Add a webhook scenario test script for 103 regression runs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -114,10 +114,14 @@ export function buildPageDataDeliveryArtifactsFromBindResult(autoBind, publishDi
|
||||
.filter((item) => item?.relativePath && item?.workspaceUrl)
|
||||
.map((item) => [item.relativePath, item.workspaceUrl]),
|
||||
);
|
||||
return collectPageDataDeliveryArtifacts(publishDir, options).map((artifact) => ({
|
||||
...artifact,
|
||||
url: boundUrls.get(artifact.relativePath) ?? artifact.url,
|
||||
}));
|
||||
// Only verify/deliver pages bound in this auto-bind pass. Scanning the whole
|
||||
// workspace lets one stale historical Page Data page fail delivery for a new survey.
|
||||
return collectPageDataDeliveryArtifacts(publishDir, options)
|
||||
.filter((artifact) => boundUrls.has(artifact.relativePath))
|
||||
.map((artifact) => ({
|
||||
...artifact,
|
||||
url: boundUrls.get(artifact.relativePath) ?? artifact.url,
|
||||
}));
|
||||
}
|
||||
|
||||
export function evaluatePageDataHtmlContent(html, { relativePath = '' } = {}) {
|
||||
|
||||
Reference in New Issue
Block a user