-
Notifications
You must be signed in to change notification settings - Fork 86
[7324] Replace HTTP polling of instance / device status with MQTT-over-WS #7573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
n-lark
wants to merge
17
commits into
main
Choose a base branch
from
7324-mqtt/ws-device-instances
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
eba27e4
Replace instance status polling with live MQTT updates, send state to…
n-lark fd04a6f
Merge branch 'main' into 7324-mqtt/ws-device-instances
n-lark 4b63e35
Serialize publishLiveState per project so concurrent state changes ca…
n-lark bead91a
Wire instance consumers to live MQTT status and gate their pollers on…
n-lark dcd9d6b
Fix failing spec
n-lark d6dd028
Rename frontend live-state topics to /state for both instances and de…
n-lark e593cf9
Wire device consumers to live MQTT status and gate their pollers on t…
n-lark 90e1f37
Rename status-broadcast publishers + ACL verify to state so naming ma…
n-lark 75f93f8
Fix transient stopped flash on restart/start and stuck actions menu a…
n-lark 976637f
Mask transient stopped during device restart and consolidate state-tr…
n-lark 817af8d
Fix the stopped flash sticking under polling, stop rollbacks from fla…
n-lark 57247d8
Stop failed starts from hanging on starting and add tests for the fla…
n-lark 881b1c1
Merge branch 'main' into 7324-mqtt/ws-device-instances
n-lark 6ba8c73
Add additional specs to cover all instance flows
n-lark 9b85f31
Trim redundant specs
n-lark 591ad6c
Remove setTimeout for clearInflightStateIfStill
n-lark 92e5a22
Report running from stub restartFlows so restarts clear the inflight …
n-lark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So devices already publish their raw status to the
…/statustopics, which forge subscribes to in order to collect it.If forge re-published the browser-facing copy onto that same
…/statustopic, it would receive its own message back and loop forever, so the browser updates use a separate…/statetopic that nothing on the backend listens to.Also named instances
.../statefor consistency. I was also considering.../liveStatusto imply FE, not sold on the name.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
differentiating the topics to avoid loopbacks sounds sensible, the state name for consistency too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also like the
liveStatusapproach but in thelive-stateform to adhere to the ui naming and topic format, up to you if you want to change it