Fix/bypass draft does not cause attachment deletion#417
Conversation
SummaryThe following content is AI-generated and provides a summary of the pull request: Fix: Bypass Draft Mode Causing Unintended Attachment DeletionBug Fix🐛 Fixed a bug where enabling Changes
PR Bot InformationVersion:
💌 Have ideas or want to contribute? Create an issue and share your thoughts with us! Made with ❤️ by Hyperspace. |
There was a problem hiding this comment.
The fix in srv/basic.js is correct and well-placed, but the test validating it has significant issues: waitForDeletion is always called with the record's UUID instead of its storage URL, meaning the negative assertion trivially passes regardless of whether a deletion actually fired — so the bug could silently regress. Additionally, setting fiori.bypass_draft: true globally in package.json puts the entire test suite in bypass-draft mode, which may mask regressions in standard draft-flow tests.
PR Bot Information
Version: 1.20.0 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- File Content Strategy: Full file content
- Event Trigger:
pull_request.opened - LLM:
anthropic--claude-4.6-sonnet - Correlation ID:
dacba0f0-2e9c-11f1-92ca-ac2c21ce9708
When fire.bypass_draft was enabled no draft, in the UPDATE handler detecting draft changes, was returned causing the deletion logic to delete all active attachments.