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

🔧 chore(aci): Add support to invoke rule registry email handler from NOA #85130

Draft
wants to merge 2 commits into
base: raj/invoke-rule-registry-rest-of-ticketing
Choose a base branch
from

Conversation

iamrajjoshi
Copy link
Member

adds support to send emails for issue alerts via NOA.

as part of this change, i also decomposed some of the translation for email so it can be reused between migration and noa.

i also fixed up some tests for Ticketing since i realized the comparison i was doing was incorrect (i was comparing the result with itself)

@iamrajjoshi iamrajjoshi self-assigned this Feb 13, 2025
@@ -87,7 +96,6 @@ class ActionFieldMapping(TypedDict):
Action.Type.GITHUB: ActionFieldMapping(
id="sentry.integrations.github.notify_action.GitHubCreateTicketAction",
integration_id_key="integration",
target_identifier_key="repo",
Copy link
Member Author

Choose a reason for hiding this comment

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

mistake found with test updates

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 13, 2025
}


class TestGithubIssueAlertHandler(TestTicketingIssueAlertHandlerBase):
def test_build_rule_action_blob(self):
for expected in GITHUB_ACTION_DATA_BLOBS:
self._test_build_rule_action_blob(expected, Action.Type.GITHUB)
if expected["id"] == ACTION_FIELD_MAPPINGS[Action.Type.GITHUB]["id"]:
Copy link
Member Author

Choose a reason for hiding this comment

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

something else found with test updates. we have to do this since github/github enterprise config looks identical (based on code, currently there are no prod actions set up for ghe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant