New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema: Require & use citext
extension
#71
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think most changes should be fine, but others probably need individual/more careful consideration (see individual comments).
In general:
- The changes that don't have individual comments should be fine for doing them immediately.
- All the others should probably be discussed first, so please don't treat the comments as change requests for now.
If the changes without individual comments are useful enough on it's own, I'd do them first and postpone the rest to a later point. /cc @nilmerg
Display names should be case-insensitive, as they're used as quick search columns in their respective view. This affects sources, schedules, rules, channels, contacts and contactgroups. Id tags, or tags in general, should be case-sensitive on the other hand. They resemble e.g. icinga object names, and these are also case-sensitive. This also applies to extra tags. In Icinga DB, custom variable names are case-insensitive as this was the case in the IDO as well. Here we have no such predecessor with which we should be compatible. So being case-sensitive should be our way to go here. The |
3b5c986
to
978778b
Compare
978778b
to
ef6998d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change itself looks fine for me now, if @nilmerg gives an ok as well, we can pick the correct sequence number for the upgrade file and merge it.
811d68d
to
84e59c9
Compare
84e59c9
to
0e6714f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra tag values should be case-insensitive.
Why? That would mean that the |
Because that's what users expect. Another reason, by the way, why we shouldn't hide values in names. Inconsistent? Of course they are. They have different names after all... (I don't see any reason why any inconsistency should be of interest here) |
That would result in searching by host name being case-sensitive but searching by host group name being case-insensitive. To me, that doesn't sound like something anyone would expect. |
Fair enough. But then I'd propose a second column for each with a No, seriously. Web differentiates between id and extra tag, so a user should not be surprised that they are handled differently. |
On the other hand, for
First of all, I'd like to know the reason for the change and not just some vague claim that users expect it. I mean for most of the columns changed in this PR, I don't care too much as the most the daemon has to do with them is to just copy it's value somewhere (to a log message, or a notification message maybe). But for tags, this is different, as they have to be compared by the daemon as well. |
It's not just a vague claim. During the user testing at OSMC last year, we noticed that user's don't make much of a difference how a lookup for a value (in the searchbar) and how a filter for one works. It doesn't make a difference which suggestion you choose or whether one at all. You'll find hosts with a custom variable called department set to Or phrased differently: You'll see the value Now, what this means for case-sensitivity is this: If the lookup in the searchbar is case-insensitive, the filter must as well. And this is what the user testing also showed: Users expected the lookup in the searchbar to be case insensitive. So if I look for baCK, I'll get |
Doesn't that argument boil down to "if it appears in a search bar, it should be handled case-insensitively everywhere"? Otherwise, how would you explain that Case-handling is messy already within Icinga:
The change you're asking for is inconsistent with both (I don't know if there's something else it's consistent with) and would even introduce inconsistencies within this project. I'm sorry, but I fail to see how this is an improvement. |
To allow case-insensitive matches when filtering by these columns.
cc @nilmerg