Add support for HERD '/history' endpoint
This is a partner to cms-tracker-phase2-onlinesw/herd-app#22 (closed) , in order to be able to access the new history information on the command line
- Create
history
module to contain newdataclass
-based classes representing each type of entry from the history endpoint -FSMEngage
,FSMReset
,FSMDisengage
,Command
,Transition
,LeaseRequest
,LeaseRenewal
- See
board.py
for examples of similardataclass
-based classes
- See
- Add
get_history
function toBoard
class insrc/swatch/board.py
- This should query the new endpoint and return an instance of one of the above classes.
- Add
history
subcommand toboard-manager
insrc/swatch/cli/board_manager.py
- This should print out the list of history items.
- Note: Should be able to re-use the
create_{command,transition}_snapshot_table
functions fromsrc/swatch/console/utilities.py
to print the status field for command/transition entries.