Repository navigation
Conversation
…Version 1.2 #1260 Signed-off-by: Nik Cubrilovic <[email protected]>
… note #1260 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
Merged
Contributor
Author
|
Landed in v0.0.147 as nik |
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.
Refs #1260 (the opt-in
--include-pageslist shipped in v0.0.144; this adds the outcome fields the request asked for). Restated criteria are in the issue comment; the rest is split to #1396.pagesrow now carriesfinalUrl(where the page was served from after redirects;urlwhen it did not redirect) andoutcome:ok(under 400),rate-limited(429),http-error(any other 4xx or 5xx),error(no usable status).pageOutcome(status)is exported from@squirrelscan/report.PageAudit.finalUrlis filled from the stored page record inreconstruct.ts; a report read back from JSON has no pages, as before.meta.schemaVersion1.1 to 1.2. All additions are optional: the list is still opt-in, and the published-report schema is untouched.executedRules, and areason/skippedoutcome for URLs that never answered (they are not stored pages). Filed as JSON report: executedRules and a reason for pages that never answered #1396 with acceptance criteria.Tests:
packages/report/tests/json-pages-1260.test.ts(rows,pageOutcomeboundaries, a 429 row, schema 1.2, extra fields not copied),apps/cli/tests/cli/audit-include-pages-e2e.test.ts(a redirected/oldkeeps its URL and names/about, a 404 ishttp-error,/isok; the audit and the stored-report read-back agree). Gates: tsgo in packages/report and apps/cli, cli format:check and lint,make validate, released-changelog guard.Docs:
docs/cli/audit.mdx,docs/cli/report.mdx,docs/configuration/output.mdx(schema example, field list, 1.2). CHANGELOG under Unreleased / Added. Skill: no change needed (opt-in additive fields).nik