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

Allow case-insensitive matching of context dimension values #195

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

therazix
Copy link
Contributor

Matching of context dimension values can now be case-insensitive by calling fmf.Tree.adjust() with the case_sensitive=False parameter. The default behavior remains case-sensitive.

I have also updated the documentation about the default behavior and added some tests.

Resolves: #186

@lukaszachy lukaszachy added this to the 1.3 milestone Jul 28, 2023
@psss psss self-assigned this Aug 9, 2023
Copy link
Collaborator

@psss psss left a comment

Choose a reason for hiding this comment

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

Thanks for implementing this! Looks good in general. I just propose a minor docs improvement in def9655 and added two questions.

fmf/context.py Outdated Show resolved Hide resolved
fmf/context.py Outdated Show resolved Hide resolved
@therazix
Copy link
Contributor Author

Somehow I missed that child nodes were not adjusted. This should be fixed in 99f608b.

Copy link
Collaborator

@psss psss left a comment

Choose a reason for hiding this comment

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

Looks good now, thanks!

@psss psss merged commit f6b5fed into teemtee:main Sep 29, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Case-sensitivity of context adjusting is unclear
3 participants