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

Add size limits for bulk updates in notification preferences #4208

Open
coderabbitai bot opened this issue Jan 18, 2025 · 0 comments
Open

Add size limits for bulk updates in notification preferences #4208

coderabbitai bot opened this issue Jan 18, 2025 · 0 comments
Assignees

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 18, 2025

Context

Currently, there is no limit on the number of preferences that can be updated in a single bulk update request. This could potentially lead to performance issues with large payloads.

Proposed Enhancement

Add a maximum limit to the number of preferences that can be updated in a single request to prevent potential performance issues.

Implementation Details

  • Add validation in the bulk update endpoint to limit the number of preferences to 100 per request
  • Return appropriate error message when the limit is exceeded

Related Links

Additional Notes

This enhancement will help prevent potential performance issues and ensure the API remains stable under load.

/cc @Baalmart

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

No branches or pull requests

1 participant