Skip to content
Snippets Groups Projects
  1. May 05, 2020
    • Antoine Lambert's avatar
      api/vault: Fix 404 handling and improve error messages · affd506b
      Antoine Lambert authored
      Vault 404 error handling needed to be updated since changes related to
      exception handling server side.
      
      Also improve returned error messages, add missing test and slightly
      refactor tests implementation (use hypothesis instead of harcoded data).
      
      Closes T2388
      affd506b
  2. May 04, 2020
  3. Apr 30, 2020
  4. Apr 29, 2020
  5. Apr 24, 2020
  6. Apr 23, 2020
    • Antoine Lambert's avatar
      pytest.ini: Avoid loading flask plugin to prevent fixture name clash · 98d53fed
      Antoine Lambert authored
      pytest-django and pytest-flask both declare a fixture named client and
      the wrong one is picked when running swh-web tests.
      
      So avoid the loading of pytest flask plugin to prevent errors when
      running tests.
      98d53fed
    • Antoine Lambert's avatar
      browse: Disambiguate URLs related to origin / snapshot context browsing · 6945c4ef
      Antoine Lambert authored
      Disambiguate and/or deprecate the following browse URLs:
      
        - GET /browse/origin/(origin_url)/content/(path)/
      
        - GET /browse/origin/(origin_url)/directory/(path)/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/branches/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/content/(path)/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/directory/(path)/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/log/
      
        - GET /browse/origin/(origin_url)/visit/(timestamp)/releases/
      
        - GET /browse/snapshot/(snapshot_id)/content/(path)/
      
        - GET /browse/snapshot/(snapshot_id)/directory/(path)/
      
      Replace their use by providing timestamp and path as query parameters to these endpoints
      for consistency:
      
        - GET /browse/origin/(origin_url)/content/
      
        - GET /browse/origin/(origin_url)/directory/
      
        - GET /browse/origin/(origin_url)/log/
      
        - GET /browse/origin/(origin_url)/branches/
      
        - GET /browse/origin/(origin_url)/releases/
      
        - GET /browse/snapshot/(snapshot_id)/content/
      
        - GET /browse/snapshot/(snapshot_id)/directory/
      
      Update endpoints documentation to reflect these changes.
      
      Closes T2115
      Closes T2135
      6945c4ef
  7. Apr 22, 2020
  8. Apr 21, 2020
    • Antoine Lambert's avatar
      browse/snapshot_context: Refactor, add type annotations and tests · 40ac1374
      Antoine Lambert authored
      Slightly refactor and improve the swh.web.browse.snapshot_context module:
      
        - merge _process_snapshot_request function into get_snapshot_context one
      
        - rename some dict keys and add snapshot / origin related type annotations
      
        - cleanup and simplify get_snapshot_context implementation
      
        - update some docstrings
      
        - add new exhaustive tests for get_snapshot_context function
      
      Closes T2360
      40ac1374
    • Antoine Lambert's avatar
      get_origin_visit: Return first visit with non null snapshot by default · 88847f09
      Antoine Lambert authored
      When no timestamp or visit id is provided to the get_origin_visit function,
      return the first visit with a non null snapshot instead of the first full
      visit. Indeed, a partial visit can have a valid snapshot and should be not
      filtered out.
      v0.0.228
      88847f09
  9. Apr 20, 2020
  10. Apr 17, 2020
  11. Apr 15, 2020
  12. Apr 10, 2020
  13. Apr 08, 2020
  14. Apr 07, 2020
Loading