readthedocs/readthedocs.org

Use a named tuple for tags and branches data

Open

#7,798 opened on Jan 5, 2021

View on GitHub
 (5 comments) (1 reaction) (0 assignees)Python (3,748 forks)batch import
AcceptedGood First IssueImprovement

Repository metrics

Stars
 (7,765 stars)
PR merge metrics
 (Avg merge 10d 6h) (44 merged PRs in 30d)

Description

We are passing a list of dictionaries with verbose_name and identifier, we should use a data structure for this instead to avoid bugs. We need to make sure that celery can serialize named tuples.

ref https://github.com/readthedocs/readthedocs.org/pull/7548#discussion_r542636920

Contributor guide