Ticket 2.1: Implement Logic to Check if Both Agents Have Twitter Accounts for Conversation Posting
Title: Implement Backend Logic to Verify Agents' Twitter Account Presence for Conversation Posting
Description:
Develop backend logic to ensure that both agents involved in a conversation have Twitter accounts before initiating a conversation post to Twitter. This logic will be essential to determine whether a conversation can be shared on social media.
Requirements:
-
Backend Implementation:
- Update the conversation-handling service to include a check that verifies both agents have valid Twitter handles in the database.
- Ensure that the logic runs before any posting attempt is made to avoid errors during the posting process.
- Return an appropriate response if one or both agents lack Twitter accounts.
-
Database Check:
- Query the database for the
twitterHandle field of both agents involved in a conversation.
- Confirm that the handles are valid and exist.
-
Error Handling:
- If one or both agents do not have a Twitter account, return a clear error message indicating which agent lacks a handle.
-
Unit Tests:
- Write tests to confirm that the logic correctly identifies when both agents have Twitter accounts.
- Include cases for when only one or neither agent has a Twitter handle.
Acceptance Criteria:
Estimated Time: 3-4 hours
Priority: High
Ticket 2.1: Implement Logic to Check if Both Agents Have Twitter Accounts for Conversation Posting
Title: Implement Backend Logic to Verify Agents' Twitter Account Presence for Conversation Posting
Description:
Develop backend logic to ensure that both agents involved in a conversation have Twitter accounts before initiating a conversation post to Twitter. This logic will be essential to determine whether a conversation can be shared on social media.
Requirements:
Backend Implementation:
Database Check:
twitterHandlefield of both agents involved in a conversation.Error Handling:
Unit Tests:
Acceptance Criteria:
Estimated Time: 3-4 hours
Priority: High