Repository navigation
count a media item once, whatever address serves its bytes - #48
Open
anuraggdubey wants to merge 1 commit into
Open
anuraggdubey wants to merge 1 commit into
anuraggdubey wants to merge 1 commit into
Conversation
A media criterion counted every cited link that loaded, so one file behind several addresses (a query string, a mirror, http and https) met any min. Its items now count once per SHA-256, as sources pages do, and each is recorded once in the evidence. Fixes MultiAgency#45.
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.
Fixes #45.
A
mediacriterion counted every cited link that loaded with a matching content type. #36 madesourcescount a page once per SHA-256, butmedianever got that change. One file behind several addresses, such asa.png?1,a.png?2anda.png?3, a mirror, orhttpandhttps, met anymin.Changes
checks.ts: incase "media", the loaded items are de-duplicated bysha256with the same filtersourcesuses, so the same bytes count once.evidenceis built from those items, so each one is recorded once.docs/verifiability.md: themediarow saysmincounts distinct items, and that links whose responses are the same bytes count once, as thesourcesrow does.Tests
a.png?1,a.png?2and a mirror counts once. Withmin: 3it fails with "1 of the needed 3 image items load", records one evidence entry, and still fetches each address once.pnpm typecheckpasses, andpnpm test:e2epasses 55/55.Not included
e2e/outlayer-evaluatorhas nomediacheck, so only the app changes.