Skip to content

Conversation

@labkey-martyp
Copy link

@labkey-martyp labkey-martyp commented Jul 27, 2022

Rationale

When doing a case insensitive search we use contains filter on the query to get case insensitive matches. This also gets ids with the search value as a substring. We need to filter these out. This is a follow up to the related PR below.

Related Pull Requests

Changes

  • Add function getCaseInsensitveMatches to remove substring matches. Called in handleAliasResults

var updatedResults = [];

Ext4.each(results.rows, function (row) {
if (hasAlias) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we consolidate these two cases? Seems like the only thing that's different is using this.aliasTable.aliasColumn vs this.aliasTable.idColumn in their first lines

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I consolidated them

@labkey-martyp labkey-martyp merged commit df0b6f2 into release22.7-SNAPSHOT Jul 27, 2022
@labkey-martyp labkey-martyp deleted the 22.7_fb_animal_history_matches branch July 27, 2022 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants