Skip to content
Snippets Groups Projects
  1. Mar 17, 2022
  2. Mar 16, 2022
  3. Mar 15, 2022
    • Antoine Lambert's avatar
      cypress: Generate tests data once and get them through a task · 627ba79a
      Antoine Lambert authored
      Some cypress tests use input data generated before each test suite.
      
      Some of these data are retrieved by sending HTTP requests to the
      Software Heritage Web API, which can take some times, especially
      when repeating that processing before each test suite.
      
      So instead of sending those HTTP requests before each test suite,
      prefer to do it once and put the test data in global cache. Those
      data will then be set to test suite scope through the use of a
      custom cypress task.
      627ba79a
    • Antoine Lambert's avatar
      cypress: Add missing global intercept for https://status.swh.org · 2b1ae269
      Antoine Lambert authored
      Each time a swh-web HTML page is loaded, an HTTP request is sent to
      https://status.softwareheritage.org for getting the data needed to
      display the status widget in the top right of the Web UI.
      
      That request was not globally intercepted by cypress resulting in
      making real HTTP requests on the internet while executing tests.
      As a consequence, this was slowing down the whole testing process.
      
      So ensure that request is globally intercepted to speedup tests
      execution.
      2b1ae269
    • Antoine Lambert's avatar
      add_forge_now: Move datatables listing in dedicated endpoint · b6d540d2
      Antoine Lambert authored
      Merging datatables special processing in /api/1/add-forge/request/list
      endpoint implementation was quite disturbing.
      
      So better using a dedicated endpoint for that in a similar manner as
      with save code now requests listing.
      
      The endpoint to use with datatables is now the following one:
      /add-forge/request/list/datatables.
      
      Related to T3989
      Related to T3991
      b6d540d2
  4. Mar 14, 2022
    • Antoine Lambert's avatar
      package.json: Upgrade dependencies · 5bc77709
      Antoine Lambert authored
      5bc77709
    • Antoine Lambert's avatar
      api/add_forge_now: Allow to use requests list endpoint with datatables · f6343395
      Antoine Lambert authored
      datatables is the javascript library we use on the frontend side to
      display interactive tables.
      
      As we use server-side processing, table data must be provided in a
      paginated way by an HTTP endpoint.
      
      Response format expected by datatables is different from the one
      returned by the Web API endpoint listing add-forge requests.
      
      So adapt the response format of that endpoint when we know the
      input request has been sent by datatables.
      
      Related to T3989
      Related to T3991
      f6343395
  5. Mar 11, 2022
  6. Mar 10, 2022
  7. Mar 09, 2022
  8. Mar 08, 2022
  9. Mar 07, 2022
  10. Feb 24, 2022
  11. Feb 23, 2022
  12. Feb 22, 2022
  13. Feb 21, 2022
    • Antoine Lambert's avatar
      common/swh_templatetags: Fix parsing issue in urlize_header_links · 937a1d59
      Antoine Lambert authored
      If one of the URL links to parse contains a comma character, the parsing
      was incorrect.
      
      So fix that issue by updating the regexp use to format the links for
      display in the API Web UI.
      
      Related to T3967
      937a1d59
    • Antoine Lambert's avatar
      requirements: Workaround another ImportError when running pytest · 55aa143d
      Antoine Lambert authored
      When calling "./bin/install" from swh-environment in a freshly created
      venv, for some reason pip will end up installing flask==1.1.2 when
      processing swh-web (likely related to the venv state after installing
      other swh modules).
      
      That flask version is quite outdated and will fail to import the json
      module from the version of itsdangerous installed in the venv.
      
      So as a workaround pin flask to the first version that does not trigger
      that ImportError issue.
      55aa143d
  14. Feb 18, 2022
  15. Feb 17, 2022
    • Antoine Lambert's avatar
      browse/utils: Robustify content encoding detection · d9944bdd
      Antoine Lambert authored
      When attempting to re-encode non UTF-8 textual content, use chardet
      to find the encoding first and use it if the detection confidence
      is really high.
      
      Previously some encoding like SHIFT_JIS (for japanese language) were
      not correctly detected and thus content were badly rendered in the
      browse Web UI.
      d9944bdd
  16. Feb 15, 2022
  17. Feb 14, 2022
  18. Feb 11, 2022
Loading