Skip to content
Snippets Groups Projects
  1. Jul 08, 2024
  2. Jul 04, 2024
    • Antoine Lambert's avatar
      save_bulk: Add new endpoints to manage bulk archival of origins · 8ac56399
      Antoine Lambert authored
      Add a new django application to manage bulk archival of origins.
      
      As a first step, add a new Web API endpoint to submit a list of origins
      to archive and a new endpoint enabling to retrieve that list of origins
      in a paginated way.
      
      The Web API endpoint enables an user with specific permission to submit
      a list of origin URLs and their visit types through a POST request.
      The endpoint performs some basic checks on the received origins data to
      verify origin URLs are well formed but also if provided visit types are
      supported.
      
      If provided origins data are valid, the request is accepted and a oneshot
      scheduler task is created to execute the bulk-save lister. That lister will
      consume that list of origins, perform some extra but more costly checks on
      them and those validated by it will then be scheduled for loading into the
      archive.
      
      If some origins data are not valid, the request is rejected and a list of
      bogus origins along the reasons of their rejections is returned to the user
      in the Web API response.
      
      The other endpoint is dedicated to be consumed by the bulk-save lister to
      retrieve the submitted origins list in a paginated way. It is better to
      store submitted origins data on the webapp side to avoid bloating the
      scheduler database with large JSON documents in case a big list of origins
      is submitted by an user.
      
      Related to #4802.
      8ac56399
    • Antoine Lambert's avatar
    • Antoine Lambert's avatar
      48c6fd33
  3. Jul 02, 2024
  4. Jun 20, 2024
  5. Jun 17, 2024
  6. Jun 06, 2024
  7. May 27, 2024
  8. May 23, 2024
  9. May 22, 2024
  10. May 16, 2024
  11. May 02, 2024
  12. Apr 30, 2024
    • Antoine Lambert's avatar
      admin: Ensure to not configure if swh.web.admin django app is disabled · c27d0c72
      Antoine Lambert authored
      It fixes issues with autodoc processing as this django application is
      disabled by default.
      c27d0c72
    • Antoine Lambert's avatar
      cypress/mailmap: Fix some wait conditions · 6ea2b482
      Antoine Lambert authored and Antoine Lambert's avatar Antoine Lambert committed
      6ea2b482
    • Antoine Lambert's avatar
      Add swh.web.admin django application wrapping django admin site · 05f90d17
      Antoine Lambert authored and Antoine Lambert's avatar Antoine Lambert committed
      Enable to use django administration site in swh-web by including "swh.web.admin"
      application in swh_extra_django_apps list from swh-web configuration.
      
      When enabled, the admin site is available through the new /manage/ endpoint.
      
      It allows an user to modify some django models of interest (adding, deleting or
      modifying rows) if he/she has adequate permissions to do so.
      
      Currently, only the add forge now request and save code now request models can
      be managed with the admin site through the use of the following permissions:
      
      - swh_web_add_forge_now.add_request
      - swh_web_add_forge_now.change_request
      - swh_web_add_forge_now.delete_request
      - swh_web_add_forge_now.view_request
      - swh_web_save_code_now.add_saveoriginrequest
      - swh_web_save_code_now.change_saveoriginrequest
      - swh_web_save_code_now.delete_saveoriginrequest
      - swh_web_save_code_now.view_saveoriginrequest
      
      When swh-web is using the default django authentication backend, the admin site
      also enables and administrator to manage user accounts and their permissions.
      
      When swh-web is using Keycloak as the authentication backend, the permissions
      listed above must be added as swh-web client roles and these roles can then be
      set for an user through the Keycloak admin console in order to use the features
      offered by the admin site.
      05f90d17
    • Antoine Lambert's avatar
      tests: Remove use of reset_sequences parameter of pytest.mark.django_db · 03ce950a
      Antoine Lambert authored
      It messes up with django permissions creation when using pytest-xdist.
      03ce950a
Loading