emqx / MQTTX

A Powerful and All-in-One MQTT 5.0 client toolbox for Desktop, CLI and WebSocket.
https://mqttx.app
Apache License 2.0
3.93k stars 449 forks source link

feat(desktop): sync tree data to message table #1777

Closed ysfscream closed 1 month ago

ysfscream commented 1 month ago

PR Checklist

If you have any questions, you can refer to the Contributing Guide

What is the current behavior?

Unable to view historical messages. Updated data in tree data will not be stored.

Issue Number

Example: #123

What is the new behavior?

  1. Synchronize messages in the Topic Tree to the database. Historical data can also be viewed on the connection page.
  2. Fix the problem of JSON Big Int appearing in Tree Node Info.
  3. Make some optimizations to log display and add logs to the topic tree.
  4. Add test cases for the message buffer queue method.

Does this PR introduce a breaking change?

Specific Instructions

Are there any specific instructions or things that should be known prior to review?

Other information