Skip to content

[16.0][FIX] lighting_export_xlsx: remove write from export_xlsx on attachments#93

Merged
eantones merged 1 commit into16.0from
16.0-fix-lighting_export_xlsx-remove_write_from_export
Mar 25, 2026
Merged

[16.0][FIX] lighting_export_xlsx: remove write from export_xlsx on attachments#93
eantones merged 1 commit into16.0from
16.0-fix-lighting_export_xlsx-remove_write_from_export

Conversation

@eantones
Copy link
Copy Markdown
Member

Summary

The public=True write inside export_xlsx causes concurrent access issues
in any caller that processes many products, not just the XLSX export.

Remove the fallback write entirely — export_xlsx is now purely read-only.
The caller is responsible for setting the non_public_attachment_ids
context key and doing the write at the end.
@eantones eantones force-pushed the 16.0-fix-lighting_export_xlsx-remove_write_from_export branch from f3f8b22 to ee9d583 Compare March 25, 2026 18:20
@eantones eantones merged commit 2fcc6bd into 16.0 Mar 25, 2026
4 checks passed
@eantones eantones deleted the 16.0-fix-lighting_export_xlsx-remove_write_from_export branch March 25, 2026 18:22
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 43.65%. Comparing base (7a0be38) to head (ee9d583).
⚠️ Report is 6 commits behind head on 16.0.

Files with missing lines Patch % Lines
lighting_export_xlsx/models/product_attachment.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             16.0      #93      +/-   ##
==========================================
+ Coverage   43.63%   43.65%   +0.01%     
==========================================
  Files         283      283              
  Lines        8099     8096       -3     
  Branches     1564     1563       -1     
==========================================
  Hits         3534     3534              
+ Misses       4470     4467       -3     
  Partials       95       95              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant