Skip to content

Conversation

@yec-akamai
Copy link
Contributor

@yec-akamai yec-akamai commented Jan 16, 2026

📝 Description

This PR did a few things to fix ACLP alerts related functions:

  • Reverted alert channels listing because API made a breaking change to the response struct. Will fix and add CRUD for alert channels in a separate work.
  • Fixed malformed structs in alert definition.
  • Add a WaitForAlertDefinitionStatusReady() function

This PR is the dependency of the terraform PR: linode/terraform-provider-linode#2234

✔️ How to Test

make test-unit
make test-int

Copilot AI review requested due to automatic review settings January 16, 2026 16:18
@yec-akamai yec-akamai requested a review from a team as a code owner January 16, 2026 16:18
@yec-akamai yec-akamai added the improvement for improvements in existing functionality in the changelog. label Jan 16, 2026
@yec-akamai yec-akamai requested review from psnoch-akamai and vshanthe and removed request for a team January 16, 2026 16:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses issues with ACLP (Alert and Monitoring) alerts functionality by reverting alert channels listing due to API breaking changes, fixing struct definitions, and adding a helper function to wait for alert definition status.

Changes:

  • Reverted alert channels listing functionality to be re-implemented later
  • Fixed type definitions in alert definition structs (Status, EntityIDs)
  • Added WaitForAlertDefinitionStatusReady() function for polling alert definition status

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
waitfor.go Added new function to wait for alert definition to reach ready status
test/integration/monitor_alert_definitions_test.go Commented out alert channel queries and used hardcoded channel ID
test/integration/fixtures/TestMonitorAlertDefinition_CreateWithIdempotency.yaml Updated test fixture with new timestamps and user IDs
test/integration/fixtures/TestMonitorAlertDefinition.yaml Updated test fixture data with new entity IDs and additional test alerts
test/integration/fixtures/TestMonitorAlertChannels_List.yaml Removed entire fixture file content
monitor_alert_definitions.go Added AlertDefinitionStatus type, fixed EntityIDs type, added AlertChannelEnvelope struct
monitor_alert_channels.go New file with commented-out alert channel code for future implementation
alert_channels.go Deleted file containing alert channel implementation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement for improvements in existing functionality in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants