Skip to content

Use Cosmos Bot Read Model in BotNetApi Reads #89

@DakotaCondos

Description

@DakotaCondos

As an application or admin app user,
I want the existing BotNetApi bot read endpoints to use the Cosmos DB bot read model,
so that normal bot state and inventory reads come from the readable projection instead of the simulator runtime.

Acceptance Criteria

  • Given an app requests all bots
    When BotNetApi receives the request
    Then it returns bot documents or summaries from the Cosmos DB bots container.

  • Given an app requests a specific bot
    When BotNetApi receives the bot ID
    Then it returns the matching bot document from Cosmos DB.

  • Given an app requests available bots
    When BotNetApi queries Cosmos DB
    Then it returns bots marked available and not removed or disabled.

  • Given an app needs inventory information
    When it queries a bot through BotNetApi
    Then the response includes the bot's current readable inventory values.

  • Given a removed bot is queried
    When BotNetApi reads the bot document
    Then the bot is clearly identified as removed or inactive.

  • Given an app requests normal read-only bot information
    When the request is processed
    Then BotNetApi does not call simulator HTTP endpoints for that read operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for User Story.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions