ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

Tool to replay messages #1288

Open ctm opened 10 months ago

ctm commented 10 months ago

Build a tool—initially for internal use only—that replays all the messages a table window has received.

For any onlookers, be aware that mb2 does not write hole cards or other private messages to the database until the hand is over, so even when this tool is built, it will not give me the ability to see players' cards or actions during a hand.

This tool will initially be used to try to reproduce bugs, like when the UI was not updating bets (#1283), but much of the same code will later be used to allow people to see hand histories.

I'm marking this high priority, mostly because I want to use it to try to reproduce #1283, even though I expect that particular bug to not be reproducible. However, there are tons of times where there's been a UI bug where I've been able to reproduce it either through force-status or hacking up the code or I haven't bothered to reproduce because I've found it via code inspection. In each of those cases, I would have been able to do things much faster if I had this tool and writing this tool is not that hard.

So, although ordering the remaining paperweights (#1201) and addressing slowness at start (#1185) are higher priorities, this'll be my work on this when I'm too tired to do other work project until it's done (or something shiny steals my attention).

ctm commented 9 months ago

Ugh. I wound up doing some yak shaving by researching how to get a read-only Postgres connection so that when I build this tool I can use it against the production database w/o fear of accidentally altering the database. I found some relevant web pages and left them up, but never updated this issue with the information in them… and then I closed them in one of my window-closing fits.

FWIW, I'm not too tired to work on other issues, but I am going to spend a little time re-researching the read-only question before it entirely escapes my mind.

ctm commented 9 months ago

FWIW, I just created the readonly role and verified that it's read-only. When it's time to work on this tool, I'll add something that checks to make sure that the connected role is indeed readonly. That should be fine to prevent accidental writing.

ctm commented 6 months ago

I'd still like this tool, but I haven't had a need for it particularly recently, so I'm stripping high priority.

ctm commented 1 month ago
smalltalkdan: Cliff, any chance of getting a screen shot of hand 427988?
deadhead: screen shot? ... I don't have the ability to do that yet. But I can boost the priority of that.