Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicates in dfns extracts #1110

Merged
merged 1 commit into from
Nov 9, 2022
Merged

Prevent duplicates in dfns extracts #1110

merged 1 commit into from
Nov 9, 2022

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Nov 9, 2022

This makes the dfns extraction code skip over a re-defined term (same linking text, same type, same namespace), and report a warning when a duplicate dfn is encountered and skipped.

Warnings are easily glossed over but we don't really have a better mechanism in place right now to report issues found during extractions. Apart from making the whole extraction fail that is, which seems overkill.

Fixes w3c/webref#783

This makes the dfns extraction code skip over a re-defined term (same linking
text, same type, same namespace), and report a warning when a duplicate dfn is
encountered and skipped.

Warnings are easily glossed over but we don't really have a better mechanism in
place right now to report issues found during extractions. Apart from making the
whole extraction fail that is, which seems overkill.

Fixes w3c/webref#783
Copy link
Member

@dontcallmedom dontcallmedom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although I think the right model would be to use webref curation (which would solve the "nobody looks at warnings" aspect)

@tidoust
Copy link
Member Author

tidoust commented Nov 9, 2022

I created w3c/webref#789 to track the possibility to do curation on dfns.

@tidoust tidoust merged commit 2065cef into main Nov 9, 2022
@tidoust tidoust deleted the dfns-ignore-dupl branch November 9, 2022 11:12
tidoust added a commit that referenced this pull request Nov 27, 2022
New features:
- Auto-legacy mode for dfns extraction (#1120)
- Prevent duplicates in dfns extracts (#1110)

Dependencies bumped:
- Bump rollup from 3.2.5 to 3.5.0 (#1113, #1116, #1122)
- Bump web-specs from 2.35.0 to 2.36.0 (#1121)
- Bump minimatch from 3.0.4 to 3.1.2 (#1118)
- Bump puppeteer from 19.2.2 to 19.3.0 (#1119)
- Bump ajv from 8.11.0 to 8.11.2 (#1112)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent duplicates in dfns extracts
2 participants