douxu
1b1f43db7f
feat: implement topology analysis async task with BFS connectivity check
...
- add TopologyAnalysisHandler.Execute() with 5-phase BFS reachability
check between start/end component UUIDs; support CheckInService flag
to skip out-of-service nodes during traversal
- carry task params through RabbitMQ message (TaskQueueMessage.Params)
instead of re-querying DB in handler; update TaskHandler.Execute
interface and all handler signatures accordingly
- fix BuildMultiBranchTree UUIDFrom condition bug; return nodeMap for
O(1) lookup; add QueryTopologicByStartUUID for directed traversal
- add QueryBayByUUID/QueryBaysByUUIDs and
QueryComponentsInServiceByUUIDs (two-column select) to database layer
- add diagram.FindPath via LCA algorithm for tree path reconstruction
- move initTracerProvider to middleware.InitTracerProvider; add
OtelConfig struct to ModelRTConfig for endpoint configuration
- update topology analysis params to start/end_component_uuid +
check_in_service; remove dead topology init code
2026-04-24 17:14:46 +08:00
douxu
03bd058558
feat: implement end-to-end distributed tracing for HTTP and async tasks
...
- introduce typed traceCtxKey to prevent context key collisions (staticcheck fix)
- inject B3 trace values into c.Request.Context() in StartTrace middleware
so handlers using c.Request.Context() carry trace info
- create startup trace context in main.go, replacing context.TODO()
- propagate HTTP traceID/spanID through TaskQueueMessage into RabbitMQ
worker, linking HTTP request → publish → execution on the same traceID
- fix GORM logger null traceID by binding ctx to AutoMigrate and queries
via db.WithContext(ctx)
- thread ctx through handler factory to fix null traceID in startup logs
- replace per-request RabbitMQ producer with channel-based
PushTaskToRabbitMQ goroutine; restrict Swagger to non-production
2026-04-23 16:48:32 +08:00
douxu
898beaeec4
optimize struct of rabbitmq event
2026-03-02 17:00:09 +08:00
douxu
a31bd6f395
add component attribute group update api and optimzie diagram hash set params
2026-01-05 17:20:41 +08:00
douxu
fcf4ef3f7d
fix bug of token4-token7 type attribute recommend api
2025-12-31 16:52:40 +08:00
douxu
e74bedd47f
fix bug of token4-token7 type recommend api
2025-12-31 16:24:27 +08:00
douxu
36e196bedd
add nspath filter of recommend api
2025-12-30 16:35:29 +08:00
douxu
941d521328
fix bug of token6 all search result return case
2025-12-29 15:58:59 +08:00
douxu
7969861746
optimize func of cleanup recommend redis cache
2025-12-26 17:10:22 +08:00
douxu
8e4bdfd0e9
add fullpath completion of component attribute group recommend
2025-12-26 12:00:00 +08:00
douxu
42751c1020
optimize the logic for loading the cache of measurement nodes for traversing components
2025-12-25 17:17:20 +08:00
douxu
51f65500f3
add func of init component measurement recommend
2025-12-24 16:55:55 +08:00
douxu
6e16a9a39a
fix bug of measurement recommend injection func
2025-12-24 09:06:42 +08:00
douxu
c29f58f388
fix bug of token4-token7 model config complete op
2025-12-23 16:44:31 +08:00
douxu
8313b16dfe
fix bug of measurement recommend of token6 complete op and token7 hierarchy recommend
2025-12-23 15:09:33 +08:00
douxu
f45f10507b
fix bug of measurement recommend of token6 complete op and token7 hierarchy recommend
2025-12-23 14:52:39 +08:00
douxu
41e2998739
optimize deploy doc and optimize TraverseAttributeGroupTables func
2025-12-22 17:38:15 +08:00
douxu
c16680d4c2
fix bug of t4-t7 model combine prefix string func
2025-12-22 10:45:47 +08:00
douxu
9499e579b3
optimize code of sql struct and measurement node recommend api
2025-12-19 17:33:12 +08:00
douxu
70bcb00062
add code of component attribute group store
2025-12-18 17:50:43 +08:00
douxu
df77f80475
add func of component param group recommend func
2025-12-17 17:10:47 +08:00
douxu
252699cb77
fix bug of measurement api and add func of traverse attribute group table
2025-12-16 16:34:19 +08:00
douxu
0add3cf6db
feat:implement search support for abbreviated token ranges (e.g., token4-token7)
2025-12-15 16:49:38 +08:00
douxu
c68cc9436a
fix bug of measurement recommend api
2025-12-12 14:19:50 +08:00
douxu
3f70be0d1c
fix bug of new version of measurement recommend api
2025-12-06 18:32:00 +08:00
douxu
46e72ce588
optimize redis test data lua shell
2025-12-04 17:26:35 +08:00
douxu
b99c03296a
optimize measurement recommend api
2025-12-03 16:55:14 +08:00
douxu
b6e47177fb
debugging API using single measurement point subscription case
2025-11-25 16:13:55 +08:00
douxu
8d6efe8bb1
optimize real time data pull api
2025-11-10 17:32:18 +08:00
douxu
b75358e676
optimize first create monitor config func of real time data query api
2025-11-05 18:20:54 +08:00
douxu
f5ea909120
optimize real time data query api
2025-11-04 17:12:15 +08:00
douxu
54128bedac
fix bug of measurement recommend api
2025-10-20 15:06:23 +08:00
douxu
f0a66263a3
optimize measurement recommend api
2025-10-16 17:18:57 +08:00
douxu
62e897190d
optimize code of measurement recommend and logger output
2025-10-15 17:08:32 +08:00
douxu
5d02ca9fca
add measurement recommend api
2025-09-29 16:37:38 +08:00
douxu
453e6f9851
add GetLongestCommonPrefixLength func
2025-09-27 15:56:46 +08:00
douxu
0d7890f6aa
optimize code of RedissearchRecommend func
2025-09-26 16:47:40 +08:00
douxu
5f5eb22b39
optimize code of redis search query
2025-09-25 16:39:45 +08:00
douxu
151f7f22c5
fix bug of grid condition process
2025-09-24 17:26:46 +08:00
douxu
4ee836c70f
add redis search code of query model object
2025-09-24 16:43:11 +08:00
douxu
727b9a98ec
add CL3611 and power104 proto code
2025-09-02 16:38:03 +08:00
douxu
858d02f955
add attr handlers
2025-08-27 17:33:10 +08:00
douxu
3e833909d1
feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant
...
http://server.baseware.net:9000/project/datart/task/22
2025-08-05 15:20:07 +08:00
douxu
1b6211b34b
init attribute key struct
2025-07-31 16:52:21 +08:00
douxu
b7009c351e
refactor(errer-package): optimize package name of constant
...
1.optimize package name of constant
2025-06-13 15:34:49 +08:00
douxu
9385ba695c
write code for adapter new component struct
2024-12-30 16:39:11 +08:00
douxu
efc15c3b2d
wirte demo code
2024-12-18 16:25:49 +08:00
douxu
d9cc5f3738
init async motor table and busbar section table create sql
2024-12-10 16:36:59 +08:00
douxu
829279b22b
init async motor model and optimize model select func
2024-12-09 16:05:48 +08:00
douxu
410c08b132
optimize circuit diagram update handler and complete circuit diagram create handler code writing
2024-12-05 14:57:23 +08:00