Skip to content

fix(exporter): remove unused HTML DataJSON dead code - #22

Closed
MrBeldum wants to merge 1 commit into
loop-eng:mainfrom
MrBeldum:fix/14-remove-unused-html-datajson
Closed

fix(exporter): remove unused HTML DataJSON dead code#22
MrBeldum wants to merge 1 commit into
loop-eng:mainfrom
MrBeldum:fix/14-remove-unused-html-datajson

Conversation

@MrBeldum

Copy link
Copy Markdown

Summary

html.go computed DataJSON via json.Marshal on iterations, but the HTML template never referenced it. That was pure dead work on every export.

  • Remove the unused DataJSON field and marshal step
  • Drop the now-unused encoding/json import
  • Add exporter tests covering HTML export, escaping, diff rendering, and a regression guard against reintroducing an unused marshaled iterations blob

Fixes #14

Test plan

  • go test ./internal/exporter/ -count=1

DataJSON was marshaled from iterations but never referenced in the
template. Drop the field and add export regression coverage.

Fixes loop-eng#14
@MrBeldum

Copy link
Copy Markdown
Author

Closing as duplicate of #20 (same Fixes #14 change landed first on fix/14-remove-unused-datajson).

@MrBeldum MrBeldum closed this Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTML export DataJSON computed but never used in template

1 participant