Skip to content
Snippets Groups Projects
  1. Apr 21, 2021
  2. Apr 20, 2021
    • Antoine Lambert's avatar
      common/highlightjs: Turn some global variables into functions · 2f83416d
      Antoine Lambert authored
      The _hljs_languages* global variables content rely on reading a JSON file
      located through Django static finders.
      
      As a side effect, when the module is imported, the JSON file is located
      then read.
      
      When the DJANGO_SETTINGS_MODULE environment variable is not set, the
      module import will fail as the JSON file could not be located.
      
      So avoid to execute that JSON loading code when importing the module
      by turning the global variables into functions.
      
      The purpose is to avoid import errors when running sphinx autodoc.
      2f83416d
  3. Apr 19, 2021
  4. Apr 16, 2021
  5. Apr 15, 2021
  6. Apr 14, 2021
  7. Apr 13, 2021
  8. Apr 09, 2021
  9. Apr 08, 2021
  10. Apr 07, 2021
  11. Apr 02, 2021
  12. Apr 01, 2021
  13. Mar 31, 2021
  14. Mar 30, 2021
  15. Mar 29, 2021
    • Antoine Lambert's avatar
      common/origin_save: Prevent erroneous save code now status overriding · 046c3aed
      Antoine Lambert authored
      Loading status for a save code now request is first retrieved from the
      scheduler database.
      
      When a visit date for a save code now request has been found, the visit
      status is then checked to possibly update the final status of the
      request to failed (when an origin is not found for instance).
      
      However to avoid sending too many costly queries to the storage,
      the visit date and status are only checked once and stored to
      swh-web database.
      
      So ensure to not override a final loading task status (succeeded or
      failed) to avoid invalid save code now request reporting.
      046c3aed
    • Antoine Lambert's avatar
      ce7dceb4
  16. Mar 23, 2021
  17. Mar 22, 2021
  18. Mar 18, 2021
    • Antoine Lambert's avatar
      browse: Filter out pull request branches in snapshot content · cc652d52
      Antoine Lambert authored
      Github origins might contain a lot of branches corresponding to pull
      requests in their associated snapshots.
      
      Those branches are not really of interest and add a lot of noise in
      the branches views of swh-web.
      
      So filter out these branches from snapshots by default in the browse
      web application in order to improve the display.
      
      Nevertheless, those branches are not filtered out when querying a
      snapshot with the Web API.
      
      Related to T2782
    • Antoine Lambert's avatar
      common/archive: Add branch names filtering support in lookup_snapshot · 5e003706
      Antoine Lambert authored
      Enable to filter returned branches according to their name in
      lookup_snapshot and lookup_snapshot_sizes.
      
      Using the optional branch_name_include_substring parameter will
      only return branches whose name contains the provided substring.
      
      Using the optional branch_name_exclude_prefix parameter will
      not return branches whose name starts with the provided prefix.
      
      Related to T2782
      5e003706
  19. Mar 17, 2021
  20. Mar 16, 2021
  21. Mar 15, 2021
  22. Mar 12, 2021
    • Antoine Lambert's avatar
      webpack/weblabels-plugin: Fix Web Labels table in production mode · 58488795
      Antoine Lambert authored
      Recent changes in webpack modified the content of the JSON stats object
      when compiling assets in production mode. Notably a module chunk is now
      identified by an integer instead of its name.
      
      So add an extra mapping between a chunk id and its name in order to fix
      the generated Web Labels table.
      58488795
  23. Mar 09, 2021
Loading