Skip to content

Conversation

cindy-peng
Copy link
Contributor

@cindy-peng cindy-peng commented Sep 3, 2025

This is a fork PR of the fix for resourceNames: #1596

We have modified yaml file to bypass node 18 check (Which was introduced in node 14 upgrade: c294f5d, not sure why 18 was introduced as a required test environment since we have not started node 18 upgrade). The doc check was also irrelevant and caused by 429 too many requests.

We will revert the testing environment configuration once the fix is rolled out.

bhshkh and others added 4 commits August 29, 2025 01:38
When `getEntries` is called with a `resourceNames` array that specifies a logging bucket (particularly one in a
    different project), the library was incorrectly appending the current project's ID to the array.

This resulted in an invalid request, causing the Logging API to reject it with an `INVALID_ARGUMENT` error.

The fix adjusts the logic to only inject the default project ID if the `resourceNames` array is explicitly empty. This
    preserves the expected default behavior of searching within the current project, while respecting user-provided
    resource names for cross-project queries.

Fixes: #1593
@cindy-peng cindy-peng requested review from a team as code owners September 3, 2025 16:59
Copy link

generated-files-bot bot commented Sep 3, 2025

Warning: This pull request is touching the following templated files:

  • .github/workflows/ci.yaml - .github/workflows/ci.yaml (GitHub Actions) should be updated in synthtool

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: logging Issues related to the googleapis/nodejs-logging API. size: l Pull request size is large. and removed size: s Pull request size is small. labels Sep 3, 2025
@cindy-peng cindy-peng added the owlbot:ignore instruct owl-bot to ignore a PR label Sep 3, 2025
@cindy-peng cindy-peng force-pushed the bhshkh-fix/resource-name-other-projects branch from dfb2668 to b62611c Compare September 3, 2025 17:12
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: l Pull request size is large. labels Sep 3, 2025
@cindy-peng cindy-peng merged commit ff7899f into main Sep 3, 2025
17 checks passed
@cindy-peng cindy-peng deleted the bhshkh-fix/resource-name-other-projects branch September 3, 2025 20:53
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. owlbot:ignore instruct owl-bot to ignore a PR size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants