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 message is too big exception for mobile push notification #3556

Merged
merged 9 commits into from
Dec 12, 2023

Conversation

Ferril
Copy link
Member

@Ferril Ferril commented Dec 12, 2023

What this PR does

Adds limit for alert title length in mobile app push notifications

Which issue(s) this PR fixes

https://github.com/grafana/oncall-private/issues/2375

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)

@Ferril Ferril added the pr:no public docs Added to a PR that does not require public documentation updates label Dec 12, 2023
@Ferril Ferril requested a review from a team December 12, 2023 15:00
Copy link
Contributor

@joeyorlando joeyorlando left a comment

Choose a reason for hiding this comment

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

LGTM! (just a few stray print statements leftover 🙂 )

Comment on lines 14 to 18
print(f"ALERTS COUNT: {alert_group.alerts.count}") # TODO: debugging test. remove after debugging
alert = alert_group.alerts.first()
print(f"ALERT TITLE: {alert.title}, DATA: {alert.raw_request_data}") # TODO: debugging test. remove after debugging
templated_alert = AlertMobileAppTemplater(alert).render()
print(f"TEMPLATED ALERT: {templated_alert}") # TODO: debugging test. remove after debugging
Copy link
Contributor

Choose a reason for hiding this comment

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

remove print statements

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 I'm debugging failing tests, that work locally

@Ferril Ferril added this pull request to the merge queue Dec 12, 2023
Merged via the queue into dev with commit e003e8a Dec 12, 2023
21 checks passed
@Ferril Ferril deleted the mobile-app-message-is-too-big branch December 12, 2023 16:52
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