-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Intersphinx lookups: log warnings for ambiguous target definitions and resolutions. #12329
Open
jayaddison
wants to merge
19
commits into
sphinx-doc:master
Choose a base branch
from
jayaddison:pr-12033-follow/intersphinx-ambiguous-lookup-warning
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c65b877
Intersphinx lookups: log warning for ambiguous target resolution.
jayaddison fe3a647
Refactor: use existing shared Intersphinx logger.
jayaddison 57099f1
Code review feedback: include type, subtype and location in warning.
jayaddison c992329
Cleanup: remove unused import from test module.
jayaddison d9417e0
Tests: refactor: extract INVENTORY_V2_AMBIGUOUS_TERMS fixture data.
jayaddison c07c799
Merge branch 'refs/heads/master' into pr-12033-follow/intersphinx-amb…
AA-Turner 436297c
Allow translation
AA-Turner ea7349b
Cleanup: remove redundant domain.name from log message line.
jayaddison 72b266d
Intersphinx lookups: add origin-hyperlink to log warnings about ambig…
jayaddison 4935023
Revert "Intersphinx lookups: add origin-hyperlink to log warnings abo…
jayaddison ab78182
Intersphinx lookups: log inventory name at both load-time and ambiguo…
jayaddison 88a338a
Intersphinx inventories: add loading-time warning when ambiguous name…
jayaddison 8b51aaf
linting: resolve type-inconsistency warnings by returning an empty se…
jayaddison 897e268
linting: cleanup: remove unused variable.
jayaddison 7f0b375
Fixup: include type namespace when checking for ambiguities.
jayaddison 4d61b14
Revert "linting: cleanup: remove unused variable."
jayaddison 330c2eb
Merge branch 'master' into pr-12033-follow/intersphinx-ambiguous-look…
jayaddison 15d2416
Add CHANGES.rst entry.
jayaddison f10c9ca
Merge branch 'master' into pr-12033-follow/intersphinx-ambiguous-look…
jayaddison File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change to public API which, without deprecation warnings, I think is not ideal.
either,
just log the warnings within
load_v2
(this seems easiest)or you should create two methods for each version, like:
load_v2_with_ambiguties
(new signature),load_v2
(callsload_v2_with_ambiguties
, but then just drops the ambiguties and only returns the inventory)