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

connect channel consent tweaks #1294

Merged
merged 8 commits into from
Mar 10, 2025
Merged

connect channel consent tweaks #1294

merged 8 commits into from
Mar 10, 2025

Conversation

snopoke
Copy link
Contributor

@snopoke snopoke commented Mar 7, 2025

Sentry: OPEN-CHAT-STUDIO-NY

Description

Some small tweaks to where consent is checked. The main goal is to check consent earlier in the process and to give feedback in the API views if consent has not been given.

User Impact

Better API feedback. Also using less resources for participants that haven't consented.

Demo

NA

Docs and Changelog

NA

@snopoke snopoke requested a review from SmittieC March 7, 2025 09:48
@codecov-commenter
Copy link

codecov-commenter commented Mar 7, 2025

Codecov Report

Attention: Patch coverage is 68.75000% with 10 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/chat/channels.py 72.22% 5 Missing ⚠️
apps/api/views.py 0.00% 4 Missing ⚠️
apps/channels/views.py 66.66% 1 Missing ⚠️
Additional details and impacted files

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@@ -266,7 +266,8 @@ def _new_user_message(self, message) -> str:
try:
self._add_message(message)
except ParticipantNotAllowedException:
return self.send_message_to_user("Sorry, you are not allowed to chat to this bot")
self.send_message_to_user("Sorry, you are not allowed to chat to this bot")
return ""
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@snopoke snopoke merged commit a1bc529 into main Mar 10, 2025
7 checks passed
@snopoke snopoke deleted the sk/connect-tweaks branch March 10, 2025 10:26
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