Skip to content
Snippets Groups Projects
  1. Apr 08, 2022
  2. Apr 07, 2022
    • Antoine Lambert's avatar
      common/utils: Use cache in origin_visit_types function · bdee9fe4
      Antoine Lambert authored
      That function is used to dynamically retrieve the list of origin visit
      types (git, svn, npm, ...) currently supported by Software Heritage.
      
      That list of visit types is then used to populate the visit type
      dropdown in the search form available in the home and search pages
      of the web application.
      
      However getting that visit types list is costly as it involves sending
      an elasticsearch query through the use of swh-search.
      
      So instead of sending that costly query each time a search form must
      be rendered, prefer to cache the visit types list and update it
      every 24 hours.
      
      That change significantly speedup the homepage rendering of the
      web application.
      bdee9fe4
    • Antoine Lambert's avatar
      common/utils: Add a django_cache decorator and use it in codebase · b364c93d
      Antoine Lambert authored
      Add a decorator enabling to put the result of a function call in Django
      cache, subsequent calls will then directly return the cached value.
      
      Use that decorator whenever it is possible in swh-web codebase to simplify
      the handling of cached values and improve code readability.
      b364c93d
    • vlorentz's avatar
      Rename metadata_raw to raw_metadata in get_deposit_raw_metadata · 96b27bf4
      vlorentz authored
      The next version of swh-deposit will do this renaming, for consistency with
      _admin_deposit_list and the rest of the codebase.
  3. Apr 06, 2022
  4. Apr 05, 2022
  5. Apr 04, 2022
  6. Apr 01, 2022
  7. Mar 30, 2022
  8. Mar 29, 2022
  9. Mar 28, 2022
  10. Mar 25, 2022
  11. Mar 24, 2022
Loading