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

unified matcher: minor refactor of matcher API #50

Closed
wants to merge 2 commits into from

Conversation

wbpcode
Copy link

@wbpcode wbpcode commented Oct 12, 2022

Signed-off-by: wangbaiping wbphub@live.com

This is PR more like a sudden advice. This matcher API is still be marked as work_in_progress, So, maybe it's ok to update the API directly?

What this PR did:

  1. PredicateList.predicate -> PredicateList.list
    In the previous API, the PredicateList.predicate has same field name with the FieldMatcher.predicate. It makes the configuration hard to read and to understand. Rename it to list, just as the MatchMap.map.
  2. Predicate.*matcher to Predicate.*predicate[s]
    Unify the name of fields of Predicate and make the name much the meaning of field better.

wangbaiping added 2 commits October 12, 2022 14:52
Signed-off-by: wangbaiping <wbphub@live.com>
Signed-off-by: wangbaiping <wbphub@live.com>
@wbpcode wbpcode closed this Dec 1, 2023
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.

None yet

1 participant