-
Notifications
You must be signed in to change notification settings - Fork 947
ARTEMIS-4553 Support partial word matches for address settings #4730
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
Conversation
|
At this point I think we should stick with the currently documented behavior, i.e. wildcards match (whole) words separated by a delimiter. The design of the matching is to be hierarchical which is relatively easy to understand and configure with words separated by a delimiter and wildcards that represent one (i.e. I'm curious about others' thoughts. |
|
Thinking about this more...I'm more against it than before. I believe that opening this door is going to be bad for usability - both for users and developers. Right now, Furthermore, what do we do with The potential configurations start to expand very quickly and will no doubt add complication to the code, the test-suite, and the documentation. The currently documented functionality is simple & powerful, and we should keep it that way. If there's a bug here it's that undocumented behavior is allowed and somewhat functional leading folks to assume it's intentional. I'm not saying we should fix that necessarily, but we should at least consider it so we don't keep letting folks get confused. |
Partial words also would be hierarchical, I mean
My tentative was to implement the behavior similar to the
Good catch, I hadn't thought to this use case but if that would be supported then
Theoretically,
This is an important point from the development point of view, are you thinking to any specific cases?
My tentative was to clarify this gray area without causing issues to users that are already using this officially unsupported behavior. |
| But `news.*` would _not_ match: | ||
|
|
||
| * `news.europe.sport` | ||
| * `news.usa` | ||
| * `news.usa.sport` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regardless of whether we should or shouldnt do partial matching (I've yet to think on that)...this bit of documentation seems incorrect. Guessing the noted address/other wildcard wasnt updated as intended.
|
|
||
| /** | ||
| * Compares to matches to see which one is more specific. | ||
| * A match on the any-words delimiter (#) is considered less specific than a match without it, i.e. abc.def.# is less specific than abc.def and abc.def and abc.d* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either repetition or some other issue: "is less specific than abc.def and abc.def"
| == Matching a Single or Partial Word | ||
|
|
||
| The character `*` means "match a single word". | ||
| The character `*` means "match a single or partial word". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its not clear whether the "single-word" configuration item (detailed lower down this documentation) which controls single word matches would also change this partial-word matching.
What about multiple
I'm not thinking about any specific case. I'm mainly thinking that the possible combinations that need to be tested will increase substantially with this change, especially if multiple This change will mean that while |
No description provided.