-
Notifications
You must be signed in to change notification settings - Fork 361
feat: Introduce preferred search operators on TEA [DHIS2-12183] #21376
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
Changes from all commits
3660a01
a08391f
a64c823
3f097ed
d6f3c8c
32ee608
0b69926
09141b0
0ff03d6
8e7173a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,8 +208,8 @@ private void mapAttributeFilters( | |
|| queryFilter.getFilter().length() < tea.getMinCharactersToSearch())) { | ||
throw new IllegalQueryException( | ||
String.format( | ||
"At least %d character(s) should be present in the filter to start a search, but the filter for operator %s doesn't contain enough.", | ||
tea.getMinCharactersToSearch(), queryFilter.getOperator())); | ||
"At least %d character(s) should be present in the filter to start a search, but the filter for the TEA %s doesn't contain enough.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpicky: Do we actually use TEA and TET in error messages? Or do we want to use the full "Tracked Entity Attribute" ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll change the message in the coming PR |
||
tea.getMinCharactersToSearch(), tea.getUid())); | ||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Migration script to add the field preferred operator in the trackedentityattribute table | ||
alter table trackedentityattribute | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you migrate from a 2.41 instance directly into this branch build and see if any issue show up? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. During development I tried a few times and it worked. |
||
add column if not exists preferredsearchoperator varchar(20) default null; |
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.