leizhiyuan opened a new pull request, #1591:
URL: https://github.com/apache/rocketmq-dashboard/pull/1591

   ## Summary
   
   Adds consumer group management support for Tencent Cloud RocketMQ 5.x 
instances on the
   `rocketmq-studio` branch, mapping the Tencent `provider/tencent` (Trocket 
v20230308 OpenAPI) to
   the instance-scoped consumer group CRUD surface. Fixes #1590.
   
   ## Changes
   
   **Consumer group management (Tencent provider)**
   - `listConsumerGroups` - `DescribeConsumerGroupList` pagination + name 
filter; enriches per-group
     `createdAt` and the real `ConsumeModel` via `DescribeConsumerGroup` (off 
the cheap count path).
   - `createConsumerGroup` / `deleteConsumerGroup` - `CreateConsumerGroup` / 
`DeleteConsumerGroup`
     with retry times and orderly-delivery defaults.
   - `getGroupProgress` / `getGroupSubscriptions` - `DescribeTopicListByGroup` 
mapping per-topic
     consumer lag and subscription entries.
   - `resetOffset` - `ResetConsumerGroupOffset` by timestamp (topic required).
   - `countGroups` - cheap list path without N+1 detail lookups.
   
   **Fix: blank group detail modal**
   - `instances` and `subscribedTopics` are now set to empty lists instead of 
`null`, so the detail
     modal no longer throws `Cannot read properties of null (reading 'length')` 
when opened.
   
   **SDK bump**
   - `tencentcloud-sdk-java-trocket` `3.1.1292` -> `3.1.1498`, which adds
     `DescribeConsumerGroupResponse#getConsumeModel()` to map `ConsumeModel` 
(CLUSTERING /
     BROADCASTING) to `ConsumeType`. The older model could not read this field.
   
   ## Testing
   - Unit tests added for the Tencent provider: list (mapping + consume model + 
timestamps + empty
     instances), create, delete, progress/subscriptions, and reset offset.
   - Backend: `mvn test` passes (893+ tests, 0 failures); checkstyle clean.
   - Manually verified against a real Tencent Cloud RocketMQ 5.x instance: 
group list shows real
     `createdAt` and `consumeType`, create/delete/reset work, and opening group 
detail no longer
     blanks the page.
   
   ## Notes
   - Scoped to `rocketmq-studio`; message query and trace ops for Tencent 
remain unsupported.
   - `subscriptionMode` (Push/Pop) and `subscriptionDataType` are not exposed 
by the Tencent API and
     remain empty, consistent with the Aliyun provider.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to