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

[NEAT-487] Aggegated view of issues #693

Merged
merged 5 commits into from
Nov 3, 2024
Merged

[NEAT-487] Aggegated view of issues #693

merged 5 commits into from
Nov 3, 2024

Conversation

doctrino
Copy link
Collaborator

@doctrino doctrino commented Oct 31, 2024

image

Copy link

github-actions bot commented Oct 31, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
14068 9596 68% 60% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cognite/neat/_constants.py 93% 🟢
cognite/neat/_issues/_base.py 87% 🟢
cognite/neat/_issues/errors/_resources.py 95% 🟢
cognite/neat/_issues/warnings/_models.py 100% 🟢
cognite/neat/_session/_base.py 70% 🟢
cognite/neat/_session/_inspect.py 54% 🟢
cognite/neat/_session/_state.py 66% 🟢
TOTAL 81% 🟢

updated for commit: b065e13 by action🐍

cognite/neat/_constants.py Outdated Show resolved Hide resolved
@overload
def __call__(
self,
search: str | None = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice feature,


if issues and search is not None:
unique_types = {type(issue).__name__ for issue in issues}
closest_match = set(difflib.get_close_matches(search, unique_types))
Copy link
Collaborator

Choose a reason for hiding this comment

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

will this return partial matches ? what about fuzzy instead ? https://github.com/seatgeek/thefuzz or using cognite sdk entity matching ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a very simple way of using the standard library without any extra dependencies to get a slightly better search experience. Suggest we avoid any extra dependency

@doctrino doctrino merged commit d366452 into main Nov 3, 2024
7 checks passed
@doctrino doctrino deleted the issue-visualization branch November 3, 2024 15:07
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.

2 participants