Page MenuHomeSoftware Heritage

Reorganize and refactor snapshot browsing related code
Closed, MigratedEdits Locked

Description

Currently, code to retrieve snapshot context related data and prepare HTML display is spread in multiple source files:

  • there is a get_snapshot_context function in swh.browse.utils module
  • the rest of the code is located in the swh.web.browse.views.utils.snapshot_context module

This code organization is not great and must be merged in a single utility module swh.web.browse.snapshot_context.

Also that code must be refactored and improved (notably by renaming some variables, removing code duplication, adding type annotations and missing tests).

Event Timeline

anlambert triaged this task as Normal priority.Apr 14 2020, 3:37 PM
anlambert created this task.