-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce size limit to activity attributes on ingestion #2737
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request introduces a modification to the Changes
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…med attributes to be added causing too large errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
services/libs/data-access-layer/src/activities/ilp.ts (1)
219-221
: Evaluate returning partial data rather than an empty object.Returning an empty JSON object may result in loss of data that could be valuable. Truncating or partially storing the object could strike a balance between size constraints and data retention.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
services/libs/data-access-layer/src/activities/ilp.ts
(1 hunks)
🔇 Additional comments (1)
services/libs/data-access-layer/src/activities/ilp.ts (1)
216-217
: Consider robust error handling when stringifying.In rare cases, stringification may fail if the object contains circular references. It might be safer to wrap
JSON.stringify
in a try/catch or skip such problematic data.
Changes proposed ✍️
What
copilot:summary
copilot:poem
Why
How
copilot:walkthrough
Checklist ✅
Feature
,Improvement
, orBug
.Summary by CodeRabbit