Skip to content

Commit

Permalink
Update list limits for alert profiles dropdowns
Browse files Browse the repository at this point in the history
For some long-forgotten reason, there limits configured on the
length of dropdown lists in Alert Profiles: One value per match field
is set in the database.  The limits are set to 1000 for all fields, but
some users do in fact have more than 1000 communication rooms registered
in their NAV installations.

The code does not allow unlimited lengths, so a quickfix for now is
to increase the limit ten-fold.  A more long-term fix would be to look
into why there are limitations at all (aside from the fact that
selecting from a dropdown with > 1000 values and no search functionality
is bad UX)
  • Loading branch information
lunkwill42 committed Nov 24, 2024
1 parent 27b12b5 commit 9036454
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/nav/models/sql/changes/sc.05.12.0100.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- Increase alertprofiles dropdown list limits
UPDATE matchfield
SET list_limit = 10000
WHERE show_list
AND list_limit = 1000;

0 comments on commit 9036454

Please sign in to comment.