Repository navigation
fix(action-center): pass another action's structured data fix only after a check found the page failing - #1680
Merged
gkhngyk merged 3 commits intoOct 28, 2026
Conversation
…ter a check found the page failing Follow-up B (first half) from ansvisor#1565's round 37. F06 (raised by brand-entity / entity-coverage) also has an Automatic fix_structured_data. None of its checks is a structured data check, so the check falls back to json-ld-validity, and a page that already had one valid block (a site-wide Organization) passed the first night with nothing fixed. With no structured data check named, the check now passes only after a check on the same page found it failing: that check keeps `sawFailing` on the task's autoCheck (as `wasMissing` is kept), carried through later checks of the page. Until then a valid page reads `valid_before`, worded on the card as "the structured data was already valid at the first check: mark the task done once it's fixed". A check named by the audit works as before. The other half of B (a @graph's nodes read without the wrapper's @context) is its own PR, as asked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
8 of 12 tasks
# Conflicts: # web/messages/en.json
gkhngyk
approved these changes
Oct 28, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, with follow-ups.
What I checked:
- The change. 679acda on 3f6a4d4.
- Merge. On b591947 it conflicts in one place:
web/messages/en.json, where #1616 addedlinks_not_for_saleas the lasttaskCheckMissingkey. Keep both keys. Its server files merge clean on main, and the PR merges clean with #1679, #1681 and #1682. - The gate (
task-checks.js:355-368,:559-562).- Only when no structured data check is named does the task need a failing check first. A check the audit named works as before.
- A failing read with no checks named keeps
sawFailing. It's kept through later reads of the same page, including a read that gets no answer (the oldautoCheckis kept whole then), and it's dropped when the task's URL changes. - A page that passes with
sawFailingfrom the same page passes. With nosawFailing, it readsvalid_before, and the card says to mark the task done once it's fixed.
- Tests.
task-checks.test.jspasses (32). With main'stask-checks.js, both new cases fail. The four PRs together on b591947, with the conflicts resolved, passsrc/lib/action-center,src/lib/auditandpage-content(837 tests). The only 3 failures readweb/files, which aren't in my scratch layout, and they fail on main's tree the same way. - Before the API deploy. The web gets the new line and nothing uses it until the API sends
valid_before. Nothing changes for anyone.
With #1681. Merge the two together, before the next API deploy, as you say. If no deployed API has run the page checks yet, no task has a stored check, so the "older task" limit in the description never comes up.
Follow-ups:
- The card's line has two colons (
en.json:2477). It reads "Checked: the structured data was already valid at the first check: mark the task done once it's fixed". Say "the structured data was valid before the fix. Mark the task done once it's fixed", or put the advice in the drawer's How we check.
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.
Summary
Follow-up B (first half) from #1565's round 37: an Action Center task to fix structured data, raised by another check, passes only after a check found the page failing.
F06 (raised by brand-entity / entity-coverage) also has an Automatic
fix_structured_datatask. None of its checks is a structured data check, so the task's check falls back tojson-ld-validity. A page that already had one valid block (a site-wide Organization) passed on the first night with nothing fixed.sawFailingon the task'sautoCheck, the same waywasMissingis kept, carried through later checks of the page.valid_before. The card says: "the structured data was already valid at the first check: mark the task done once it's fixed".Merge together with #1681 (the
@graphcontext fix), in one deploy before a nightly sweep. Merged alone in either order, F06 tasks on WordPress@graphpages can close wrongly:Known limit: an older task with no
sawFailingthat was fixed between its last check and this deploy stays atvalid_beforeuntil it's marked done by hand. The card says so.Where people see it: Action Center › a structured data task's drawer ("How we check" and its last check line).
Related issue
Follow-up from #1565 (round 37, item B).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd server && npx vitest run src/lib/action-center/task-checks.test.jsChecklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Full checks were run in one tree with this batch's eight follow-up branches merged (after the review fixes):
npm test(noSUPABASE_*env, as in CI): 249 files, 3,365 tests passed;vitest(445 files, 4,353 tests) and build: all pass.Browser check (local, 1024 px): Prompts › Topics › Add Topic stops at 100 characters; the Action Center drawer opens without errors, and Check now doesn't show on tasks the API doesn't check.
A pre-push review was run on all eight branches of this batch, and its before-merge findings are fixed.
🤖 Generated with Claude Code