Skip to content

Encouraging longer queries than we can store #1970

@ajparsons

Description

@ajparsons

This PR was approaching this the wrong way (#1969) - so converting into a ticket for @struan .

The suggested search items can mean we go past the 255 character limit for criteria. For example, try adding all to a query for 'Disabled people'.

There is an error added that relates to this, but because of fiddly bits in how the suggestions are populated, if the view we're loaded is switched at the last minute (which it is if a form has an error) - it tries to load the search suggestion screen and that errors because it doesn't have any suggestions variable.

Two issues here:

  • The error on the size (and there's a few others this would affect) do not appear back on the form if they're triggered. Either this needs to be addressed or these should actually throw an error so we at least get the descriptive error.
  • We should just increase the size of the criteria field -1020 should be big enough in most cases.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions