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

Raise StudentFacingError when set_kvp is called with too long a key #58675

Merged
merged 2 commits into from
May 20, 2024

Conversation

snickell
Copy link
Contributor

@snickell snickell commented May 16, 2024

Fixes #58674 raised by honeybadger

image

Also rewords two other length-related StudentFacingError messages to refer to "bytes ('characters')", whereas previously they'd just referred to the limit being in bytes. While bytes is more technically correct (e.g. in languages where UTF-8 uses more than one byte for some or all characters), this is hopefully provides a clearer hint for the many many cases where characters is the clearer way to understand the limit.

@snickell snickell requested a review from cnbrenci May 16, 2024 07:06
@snickell snickell merged commit 42447c8 into staging May 20, 2024
2 checks passed
@snickell snickell deleted the datablock/key-too-long branch May 20, 2024 04:32
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.

ActiveRecord::ValueTooLong in datablock_storage # set_key_value: Data too long for column 'key' at row 1
2 participants