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: only apply logName to filter when not already present #962

Merged
merged 2 commits into from
Dec 2, 2020

Conversation

stephenplusplus
Copy link
Contributor

RE: #943

This corrects an issue I discovered while researching #943. For convenience, we have log.getEntries() add a filter to the provided query, filling in the logName for the user. However, if the query already had a filter with the logName included, it would duplicate the filter condition (logName=my-log AND logName=my-log AND ...).

This scenario arises anytime the user calls "log.getEntries()" where there are enough results to warrant auto-pagination.

@stephenplusplus stephenplusplus requested review from a team as code owners December 1, 2020 20:36
@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/nodejs-logging API. label Dec 1, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 1, 2020
@codecov
Copy link

codecov bot commented Dec 1, 2020

Codecov Report

Merging #962 (e31fe0f) into master (3d63d5f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #962   +/-   ##
=======================================
  Coverage   98.39%   98.39%           
=======================================
  Files          18       18           
  Lines       12985    12985           
  Branches      398      415   +17     
=======================================
  Hits        12776    12776           
  Misses        207      207           
  Partials        2        2           
Impacted Files Coverage Δ
src/log.ts 99.80% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d63d5f...e31fe0f. Read the comment docs.

@bcoe bcoe added kokoro:force-run Add this label to force Kokoro to re-run the tests. release-please:force-run To run release-please and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Dec 2, 2020
@release-please release-please bot removed the release-please:force-run To run release-please label Dec 2, 2020
@stephenplusplus stephenplusplus merged commit f1fbbc4 into googleapis:master Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/nodejs-logging API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants