Skip to content
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

Conversation

katyaterletskaya
Copy link
Contributor

What change does this PR introduce?

Allow the customization of retention periods

Why was this change needed?

#4570

@katyaterletskaya katyaterletskaya force-pushed the chore/make-retention-period-configurable branch from 2785507 to 51956c7 Compare March 1, 2024 07:30
Copy link

netlify bot commented Mar 1, 2024

👷 Deploy request for dev-web-novu pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 55cc565

@katyaterletskaya
Copy link
Contributor Author

@scopsy @LetItRock @jainpawan21 could you please review? 🙂

@github-actions github-actions bot removed the stale Pull Request that needs to be reviewed label Mar 1, 2024
Copy link
Contributor

@LetItRock LetItRock left a 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 :)

Comment on lines 56 to 64
NOTIFICATION_RETENTION_DAYS: num({
default: 30,
}),
MESSAGE_GENERIC_RETENTION_DAYS: num({
default: 30,
}),
MESSAGE_IN_APP_RETENTION_DAYS: num({
default: 365,
}),
Copy link
Contributor

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 ;)

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@LetItRock done ✅

Copy link
Contributor

@LetItRock LetItRock left a 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! 🙌

@Cliftonz Cliftonz merged commit 919b4c9 into novuhq:next Mar 4, 2024
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants