Skip to content

Single attachment#376

Open
eric-pSAP wants to merge 72 commits into
mainfrom
singleAttachment
Open

Single attachment#376
eric-pSAP wants to merge 72 commits into
mainfrom
singleAttachment

Conversation

@eric-pSAP
Copy link
Copy Markdown
Contributor

Allowing attachments to be assignable as a type. Allows for only 1 single attachment instead of a composition of many.

Copy link
Copy Markdown
Contributor

@hyperspace-insights hyperspace-insights Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

This PR introduces several substantive issues: the SingleMediaData type has an incorrectly defined association that won't work with types (only entities support associations), and the attachDeletionData method contains unsafe array operations that could fail when attachments lack ID fields. Additionally, the test schema redundantly redefines the ID key. These should be addressed before merging.

PR Bot Information

Version: 1.17.61 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback

  • Correlation ID: e0eda0c0-0ccb-11f1-993b-86fda88b4de0
  • Event Trigger: pull_request.opened
  • LLM: anthropic--claude-4.5-sonnet

Comment thread db/index.cds Outdated
Comment thread srv/basic.js Outdated
Comment thread srv/basic.js Outdated
Comment thread tests/incidents-app/db/schema.cds Outdated
# Conflicts:
#	lib/csn-runtime-extension.js
#	lib/generic-handlers.js
#	package.json
#	srv/attachments/basic.js
#	tests/incidents-app/db/attachments.cds
#	tests/incidents-app/db/schema.cds
#	tests/incidents-app/srv/services.cds
#	tests/integration/attachments.test.js
@KoblerS KoblerS mentioned this pull request May 5, 2026
1 task
@eric-pSAP eric-pSAP requested review from KoblerS May 7, 2026 14:07
Comment thread db/index.cds
Comment thread lib/csn-runtime-extension.js
Comment thread lib/helper.js Outdated
Comment thread lib/plugin.js
Comment thread lib/plugin.js
Comment thread srv/malware-scanner/malwareScanner.js
Comment thread srv/malware-scanner/malwareScanner.js Outdated
Comment thread srv/malware-scanner/malwareScanner.js
Comment thread srv/malware-scanner/malwareScanner.js
Comment thread CHANGELOG.md Outdated
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.

2 participants