Skip to content
Snippets Groups Projects
  1. Nov 22, 2022
  2. Nov 21, 2022
  3. Nov 16, 2022
  4. Nov 15, 2022
    • Antoine Lambert's avatar
      browse: Display branches names in snapshot releases view · 694802b2
      Antoine Lambert authored
      Previously the snapshot releases view was only displaying the releases
      names and not the branches names targeting those.
      
      But it exist cases where multiple branches target the same release in
      a snapshot so also display branches names in the releases table in order
      to avoid confusion about duplicated releases.
      
      Related to T4686
      694802b2
    • vlorentz's avatar
      origin-search: Only request 'url' field · 6531a365
      vlorentz authored
      By default, an extra query is sent to swh-indexer to (maybe) populate
      the 'metadata' field, which is not used by the client, so it unnecessarily
      increases latency to get results
      v0.2.4
      6531a365
    • vlorentz's avatar
      metadata-search: Skip query to swh-indexer when its results would be discarded · f59acd61
      vlorentz authored
      The 'fields' query parameter is used by clients to indicate what fields the
      API should return.
      
      If 'metadata' is not in that field, then the 'metadata' object will be
      discarded by apiresponse, so the call to
      `idx_storage.origin_intrinsic_metadata_get` is useless.
      
      I expect no client actually uses this field, so this could save
      ressources.
      
      Additionally, I want to deprecate the field, so this may make it easier
      to figure if any client actually requests it by looking at server logs.
      f59acd61
    • vlorentz's avatar
      metadata-search: Return swh-search even when missing from idx_storage.origin_intrinsic_metadata · 76c64ea4
      vlorentz authored
      This is needed, because swh-search may now return results based on extrinsic metadata,
      in addition to intrinsic metadata.
      
      I do not want to query idx_storage.origin_extrinsic_metadata here, because it
      is not clear how to merge with the existing data structure.
      
      Additionally, I do not think anyone relies on the metadata returned by this
      endpoint because it is undocumented and rather inflexible. Instead, I would
      like to deprecate returning metadata from this endpoint altogether, as there
      is a more appropriate endpoint to get metadata once you have the origin URL.
      76c64ea4
  5. Nov 14, 2022
  6. Nov 09, 2022
  7. Nov 08, 2022
  8. Nov 07, 2022
  9. Nov 04, 2022
    • Antoine Lambert's avatar
      browse/templates/top-navigation: Prevent VariableDoesNotExist exception · 2fdb0b16
      Antoine Lambert authored
      It exist cases where the vault_cooking template variable is set to None
      (when browsing a snapshot branch targeting a content for instance), so
      ensure to prevent VariableDoesNotExist exception thrown by django in
      debug mode as it generates noise in debug output.
      2fdb0b16
    • Antoine Lambert's avatar
      browse: Update snapshot branches list view to display all target types · f0f3e689
      Antoine Lambert authored
      Previously, the snapshot branches list view was only displaying branches
      targeting revisions but it now exists cases where branches can target
      contents or directories.
      
      So update view implementation to display all type of branches and add
      visual clues to indicate which object types they are targeting.
      
      Related to T4669
      f0f3e689
    • Antoine Lambert's avatar
      browse: Handle snapshots whose branches target contents or directories · 8f594ec2
      Antoine Lambert authored
      Previously swh-web was only supporting the browsing of snapshot branches
      targeting revisions but we recently introduced new Software Heritage
      loaders producing snapshots whose branches target contents or directories
      but no revisions.
      
      So add support to browse such snapshots as previously they were flagged as
      empty when trying to display them.
      
      Related to T4669
      8f594ec2
  10. Nov 03, 2022
    • Antoine Lambert's avatar
      utils/urlsindex: Modify UrlsIndex class to simplify API URLs management · d055e08d
      Antoine Lambert authored
      Make that class instantiable in order for each swh django application to
      manage its related Web API URLs independently from the swh.web.api django
      application.
      
      It also simplifies initialization of applications as their ordering does
      not matter anymore but also improves tests related to URLs registration
      of an application.
      
      Also add typing to UrlsIndex class.
      d055e08d
  11. Nov 02, 2022
    • Antoine Lambert's avatar
      save_origin_webhooks: Add push webhook receivers for popular forges · 93696b9c
      Antoine Lambert authored
      Add new Web API endpoints accepting only POST requests coming from push
      webhooks of the following popular forges or their instances:
      
      - Bitbucket
      - Gitea
      - GitHub
      - GitLab
      - SourceForge
      
      There is one API endpoint per forge type enabling to request or update the
      archival of a repository when new commits are pushed to it through the Save
      Code Now service. Each endpoint simply processes the webhook JSON payload
      sent by a forge in order to extract the repository URL and the visit type
      in order to create a new save request for the repository.
      
      Related to T4548
      93696b9c
  12. Oct 31, 2022
    • Antoine Lambert's avatar
      apidoc: Fix some issues regarding generated documentation links · 024da722
      Antoine Lambert authored
      Previous URLs targetting endpoints documentation were in the form
      /1/<endpoint_route> while they should have been in the form
      /api/1/<endpoint_route> so fix them and add redirections from old
      URLs for backward compatibility.
      
      Breadcrumbs located in the top left part of Web API endpoint doc
      could contain links to non existent endpoints so ensure to remove
      those and render spans instead.
      024da722
  13. Oct 28, 2022
  14. Oct 26, 2022
  15. Oct 19, 2022
  16. Oct 18, 2022
  17. Oct 12, 2022
  18. Sep 28, 2022
Loading