aleph icon indicating copy to clipboard operation
aleph copied to clipboard

BUG: Input field for alert query is limited to 100 characters

Open anderser opened this issue 3 years ago • 1 comments

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:

  1. Go to front page of Aleph
  2. Click on Alerts
  3. Enter more than 100 characters in the input field "Create a new tracking alert..."
  4. 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 Skjermbilde 2022-08-31 kl  22 04 44

Additional context Aleph 3.12.2

anderser avatar Aug 31 '22 20:08 anderser

@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.

tillprochaska avatar Sep 19 '22 13:09 tillprochaska