Skip to content

UI Toggle for Enabling or Disabling Conversation Tweeting #70

@jkbrooks

Description

@jkbrooks

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:

  1. 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.
  2. Database Check:

    • Query the database for the twitterHandle field of both agents involved in a conversation.
    • Confirm that the handles are valid and exist.
  3. Error Handling:

    • If one or both agents do not have a Twitter account, return a clear error message indicating which agent lacks a handle.
  4. 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:

  • Backend logic checks for the presence of Twitter handles for both agents.
  • If any agent lacks a Twitter account, the system returns an appropriate message.
  • Unit tests are written and pass for scenarios involving agents with and without Twitter accounts.

Estimated Time: 3-4 hours

Priority: High

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions