feature(robot-server): Namespaces in command definitions #6089
Labels
feature
Ticket is a feature request / PR introduces a feature
robot server
Affects the `robot-server` project
robot-svcs
Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience).
Milestone
Today the command definitions are in a single enumeration in
robot_server.session.models
. This is not scalable.We need a way to be able to define commands in separate files and with optional namespaces to avoid spaghetti.
Acceptance criteria:
robot_server.session.models.CommandName
is abstracted into aCommandDefinition
which will have a name, optional namespace, full name, and data model of the command payload.robot_server.session.models.BasicSessionCommand.command
will be aUnion
of allCommandDefinition
enumeration types (ie Session specific commands).CommandDefinition
will be fully available for command handlers in order to filter based on namespace, name.The text was updated successfully, but these errors were encountered: