-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Change tests to use new filter and use gax warn for warning just…
… once (#1185) * trim operator In the legacy version of filter we trim the operator. We should do this here too. * In test cases, replace various filter calls Always pass entity filters into the filter function in tests to reflect new behavior. * accept string too A string is needed as an input parameter because we might trim it to get an operator. * Use .filter the old way Revert changes on the .filter method * Change docs to use new filter The new property filter should be used and this should be reflected in the doc comments. * Use new Property filter In entity.ts, use the new property filter constructor. * Revert changes to operator The changes cause compiler errors. Do not trim the operator for now. * Move test up and add change Add change to issue warning just once. Use google-gax so that the warning is issued just once. * Revert "Change docs to use new filter" This reverts commit c290481. * run linter * Add a test to ensure just one warning A test to make sure the warning is emitted just once might provide proper coverage.
- Loading branch information
1 parent
52adb5e
commit 532711b
Showing
3 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
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
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
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