Skip to content
Snippets Groups Projects
  1. Jul 19, 2023
  2. Jul 13, 2023
    • Antoine Lambert's avatar
      backend: Move postgresql backend initialization in a separate class · 1614bb65
      Antoine Lambert authored
      Since commit swh-core@89d48572, the "swh db init" command attempts
      to instantiate the postgresql backend of a swh module using the get_datastore
      function of the module with a "cls" and "db" parameters.
      
      While it works fine for most of swh modules, it does not for the vault as more
      parameters are expected by the "get_vault" function and thus the database init
      is failing. The issue was spotted in the docker environment after updating the
      swh/stack image.
      
      So extract postgresql backend initialization for the vault in a new class named
      VaultBackendDataStore and set it as swh.vault.get_datastore attribute value.
      v1.8.2
      1614bb65
  3. Jul 07, 2023
  4. Jun 26, 2023
  5. May 11, 2023
  6. Mar 03, 2023
  7. Feb 23, 2023
  8. Feb 17, 2023
  9. Feb 16, 2023
  10. Feb 02, 2023
  11. Dec 19, 2022
  12. Nov 23, 2022
  13. Nov 07, 2022
  14. Oct 19, 2022
  15. Oct 18, 2022
  16. Sep 14, 2022
    • David Douard's avatar
      Bump swh dependencies · c315c245
      David Douard authored
      to more reasonable versions...
      v1.8.0
      c315c245
    • David Douard's avatar
      Instanciate the SMTP class only when needed · cab17e72
      David Douard authored
      instead of creating it in the VaultBackend constructor: when configured
      (with host and port), SMTP.connect() is immediately called, which makes
      it mandatory to have the smtp server up and running to be able to create
      the VaultBackend object (which makes it hard to run properly in an elastic
      environment like docker or k8s).
      
      This also removes the fallback to hardcoded 'localhost:25' smtp server;
      if the smtp server is not configured or not reachable, the call to
      _smtp_send() will fail logging the failure (both in logging and sentry).
      cab17e72
  17. Aug 30, 2022
  18. Aug 04, 2022
  19. Jul 29, 2022
  20. Jul 19, 2022
    • vlorentz's avatar
      Fix mypy error · ceb26750
      vlorentz authored
      This is not a runtime issue, because when the supplied mode is DentryPerms.symlink,
      the target is only used passed to os.symlink, which does allow str too.
      ceb26750
  21. Jun 23, 2022
  22. Jun 22, 2022
  23. Jun 21, 2022
  24. Jun 07, 2022
  25. May 31, 2022
  26. May 09, 2022
  27. May 06, 2022
  28. May 02, 2022
  29. Apr 26, 2022
  30. Apr 21, 2022
  31. Apr 13, 2022
    • Antoine R. Dumont's avatar
      api/server: Drop dead code · c8b9c6fd
      Antoine R. Dumont authored
      It was a class parameter from the swh.core.api.asynchronous.RPCServerApp which got
      removed some time ago.
      
      This is not defined in the swh.core.api.RPCServerApp.
      c8b9c6fd
Loading