-
-
Notifications
You must be signed in to change notification settings - Fork 220
Redirect reporting #1725
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
Merged
Merged
Redirect reporting #1725
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
ec0d5b9
Stop following redirects when max-redirects is hit instead of creatinβ¦
thomas-zahner 049075a
Update test & remove redundant test
thomas-zahner 3fd68ca
First attempt at redirection tracking
thomas-zahner 92ed479
Add ideas
thomas-zahner b68ff7b
Move todo
thomas-zahner 4150e15
Expand Status::Redirected
thomas-zahner f0c5e28
Remove file
thomas-zahner 14119f6
Extract RedirectTracker & handle redirections with fragments
thomas-zahner 7513537
No special handling of redirects: remove Status::Redirected and Errorβ¦
thomas-zahner 24b04b7
WIP
thomas-zahner d96481b
Merge branch 'master' into redirect-reporting
thomas-zahner 482f9cc
Apply clippy's suggestions
thomas-zahner 5962f67
Extract method & improve test
thomas-zahner bb10776
Revert "remove Status::Redirected"
thomas-zahner a228c05
Update redirection handling & add handle_redirected
thomas-zahner 5fd38a4
Add RedirectChain to Status::Redirected
thomas-zahner 99c5983
Merge branch 'master' into redirect-reporting
thomas-zahner 79a80aa
clippy --fix
thomas-zahner 762da6b
Replace unicode escapes with literal value for simplicity
thomas-zahner 156ee4e
Show redirects in compact view
thomas-zahner b74cfb0
Fix tests
thomas-zahner 613ec22
Update redirect output color
thomas-zahner 69cd4f6
Add redirect_map for JSON output
thomas-zahner 34e5f34
Create test_redirect_json & extract function
thomas-zahner cbd939f
Update lychee-lib/src/types/redirect_tracker.rs
thomas-zahner 8e5dc74
Rename RedirectChain to Redirects
thomas-zahner 061e6e1
Rename RedirectTracker to RedirectHistory
thomas-zahner 21f434b
Minor improvements
thomas-zahner 2170435
Update README
thomas-zahner 483cad8
Create test-utils to share testing functionality between lychee-lib aβ¦
thomas-zahner b96b874
Port lychee-lib/src/test_utils.rs to new test-utils crate
thomas-zahner c62b099
Fix space
thomas-zahner d4210f8
Update doc comment
thomas-zahner b630508
Apply review suggestions
thomas-zahner bfd231c
Put doc comments before attributes
thomas-zahner 59bc64e
Prevent accidental publishing of test-utils crate
thomas-zahner 9a20ce6
Update verbose redirect message
thomas-zahner c4e059e
Merge branch 'master' into redirect-reporting
thomas-zahner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| Test file: contains a single GitHub URL. | ||
|
|
||
| Lychee: https://github.com/hello-rust/lychee | ||
| Lychee: https://github.com/lycheeverse/lychee |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Do we really store the redirection list here as the comment suggests?
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.
Yes, see my previous comment section
Detailed output and JSON. It's the newredirect_mapfield. I've added it for a more detailed JSON output. Maybewith their redirection listwas a bit misleading? I've removed it now.