[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #19452 [Metrics/Atlas]: Make single request for Onionoo details document
#19452: Make single request for Onionoo details document
---------------------------+--------------------------
Reporter: phw | Owner: irl
Type: enhancement | Status: accepted
Priority: Medium | Milestone:
Component: Metrics/Atlas | Version:
Severity: Normal | Resolution:
Keywords: onionoo | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
---------------------------+--------------------------
Comment (by karsten):
Replying to [comment:1 irl]:
> Do we still need a limit if we're only doing one request?
I'd say yes. Onionoo currently knows about 13k relays and bridges that
are either running or have been running in the past week. Displaying them
all in a table won't go so well. And putting together such a response
requires some effort on the server, too.
In the future, we could easily add an `offset` parameter to implement
pagination. For example, displaying 50 results per page and showing page
2 with results 51 to 100: `offset=50&limit=51`, where the 51st result
would again be to learn if there's a page 3; and oh dear, your next
question will be how to find out how many hits there are in total... How
about we move that to a separate issue after this one is implemented? :)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19452#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs