Skip to content
Snippets Groups Projects
  1. Jun 26, 2023
  2. Jun 20, 2023
  3. Jun 14, 2023
  4. Jun 13, 2023
  5. May 11, 2023
    • vlorentz's avatar
      cli: Prevent rewrapping of code blocks · 984da898
      vlorentz authored
      Before:
      
      ```
      $ swh db init -h
      Usage: swh db init [OPTIONS] MODULE
      
        Initialize a database for the Software Heritage <module>.
      
        The database connection string comes from the configuration file (see option
        ``--config-file`` in ``swh db --help``) in the section named after the
        MODULE argument.
      
        Example::
      
            $ cat conf.yml     storage:       cls: postgresql       db:
            postgresql://user:passwd@pghost:5433/swh-storage       objstorage:
            cls: memory
      
            $ swh db -C conf.yml init storage  # or     $
            SWH_CONFIG_FILENAME=conf.yml swh db init storage
      
        Note that the connection string can also be passed directly using the '--db-
        name' option, but this usage is about to be deprecated.
      ```
      
      After:
      
      ```
      $ swh db init -h
      Usage: swh db init [OPTIONS] MODULE
      
        Initialize a database for the Software Heritage <module>.
      
        The database connection string comes from the configuration file (see option
        ``--config-file`` in ``swh db --help``) in the section named after the
        MODULE argument.
      
        Example::
      
                $ cat conf.yml
                storage:
                  cls: postgresql
                  db: postgresql://user:passwd@pghost:5433/swh-storage
                  objstorage:
                    cls: memory
      
                $ swh db -C conf.yml init storage  # or
                $ SWH_CONFIG_FILENAME=conf.yml swh db init storage
      
        Note that the connection string can also be passed directly using the '--db-
        name' option, but this usage is about to be deprecated.
      ```
    • vlorentz's avatar
  6. May 10, 2023
    • vlorentz's avatar
      config: Remove confusing magic in path handling · 2663c0a4
      vlorentz authored
      1. When passed a .yaml path (or any path with a non-whitelisted extension),
         don't read .yml instead when the .yaml exists.
         It's an extremely surprising behavior.
      
      2. If the .yaml file does not exist, it will still try alternative extensions
         in order not to break existing deployments which may rely on it, but it
         raises a warning now.
      
      3. When given a non-existing path, show an error log, but keep parsing
         it as an empty config, in order not to break existing deployments.
  7. May 02, 2023
  8. Apr 20, 2023
  9. Apr 18, 2023
  10. Apr 13, 2023
  11. Mar 27, 2023
  12. Mar 13, 2023
  13. Mar 08, 2023
  14. Feb 21, 2023
  15. Feb 20, 2023
  16. Feb 17, 2023
  17. Feb 02, 2023
  18. Jan 24, 2023
  19. Jan 23, 2023
  20. Dec 21, 2022
  21. Dec 09, 2022
  22. Oct 24, 2022
  23. Oct 18, 2022
  24. Oct 13, 2022
  25. Oct 12, 2022
  26. Oct 05, 2022
  27. Oct 03, 2022
  28. Sep 12, 2022
  29. Aug 23, 2022
    • vlorentz's avatar
      Fix mypy error · 843a010c
      vlorentz authored
      Without the return, 'psycopg2.connect(db_or_conninfo)' is actually reachable
      when calling next() twice on the generator
      843a010c
  30. Aug 19, 2022
  31. Aug 09, 2022
Loading