T3060
Stack to refactor ecash-herald so that all functions can be unit tested
Here, renaming chronik.js to websocket.js, which better reflects what is going on in this file.
Differential D13614
[herald] Rename chronik src file to websocket.js bytesofman on Apr 7 2023, 16:18. Authored by
Details
T3060 Stack to refactor ecash-herald so that all functions can be unit tested Here, renaming chronik.js to websocket.js, which better reflects what is going on in this file. Confirm no other imports are using chronik.js
Diff Detail
Event TimelineComment Actions The only functions in websocket.js are initializeWebsocket and parseWebsocketMessage. Follows the same logic as alias-server there's a case that both these files should be, say websocketMethods.js. that should be one diff that does this for both apps, outside of this stack. Comment Actions My main concern here is the impact reverting this name change will have on other diffs in the stack. Granted, I should not have done it this way, but here we are. I'm happy to open a task or change this later in the stack. Comment Actions if the stack order is the issue then let's rename later. But the previous name was better: what do these function do that require the use of the websocket messaging protocol ? Comment Actions See T3104 for tracking this issue. Since the same issue exists in alias-server, imo it should be patched in one diff applying to both apps. Comment Actions changing this filename will require a potentially failing rebase in the next 16 diffs on this stack. Is it not possible to green this diff -- which follows the same convention already in alias-server -- knowing that there is a change planned that will resolve the issue? edit: the reason I don't want to add this filename change to the end of the stack is bc it should also change alias-server, which also has an open stack. Comment Actions You should really avoid building large stacks and submit them all at the same time. When some diff is ready, just submit it asap and get it landed asap to avoid this rebase hell. |