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 inbound email bug when attaching files #1970

Merged
merged 2 commits into from
May 18, 2023

Conversation

vstpme
Copy link
Member

@vstpme vstpme commented May 18, 2023

What this PR does

Fix inbound email endpoint bug when attaching files to email leads to HTTP 500.

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • CHANGELOG.md updated (or pr:no changelog PR label added if not required)

@vstpme vstpme changed the title Update inbound.py Fix inbound email endpoint bug when attaching files May 18, 2023
@vstpme vstpme added the pr:no public docs Added to a PR that does not require public documentation updates label May 18, 2023
@vstpme vstpme changed the title Fix inbound email endpoint bug when attaching files Fix inbound email bug when attaching files May 18, 2023
@vstpme vstpme marked this pull request as ready for review May 18, 2023 17:30
@vstpme vstpme requested a review from a team May 18, 2023 17:30
@@ -69,7 +69,7 @@ def post(self, request, alert_receive_channel):
alert_receive_channel_pk=alert_receive_channel.pk,
image_url=None,
link_to_upstream_details=None,
integration_unique_data=request.data,
integration_unique_data=None,
Copy link
Member Author

Choose a reason for hiding this comment

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

This data is not needed, the only fields available for templating are subject, message, and sender.

@vstpme vstpme added this pull request to the merge queue May 18, 2023
Merged via the queue into dev with commit 0078dd6 May 18, 2023
@vstpme vstpme deleted the vadimkerr/inbound-email-post-file branch May 18, 2023 17:40
matiasb pushed a commit that referenced this pull request May 18, 2023
# What this PR does
Fix inbound email endpoint bug when attaching files to email leads to
HTTP 500.

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants