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

Add update original message to destination configurations #1177

Conversation

nzur-newrelic
Copy link
Contributor

@nzur-newrelic nzur-newrelic commented Jun 23, 2024

Added a new flag for the destination configurations, which can only be used and changed for slack.
The rest will be nil, future uses will be added later.

@@ -30,7 +30,7 @@ func TestIntegrationCreateWorkflow(t *testing.T) {
notificationTriggers := []AiWorkflowsNotificationTrigger{"ACTIVATED"}

// Create a workflow to work with in this test
workflowInput := generateCreateWorkflowInput(channel, notificationTriggers)
workflowInput := generateCreateWorkflowInput(channel, notificationTriggers, nil)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sadly there's no real way to check the flag as it's only relevant for SLACK.
For the moment I'm just checking the fact that it's nil, but in the future we will expand its usage further so more tests can be done.

@pranav-new-relic
Copy link
Member

image

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 38.83%. Comparing base (3ff4ee2) to head (59fa6b6).
Report is 45 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1177      +/-   ##
==========================================
- Coverage   38.84%   38.83%   -0.01%     
==========================================
  Files          86       93       +7     
  Lines        5612     4722     -890     
==========================================
- Hits         2180     1834     -346     
+ Misses       3266     2715     -551     
- Partials      166      173       +7     
Flag Coverage Δ
unit 38.83% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@pranav-new-relic pranav-new-relic merged commit 239fd02 into newrelic:main Jun 27, 2024
13 checks passed
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.

3 participants