-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
chore: make retention period configurable #5055
chore: make retention period configurable #5055
Conversation
2785507
to
51956c7
Compare
👷 Deploy request for dev-web-novu pending review.Visit the deploys page to approve it
|
@scopsy @LetItRock @jainpawan21 could you please review? 🙂 |
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.
sorry for taking this that long... looks good just left you a few small suggestions and we will be ready to go :)
NOTIFICATION_RETENTION_DAYS: num({ | ||
default: 30, | ||
}), | ||
MESSAGE_GENERIC_RETENTION_DAYS: num({ | ||
default: 30, | ||
}), | ||
MESSAGE_IN_APP_RETENTION_DAYS: num({ | ||
default: 365, | ||
}), |
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.
let's maybe reuse the defaults from the constants you created in file libs/shared/src/consts/data-retention/index.ts
;)
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.
can we please introduce also the same changes on the api
side?
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.
@LetItRock done ✅
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.
looks good, thank you! 🙌
What change does this PR introduce?
Allow the customization of retention periods
Why was this change needed?
#4570