Skip to content

fix(notifications): remove unused functions and fix linting issues#3047

Open
pranav-new-relic wants to merge 3 commits intomainfrom
fix/notification-scope-linting
Open

fix(notifications): remove unused functions and fix linting issues#3047
pranav-new-relic wants to merge 3 commits intomainfrom
fix/notification-scope-linting

Conversation

@pranav-new-relic
Copy link
Member

Fixes linting issues in the notification destinations scope feature:

  • Remove unused flattenNotificationDestinationWithScope helper functions
  • Fix shadow variable error in update function (err -> err2)
  • Fix formatting (remove trailing whitespace)

All lint checks and compilation now pass successfully.

pranav-new-relic and others added 2 commits March 16, 2026 21:50
- Remove unused flattenNotificationDestinationWithScope functions
- Fix shadow variable error in update function
- Fix formatting (remove trailing whitespace)
Revert go version from 1.26.0 back to 1.24.0 with toolchain 1.24.11
to match the project's current Go version requirements.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.78%. Comparing base (cf57afd) to head (57f6a67).

Files with missing lines Patch % Lines
...lic/resource_newrelic_notifications_destination.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3047      +/-   ##
==========================================
+ Coverage   34.74%   34.78%   +0.03%     
==========================================
  Files         112      112              
  Lines       24737    24712      -25     
==========================================
  Hits         8596     8596              
+ Misses      15949    15924      -25     
  Partials      192      192              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Remove account_id from scope test configs to fix ConflictsWith errors
- Rename err2 to lookupErr for better clarity in update/delete functions
- Skip WithScope data source test requiring org-level permissions

Fixes integration test failures where account_id and scope were both
set, violating the mutual exclusivity constraint in the schema.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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