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: Show warning about file import #241

Merged
merged 2 commits into from
Sep 2, 2024
Merged

Fix: Show warning about file import #241

merged 2 commits into from
Sep 2, 2024

Conversation

utahta
Copy link
Member

@utahta utahta commented Sep 2, 2024

Fix to also lookup package names from GRPCErrors.

This comment has been minimized.

maps.Copy(pkgNameMap, r.lookupPackageNameMapFromCELValue(err.Message))
maps.Copy(pkgNameMap, r.lookupPackageNameMapFromCELValue(err.IgnoreAndResponse))
for _, detail := range err.Details {
maps.Copy(pkgNameMap, r.lookupPackageNameMapFromCELValue(detail.If))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other fields ( DefSet Messages PreconditionFailures BadRequests LocalizedMessages ) in GRPCErrorDetail may also need to be covered.

Copy link

github-actions bot commented Sep 2, 2024

Code Metrics Report

main (8128e53) #241 (9dd3c21) +/-
Coverage 66.1% 66.1% +0.1%
Code to Test Ratio 1:0.3 1:0.3 -0.0
Test Execution Time 7m12s 7m32s +20s
Details
  |                     | main (8128e53) | #241 (9dd3c21) |  +/-  |
  |---------------------|----------------|----------------|-------|
+ | Coverage            |          66.1% |          66.1% | +0.1% |
  |   Files             |             72 |             72 |     0 |
  |   Lines             |          12152 |          12183 |   +31 |
+ |   Covered           |           8028 |           8059 |   +31 |
- | Code to Test Ratio  |          1:0.3 |          1:0.3 |  -0.0 |
  |   Code              |          37595 |          37640 |   +45 |
  |   Test              |          12986 |          12986 |     0 |
- | Test Execution Time |          7m12s |          7m32s |  +20s |

Code coverage of files in pull request scope (83.1% → 83.3%)

Files Coverage +/-
resolver/resolver.go 83.3% +0.1%

Reported by octocov

Copy link
Member

@goccy goccy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@utahta utahta merged commit 228a616 into main Sep 2, 2024
4 checks passed
@utahta utahta deleted the fix-show-warnings branch September 2, 2024 08:30
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.

2 participants