Skip to content
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

Asset Catalog exact-match filter fix #7241

Merged
merged 3 commits into from
Dec 15, 2022
Merged

Asset Catalog exact-match filter fix #7241

merged 3 commits into from
Dec 15, 2022

Conversation

lcpopa
Copy link
Contributor

@lcpopa lcpopa commented Dec 12, 2022

Signed-off-by: Liviu Constantin Popa [email protected]

Search from asset-catalog omas was producing erroneous results when ticking exactMatch option

Description

The reason for the erroneous result was the search string being regExed twice: once in the asset catalog code and once in the generic handler, when the exactMatch option is set to true. When it reached the graph repository it was no longer recognizable to allow entity extraction.
The solution that seem to fit best is to remove the search string decoration (regEx) in asset catalog and improve the one in generic handler to include the caseInsesitive flag, since their behaviour is intertwined. This meant the method signature needed the extra caseInsensitive param. Also, all calls to the method in generic handler are updated with the caseInsensitive flag defaulted to the value from the original behaviour, so there are no changes in expected outcome when called from other places

Related Issue(s)

None found

Testing

Manual

Release Notes & Documentation

None

Additional notes

None

Signed-off-by: Liviu Constantin Popa <[email protected]>
@lcpopa lcpopa merged commit a15b930 into odpi:main Dec 15, 2022
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