[tor-bugs] #28684 [Core Tor/sbws]: Make sbws easy to understand and maintain

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jan 11 13:33:22 UTC 2019


#28684: Make sbws easy to understand and maintain
---------------------------+-----------------------------------
 Reporter:  juga           |          Owner:  (none)
     Type:  defect         |         Status:  new
 Priority:  Medium         |      Milestone:  sbws: unspecified
Component:  Core Tor/sbws  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+-----------------------------------

Comment (by juga):

 Replying to [comment:16 irl]:
 > The output of the parser for stem should be a Python object. Take a look
 at the ServerDescriptor class for an example:
 >
 >
 https://stem.torproject.org/api/descriptor/server_descriptor.html#stem.descriptor.server_descriptor.RelayDescriptor

 Oh, then it's even easier, since it's already an object
 (https://github.com/torproject/sbws/blob/master/sbws/lib/v3bwfile.py#L511).
 The things to do then:
 1. Maybe solve first #28282 to eliminate the aggregation logic from the
 classes
 2. To do not depend on a stem version that is not released, duplicate the
 code both in sbws and stem, until there's a new stem release

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28684#comment:17>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list