-
Notifications
You must be signed in to change notification settings - Fork 71
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
change display of redirects in dashboard #562
Comments
Personally i like the
approach the most, as it doesnt interfere the existing URLs, but it could be extensible to show a "redirect chain" all at once, by just putting new lines down. It also doesnt require soft-wrapping, or overflow the horizontal lines. |
But it breaks with concurrency > 1. Or rather, you wouldn't be able to tell which URL redirected where anymore. |
I guess the reason it can't happen with concurrency 1 is that AB is
immediately processing URLs redirected to, rather than chucking them
into a pool and grabbing URLs from that at random.
You could have the display change depending on the concurrency level,
have the more user-friendly display at concurrency 1 and the first
(or last) option(s) I gave for other levels.
You could also emit completed redirect chains instead of emitting
single requests from redirect chains, when concurrency > 1.
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
Redirect targets are always processed 'immediately'. (Also, there is no pool or random order, just a queue, although links extracted from an individual page get added to the end of the queue in a random order.) What I mean is that if you have concurrency 2 and get output of the type
you can't know which of Changing the display based on concurrency could work in principle and would be neat, but it might be a bit messy to implement. I could also see it being unreliable when the concurrency is changed. The way settings changes are applied and communicated isn't exactly intuitive. For example, if a job is 'paused' (slowed down to a very low request rate) and you decrease the delay, this gets reflected immediately in I don't think omitting redirects entirely on concurrency > 1 is a good idea. Seeing each individual request/response is important for spotting issues with jobs. Also, redirect chains might never complete if the redirect target results in an error or is ignored due to |
Wouldn't it be possible for the websocket that is sent to the dashboard to include both lines? |
You mean both the redirect response and the redirect target response? Only if you hold back reporting the redirect until completing the chain. So the dashboard wouldn't be showing what's happening in real time, plus there'd be the issues I mentioned in the last paragraph above. |
A comment from the #archiveteam-dev IRC channel:
|
Personally, I prefer option 2 to option 1, due to redirect URLs
sometimes being very long and there sometimes being limited horizontal
space. Perhaps the UI could adjust to window size though?
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
A comment from the #archiveteam-dev IRC channel:
|
No, I meant the redirect response and the destination. In option 2:
I propose that the messages are grouped like so:
That wouldnt cause any concurrency issues. |
Ah, yes, of course. My comment was only about the versions that don't include the redirect target on/after the 30x response but rather only the 30x and then the 200, i.e. options 3 to 6. |
Currently when a redirect happens it looks like this in the dashboards:
Note that the second URL displayed there is not the URL redirected to, but the original URL.
I propose to display the URL being redirected instead, changing the display to one of these:
They all show the URL redirected to in different ways. The options are to show the new URL twice/once, how/whether to use an arrow to indicate it and how to deal with the extra implied space usage.
As I understand it, the right URLs are recorded in the WARCs, but the backend isn't passing the right information to the dashboard, so that will have to be fixed first.
CC @ShadowJonathan since they expressed interest in helping.
The text was updated successfully, but these errors were encountered: