Repository navigation
Release 6.6.0 - #294
Merged
Merged
Release 6.6.0#294
Conversation
Add field ops endpoints
Add field ops socket
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v6.6.0.
/api/field-ops/socket, with replay. A client that reconnects with?since=<last sequence>gets the seconds it missed first, at most 60. The handshake is refused with a 403 unless theOriginis on the same allowlist CORS uses, and on SIGTERM the sockets close with 1001 so clients move to the next instance (Add field ops socket #293)/api/field-opsmodule, the backend for paul-explore's simulated field console.GET /snapshotreturns six fake tracks and the latest alerts, andGET /streamsends the same picture as server-sent events. The simulation is a pure function of the clock, so there's no table and no state (Add field ops endpoints #292)Deploy order
Deploy this first, then paul-explore 9.5.2. The console connects straight to
wss://api.paulsumido.com/api/field-ops/socket, so until this is live/lab/field-opssits on "Reconnecting" with nothing in it. That's exactly what develop.paulsumido.com shows today, since it talks to this API'smain.The allowlist already has
https://paulsumido.comandhttps://develop.paulsumido.com, so both frontends can open the socket.Migration
None. Nothing under
migrations/changed sincemain.New dependency
ws(^8.23.0). The deploy's install picks it up from the lockfile.Branch
mainholds nothingdeveloplacks. Its three extra commits are release merges with no changes of their own. So this branch isdevelop's tip,9184275(the #293 merge), with no merge of its own. Both PRs in it had green checks before they merged.TO-DOs for this release
GET https://api.paulsumido.com/api/field-ops/snapshotshould answer 200, and a socket handshake withOrigin: https://paulsumido.comshould answer 101.info.versionstill says 6.4.4. Neither field ops PR bumped it. It needs its own patch.