Skip to content

Allow case-insensitive matching of context dimension values#195

Merged
psss merged 1 commit into
teemtee:mainfrom
therazix:case-sensitivity
Sep 29, 2023
Merged

Allow case-insensitive matching of context dimension values#195
psss merged 1 commit into
teemtee:mainfrom
therazix:case-sensitivity

Conversation

@therazix
Copy link
Copy Markdown
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
Copy Markdown
Member

@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.

Comment thread fmf/context.py Outdated
Comment thread fmf/context.py Outdated
@psss psss force-pushed the case-sensitivity branch from def9655 to 430b007 Compare August 9, 2023 14:08
@thrix thrix requested review from happz, psss and thrix August 22, 2023 08:46
@therazix
Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Member

@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
@LecrisUT LecrisUT mentioned this pull request May 5, 2026
5 tasks
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