Skip to content

Hoist by_name() matching helpers out of template into importable code - #106

Open
apdavison wants to merge 1 commit into
openMetadataInitiative:pipelinefrom
apdavison:by-name-helpers
Open

apdavison wants to merge 1 commit into
openMetadataInitiative:pipelinefrom
apdavison:by-name-helpers

Conversation

@apdavison

Copy link
Copy Markdown
Member

This makes the code easier to test, and makes it reusable, specifically by fairgraph.

This makes the code easier to test, and makes it reusable, specifically by fairgraph.
@apdavison
apdavison requested a review from gefleury September 12, 2026 21:56
@apdavison apdavison added the enhancement New feature or request label Sep 12, 2026
matches_name(name, query, match, case_sensitive, ignore_accents, ignore_separators)
for name in names
if name is not None
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

test_agreement asserts nothing when found is None: should it also check that no instance's name-like properties/synonyms satisfy matches_name() for the query in that case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants