Skip to content
Snippets Groups Projects
  1. Mar 31, 2024
  2. Mar 29, 2024
  3. Mar 28, 2024
  4. Mar 27, 2024
    • David Douard's avatar
      Fix OriginInfo: use a list instead of a set for visit_types · b77a86c8
      David Douard authored
      This matches what swh-search returns and expects. This could make
      test_lookup_origin() (in test_archive.py) fail when the bad luck (?) made
      hypothesis generate a test set where swh-search's in-memory backend
      tries to merge the visit_types with an existing one (thus trying to add
      a pair set objects).
      
      Adapt the definition of OriginInfo (more or less the local version of
      swh-search's OriginDict) accordingly.
      b77a86c8
    • Antoine Lambert's avatar
      tox: Simplify tests setup after pytest 8.1 release · c08347bf
      Antoine Lambert authored
      Since the release of pytest 8.1, some pytest options are no longer
      needed and editable install can be used when running tests using tox.
      c08347bf
  5. Mar 22, 2024
    • Antoine Lambert's avatar
      browse/search: Handle visit type when search pattern is an origin URL · 4ce23c9a
      Antoine Lambert authored and Antoine Lambert's avatar Antoine Lambert committed
      When searching for origins with the Web UI, if the search pattern is equal
      to the URL of an archived origin then user gets automatically redirected to
      the interface for browsing it.
      
      Previously the visit type was not taken into account prior performing the
      redirection so ensure to redirect only if the origin has a visit type
      that matches the selected one.
      4ce23c9a
  6. Mar 14, 2024
    • Antoine Lambert's avatar
      conftest: Improve mocking of webpack stats · f98b1824
      Antoine Lambert authored
      Instead of writing a dummy webpack-stats.json file into the static folder
      of swh-web when pytest is configured, prefer to autouse a session scoped
      fixture mocking the return value of WebpackLoader.load_assets.
      f98b1824
  7. Mar 13, 2024
  8. Mar 01, 2024
  9. Feb 28, 2024
  10. Feb 27, 2024
    • David Douard's avatar
      Small fix for /origin/save · 2356849a
      David Douard authored
      It seems it is possible for the _savable_visit_types() helper function
      to be called with an empty 'visit_types' (case found in docker tests).
      
      Prevent an IndexError.
      2356849a
  11. Feb 23, 2024
  12. Feb 21, 2024
  13. Feb 20, 2024
  14. Feb 16, 2024
  15. Feb 14, 2024
  16. Feb 13, 2024
  17. Feb 12, 2024
Loading