Skip to content

Drop unused issue_count field from pull_list series serializer - #626

Merged
bpepple merged 1 commit into
masterfrom
pull-list-fix
Sep 14, 2026
Merged

bpepple merged 1 commit into
masterfrom
pull-list-fix

Conversation

@bpepple

@bpepple bpepple commented Sep 14, 2026

Copy link
Copy Markdown
Member

Summary

  • PullListSeriesInfoSerializer exposed issue_count, sourced from num_issues via the inherited SeriesListSerializer field
  • num_issues is only ever populated by a queryset annotation done elsewhere (SeriesViewSet); PullListViewSet.series() never added it
  • Since the field is read_only, DRF silently skips it rather than erroring, so it was always missing from GET /api/pull_list/series/ responses despite being in the field list and documented in the README
  • Removed the field (and its README example entry) rather than adding a redundant annotation just to populate a field with little practical use here

Fixed #625

PullListSeriesInfoSerializer exposed issue_count, sourced from num_issues via the inherited SeriesListSerializer field. num_issues is only ever populated by a queryset annotation done elsewhere (SeriesViewSet), and PullListViewSet.series() never added it. Since the field is read_only, DRF silently skipped it rather than erroring, so it was always missing from the response despite being documented. Remove it rather than adding a redundant annotation just for this list.
@bpepple bpepple self-assigned this Sep 14, 2026
@bpepple bpepple added bug Something isn't working api An API bug/feature labels Sep 14, 2026
@bpepple
bpepple merged commit 151336f into master Sep 14, 2026
2 checks passed
@bpepple
bpepple deleted the pull-list-fix branch September 14, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api An API bug/feature bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PullListSeries doesn't match the API Schema

1 participant