-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat(plugin): allow filtering entries from HAR using a custom predicate #172
Merged
derevnjuk
merged 6 commits into
master
from
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
Jan 24, 2023
Merged
feat(plugin): allow filtering entries from HAR using a custom predicate #172
derevnjuk
merged 6 commits into
master
from
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
Jan 24, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code Climate has analyzed commit b5cada5 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 96.6% (50% is the threshold). This pull request will bring the total coverage in the repository to 92.1% (0.1% change). View more on Code Climate. |
derevnjuk
force-pushed
the
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
branch
from
January 19, 2023 17:36
130399a
to
2cf4b97
Compare
derevnjuk
force-pushed
the
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
branch
from
January 19, 2023 17:53
2cf4b97
to
fc88f8f
Compare
Sija
reviewed
Jan 19, 2023
derevnjuk
force-pushed
the
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
branch
from
January 23, 2023 10:14
22683e8
to
ea61e59
Compare
derevnjuk
force-pushed
the
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
branch
from
January 23, 2023 10:19
ea61e59
to
278698a
Compare
derevnjuk
force-pushed
the
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
branch
from
January 23, 2023 10:40
916703a
to
ccbb4f8
Compare
derevnjuk
force-pushed
the
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
branch
from
January 23, 2023 15:21
3fdfc8d
to
a8dd7e3
Compare
derevnjuk
force-pushed
the
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
branch
from
January 24, 2023 09:42
c8ae319
to
b5cada5
Compare
derevnjuk
deleted the
feat_#163/provide_a_flexible_and_simple_mechanism_to_filter_entries_from_the_HAR
branch
January 24, 2023 09:48
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
You can specify the
filter
option as a path to a JS/TS module that exports a function to filter out unwanted entries from the HAR. The function should take an Entry object as a parameter and return a boolean indicating whether the entry should be included in the final HAR or not.Here's an example of how to use the
filter
option:And here's an example of what the
include-password.ts
filter module might look like:In this example, the
filter
function will only exclude entries in the HAR where the request body contains a JSON object with a password field.You can also specify a
rootDir
option that will be used to resolve the path of thefilter
option. By default, the path is relative to the spec folder. But by providing arootDir
it will look for the module in the provided directory:closes #163