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 displaying the log missing HTTP response #5551

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

norkans7
Copy link

@norkans7 norkans7 commented Oct 16, 2024

Copy link

sentry-io bot commented Oct 16, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: temba/channels/models.py

Function Unhandled Issue
get_display KeyError: 'response' /channels/{channel_uuid}/log...
Event Count: 34

Did you find this useful? React with a 👍 or 👎

@@ -1451,16 +1451,25 @@ def test_get_display(self):
)

def test_get_display_timed_out(self):
channel = self.create_channel("TG", "Telegram", "mybot")
contact = self.create_contact("Fred Jones", urns=["telegram:74747474"])
channel = self.create_channel(
Copy link
Author

@norkans7 norkans7 Oct 16, 2024

Choose a reason for hiding this comment

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

Just updated the test so we use a channel type that has redact values to make sure they are never displayed

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (36b34ab) to head (99ca427).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #5551   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          543       543           
  Lines        25669     25669           
=========================================
  Hits         25669     25669           

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

@rowanseymour rowanseymour merged commit f8b59ae into main Oct 16, 2024
5 checks passed
@rowanseymour rowanseymour deleted the fix-log-missing-response branch October 16, 2024 14:03
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants