Repository navigation
Conversation
An apostrophe was treated as a quote, so Brewer's Theorem was joined to the next alias and Tell Don't Ask was dropped. The duplicate checker split a quoted alias on the comma. Both paths now share one parser. check-links rejects a list that does not parse, and the entry index records the aliases. Co-authored-by: Mirza Iqbal <support@mirzaiqbal.com>
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.
What this changes
Alias lists were parsed by treating every apostrophe as a quote.
Brewer's Theoremwas joined to the next alias with the apostrophes removed, and lists such asTell Don't AskandAbadi's Extension to CAPwere dropped. The duplicate checker used a second parser that split on every comma, so the quoted Postel's Law alias became two names, and a queue row of the second half would have been reported as a collision.tools/catalogue_model.pynow starts a quote only at the beginning of an item. An apostrophe inside an unquoted name stays in the name. A comma inside quotes does not split the item.tools/check-duplicates.pyuses that parser.tools/check-links.pyrejects a missing or unparsablealiaseslist.dist/entries.jsonrecords the parsed aliases, including the ten lists the old parser corrupted or dropped. The frontmatter contract indocs/ENTRY-TEMPLATE.mdandschema/pattern.schema.jsonstates the rule.Verification
python3 tools/check-links-test.pypython3 tools/check-duplicates-test.pypython3 tools/check-links.pypython3 tools/check-structure.pypython3 tools/check-prose.pynpx --yes markdownlint-cli2@0.23.2The other validator unit tests (
check-structure,check-prose,check-family-names,gen-indexes,gen-catalogue-status,gen-by-problem-by-language,next-batch,validate-refs,check-claims,check-pr-security,check-code) passed.python3 tools/gen-entry-index.pywas re-run.dist/entries.jsonis committed.tools/check-code.py --strictandtools/validate-refs.py --strictwere not re-run. This change does not edit entry prose, code samples, or citation URLs.For a new or corrected entry
Not a new entry. The alias contract is unchanged for lists that already parsed. Ten published alias lists that contain an apostrophe now keep the name that is written in the file.
Notes for reviewers
The corrected names are Brewer's Theorem, Brewer's Conjecture, Abadi's Extension to CAP, Tell Don't Ask, You Ain't Gonna Need It, You're Not Gonna Need It, Postel's Law for Interfaces, Cohn's Pyramid, Parkinson's Law of Triviality, Maslow's Hammer, Rat's Nest Code, and Fil d'Ariane. The Postel's Law alias that contains a comma stays one item.
Relationship refs, entry ids, and citation URLs are unchanged.