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

fix issue #678-add-class-filters #687

Merged
merged 1 commit into from
Jul 27, 2020
Merged

Conversation

KSchopmeyer
Copy link
Contributor

Adds the --deprecated filter to the same commands as the other filters
and extends the filter search to that the qualifiers are inspected
for all class elements defined in the scope for the defined filter.
Thus, an experimental qualifier on a property, method, or parameter
will now be equal to the same qualifier at the class level.

NOTE: The logic for multiple filters is effectively anding of
the conditions so that --association and --indication is for both
the association and indication filter and --association --no-indication
finds classes that have the association qualifier but not the
indication qualifier.

The code was refactored to make extension to other filters easier in
the future.

Added more options to the test mof qualifierfilters.mof and extended
the tests.

@KSchopmeyer KSchopmeyer added this to the 0.8.0 milestone Jul 27, 2020
@KSchopmeyer KSchopmeyer self-assigned this Jul 27, 2020
@KSchopmeyer KSchopmeyer linked an issue Jul 27, 2020 that may be closed by this pull request
Adds the --deprecated filter to the same commands as the other filters
and extends the filter search to that the qualifiers are inspected
for all class elements defined in the scope for the defined filter.
Thus, an experimental qualifier on a property, method, or parameter
will now be equal to the same qualifier at the class level.

Modifies the filter options definition in each command to group the
qualifier filters so that they can be applied to each command as
a single line and the grouping is defined in _common_options.py

NOTE: The logic for multiple filters is effectively anding of
the conditions so that --association and --indication is for both
the association and indication filter and --association --no-indication
finds classes that have the association qualifier but not the
indication qualifier.

The code was refactored to make extension to other filters easier in
the future.

Added more options to the test mof qualifierfilters.mof and extended
the tests.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 91.445% when pulling 694d136 on ks/#678-add-classfilters into 59c553b on master.

@andy-maier andy-maier merged commit 41213bc into master Jul 27, 2020
@andy-maier andy-maier deleted the ks/#678-add-classfilters branch July 27, 2020 21:15
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.

Class filters to be added in pywbemcli 0.8.0
3 participants