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

Limit assigns size inside notes #201

Merged
merged 8 commits into from
Dec 4, 2023
Merged

Limit assigns size inside notes #201

merged 8 commits into from
Dec 4, 2023

Conversation

indirect
Copy link
Owner

@indirect indirect commented Dec 4, 2023

If an assigned value has a large enough contents, it's possible to overwhelm not just the page but the entire server process. (Think ActiveAdmin filling a single ivar with ModelName.all, and then trying to print an inspect string that contains every single model in your entire database.) This adds a limit to AR::Relations of 25 records max, configurable in settings.

@indirect
Copy link
Owner Author

indirect commented Dec 4, 2023

Thanks for figuring out this solution, @philipnery!

@indirect indirect merged commit ef45ca1 into main Dec 4, 2023
1 check passed
@indirect indirect deleted the limit-assigns branch December 4, 2023 05:02
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