You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "tju-yxq (via GitHub)" <gi...@apache.org> on 2026/10/04 11:03:43 UTC

[I] [Bug] Resource CSV import validation returns Chinese text regardless of the display language [rocketmq-dashboard]

tju-yxq opened a new issue, #5573:
URL: https://github.com/apache/rocketmq-dashboard/issues/5573

   ## Problem
   
   The resource CSV import validation utility (`utils/resourceCsvImport.ts`) returns **Chinese display text directly**. Every row-level validation finding is a hardcoded interpolated string — the three name rules (`Name 不能为空` / length cap / character set), the duplicate-name message, the two integer-field rules, and six "unsupported value" messages for Type / Permission / Subscription Mode / Consume Type / Subscription Data Type / Delivery Order Type. The topic and consumer pages' import modals render these verbatim in the row-status table's message column, so an operator who switches the console to English still gets an entirely Chinese validation report.
   
   This is the last member of the family of analysis utilities that predate the key-returning contract (consumer #5564, routes #5566, ACL #5568, connections #5570, send pre-check #5572 all followed `messageTraceDiagnostics`).
   
   ## Expected Behavior
   
   - Row-level findings become structured `ImportIssue` objects (`{ key, params }`) on a new `issues` field of `ResourceImportRow`; `validateResourceName` returns `{ key, params } | null` the same way.
   - The result-phase `message` field (set by the pages after the import request settles) is unchanged — the two phases no longer share one string field.
   - The import modals' message column resolves `issues` through `t(key, params)` joined with a locale-aware separator (`common.listSeparator`), falling back to `message` for result rows.
   - The zh text is byte-identical to what was returned before, so Chinese-locale users see no change.
   - `parseCsvTable`'s thrown structural parser errors (empty file, duplicate headers, row-count cap) remain as-is — they are a separate surface with different consumers.
   
   ## Notes
   
   - 13 new `csvImport.*` keys plus `common.listSeparator`.
   - Tests: the util test's message assertions check `{ key, params }` shapes; the two pages' import suites pass unchanged because the zh render is byte-identical.
   


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Resource CSV import validation returns Chinese text regardless of the display language [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #5573: [Bug] Resource CSV import validation returns Chinese text regardless of the display language
URL: https://github.com/apache/rocketmq-dashboard/issues/5573


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Resource CSV import validation returns Chinese text regardless of the display language [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5573:
URL: https://github.com/apache/rocketmq-dashboard/issues/5573#issuecomment-6115545197

   This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org