Skip to content
Snippets Groups Projects
  1. Apr 29, 2022
  2. Feb 25, 2022
  3. Jun 01, 2021
  4. May 17, 2021
  5. May 13, 2021
  6. Jul 14, 2020
  7. Jul 09, 2020
  8. Jul 08, 2020
    • Philipp Winter's avatar
      Bump version number to 0.11.0. · bd32dd76
      Philipp Winter authored
    • Philipp Winter's avatar
      Make BridgeDB export internal metrics. · ce329216
      Philipp Winter authored
      BridgeDB already exports usage metrics that help us understand how our
      users interact with BridgeDB.  This commit adds internal metrics, which
      shed light on BridgeDB's internals.  In particular, we add the following
      internal metrics:
      
      * Number of bridges per distributor subring.
      
      * Number of empty responses per distributor.
      
      * Number of IPv4/IPv6 handouts.
      
      * Descriptive statistics on the number of bridge handouts (min, max,
        median, quartile 1, quartile 3, upper whisker, lower whisker).
      
      * Number of unique bridges that were handed out.
      
      This patch fixes #31422 and also bumps
      BridgeDB's metrics format to version 2.
    • Philipp Winter's avatar
      Parse bridge blocking info from SQL database. · 5e0ed0af
      Philipp Winter authored
      The plan currently is that wolpertinger will populate our SQL database
      with bridge blocking info provided by OONI.  This patch adds code that
      parses this data and adds it to our existing bridge objects.
      
      This fixes tpo/anti-censorship/bridgedb#34260.
      5e0ed0af
  9. Jul 02, 2020
  10. Jun 18, 2020
  11. May 28, 2020
  12. May 27, 2020
  13. May 22, 2020
    • Philipp Winter's avatar
      Use contextlib's context manager. · 2abd54a1
      Philipp Winter authored
      So far, the email autoresponder fails after a while, raising the
      following exception:
      
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
          why = selectable.doRead()
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/twisted/internet/tcp.py", line 243, in doRead
          return self._dataReceived(data)
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/twisted/internet/tcp.py", line 249, in _dataReceived
          rval = self.protocol.dataReceived(data)
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/twisted/protocols/basic.py", line 454, in dataReceived
          self.lineReceived(line)
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/twisted/mail/smtp.py", line 445, in lineReceived
          return getattr(self, 'state_' + self.mode)(line)
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/twisted/mail/smtp.py", line 705, in dataLineReceived
          m.eomReceived() for m in self.__messages
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/twisted/mail/smtp.py", line 705, in <listcomp>
          m.eomReceived() for m in self.__messages
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.10.0+11.g4cdd6a61.dirty-py3.7.egg/bridgedb/distributors/email/server.py", line 230, in eomReceived
          self.responder.reply()
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.10.0+11.g4cdd6a61.dirty-py3.7.egg/bridgedb/distributors/email/autoresponder.py", line 574, in reply
          response = self.getMailData()
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.10.0+11.g4cdd6a61.dirty-py3.7.egg/bridgedb/distributors/email/autoresponder.py", line 392, in getMailData
          client, lang)
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.10.0+11.g4cdd6a61.dirty-py3.7.egg/bridgedb/distributors/email/autoresponder.py", line 101, in createResponseBody
          bridges = context.distributor.getBridges(bridgeRequest, interval)
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.10.0+11.g4cdd6a61.dirty-py3.7.egg/bridgedb/distributors/email/distributor.py", line 145, in getBridges
          with bridgedb.Storage.getDB() as db:
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.10.0+11.g4cdd6a61.dirty-py3.7.egg/bridgedb/Storage.py", line 352, in __enter__
          return next(self.gen)
        File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.10.0+11.g4cdd6a61.dirty-py3.7.egg/bridgedb/Storage.py", line 472, in getDB
          assert _REFCOUNT == 0
      builtins.AssertionError:
      
      It's not clear what caused this regression but it may have been
      introduced in commit c1a48d1b, as part of our conversion to Python 3.
      
      This fixes <https://bugs.torproject.org/33945>.
  14. May 20, 2020
  15. May 14, 2020
  16. May 07, 2020
  17. Apr 15, 2020
  18. Apr 06, 2020
  19. Apr 01, 2020
  20. Mar 31, 2020
  21. Mar 24, 2020
  22. Mar 18, 2020
  23. Feb 19, 2020
  24. Feb 13, 2020
  25. Feb 04, 2020
  26. Oct 29, 2019
  27. Oct 28, 2019
  28. Oct 21, 2019
  29. Oct 16, 2019
    • Philipp Winter's avatar
      Bump version number to 0.9.0. · 330d21f1
      Philipp Winter authored
    • Philipp Winter's avatar
      Add a language switcher to BridgeDB's web UI. · 166e8995
      Philipp Winter authored
      So far, BridgeDB looked at the user's Accept-Language request header to
      decide what language to use in its web interface.  Not everybody likes
      that, so we should provide an option to override this behaviour.  This
      patch adds a language switcher to BridgeDB's web interface.  It sits at
      the top right and lets the user choose their language.
      
      Some implementation considerations:
      
      * The patch uses BridgeDB's "lang" HTTP GET argument to pass the chosen
        language from one page to another.  This allows us to avoid cookies.
      
      * We allow the user to pick any language that BridgeDB supports,
        regardless of how complete the translations are.
      
      * Each language in the language switcher is translated to the respective
        language, i.e., it says "español" instead of "spanish".
      
      This patch fixes <https://bugs.torproject.org/26543>.
  30. Oct 03, 2019
Loading