aleph
aleph copied to clipboard
BUG: Input field for alert query is limited to 100 characters
Describe the bug
When adding a new tracking alert, the input field is limited to 100 characters. This makes it difficult to filter on properties etc with i.e. +mysearchword +(this word NOT this word) +properties.publisher:"My publisher with a long name" +collection_id:3 +schema:Pages
To Reproduce Steps to reproduce the behavior:
- Go to front page of Aleph
- Click on Alerts
- Enter more than 100 characters in the input field "Create a new tracking alert..."
- The Track button is disabled and it is not possible to add the alert
Expected behavior The Track button should not be greyed out, but submit the query as a new alert.
Screenshots

Additional context Aleph 3.12.2
@anderser We limit/validate the length of queries in order to prevent alerts being created for expensive queries. As a long query isn’t necessarily expensive to calculate, we might need to reconsider this or at least display an explanation/validation message in the UI.