Skip to content

Actions break when generating long history entries #3230

@luisa-beerboom

Description

@luisa-beerboom

Describe the bug
Anything that would create a history entry, containing a string beyond the length of 256, will break with an exception stating that the history entry entries strings have limited length.

How To Reproduce
For example: user.update setting 66 new ids in vote_delegations_from_ids

Payload from client (handle_request)

{
   user_id: 1,
   meeting_id:2,
   vote_delegations_from_ids: [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,...]
}

Response from backend
Exception stating that the history entry entries strings have limited length of 256.

Expected behavior
No exception raised, the action should work and the history should be written.

Additional context
The problem is that the field is defined as string[] in the models.yml.
If it was defined as text[] it would work.
We have no field defined as text[] currently though. In the unlikely event that the code to handle this is not written yet, the developer may find himself having to implement it.

Metadata

Metadata

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions