Skip to content
Snippets Groups Projects
  1. Oct 08, 2019
  2. Oct 07, 2019
  3. Sep 28, 2019
  4. Sep 27, 2019
  5. Sep 20, 2019
  6. Sep 19, 2019
  7. Sep 15, 2019
  8. Sep 06, 2019
  9. Sep 05, 2019
  10. Sep 02, 2019
  11. Aug 22, 2019
  12. Aug 14, 2019
  13. Aug 01, 2019
  14. Jul 30, 2019
  15. Jul 15, 2019
    • David Douard's avatar
      api/async: add support for content negotiation · 4a20ead8
      David Douard authored
      For the content negotiation to work, we expect handler functions to
      return an aiohttp_utils.Response object instead of an aiohttp.Response one
      so we can handle the serialization in the "main" middleware (error_middleware,
      which should probably be renamed).
      
      swh.core.api.asynchronous.encode_data_server() can still be used; it will
      produce a correct Response object if negotitation is in use.
      
      It should still work with server handler implementations that do
      produce aiohttp.Response objects, but without the content negotitation
      feature available then.
      
      This adds a dependency on the aiohttp_utils python package.
    • David Douard's avatar
      api: properly use deprecated for class renamings · 13c18d78
      David Douard authored
      the deprecated decorator for classes does not return a new class, it only
      inject a modified __new__ method, so we indeed need a new class object
      in this case of class renaming.
      13c18d78
    • David Douard's avatar
      tests/cli: make test_swh_help ignore the 'Commands' part of the help msg · 46a9ede3
      David Douard authored
      The list of registered subcommands depends on the user's dev environment.
      46a9ede3
  16. Jul 11, 2019
  17. Jul 10, 2019
  18. Jul 09, 2019
  19. Jul 04, 2019
  20. Jul 01, 2019
    • David Douard's avatar
      api/sync: allow to configure requests for pool size and retries · 9aa6ddfc
      David Douard authored
      by default:
      - increase the connection pool size and
      - set retry to 3 (number of retries each connection should attempt).
      
      These config params can be set directly from config files for 'remote'
      api clients. For example, to specify these in an objstorage client
      config file:
      
        objstorage:
          cls: remote
          args:
            url: swh-objstorage:5003
            max_retries: 5
            pool_connections: 100
      9aa6ddfc
  21. Jun 13, 2019
    • David Douard's avatar
      cli/db: do not attempt to create the DB by default · 9d6aed30
      David Douard authored
      this is needed to prevent the command to depend on having pg's createdb
      tool installed on the machine running the 'swh db-init' command.
      
      In a normal deployment setup, this pg tool is not expected to be present
      on every machine on which one want to be able to use this 'swh db-init'
      command.
      9d6aed30
  22. May 21, 2019
  23. May 20, 2019
  24. May 17, 2019
  25. May 16, 2019
Loading