messere1 opened a new pull request, #1679: URL: https://github.com/apache/rocketmq-dashboard/pull/1679
## Summary - validate resource-plan numeric fields at runtime instead of relying on TypeScript types - require queue, retry, and delay counts to be non-negative integers - mark malformed JSON rows as INVALID and non-applicable - cover string, fractional, negative, and null values parsed from JSON ## Root cause and impact The JSON parser only validated the top-level arrays, while entry validation rejected numeric values only when they compared below zero. Runtime values such as strings and fractions therefore bypassed the check and could be reported as actionable CREATE or UPDATE entries. A shared integer predicate keeps preview results aligned with RocketMQ resource constraints. Closes #1642 ## Validation - npm test -- --run src/services/resourcePlanService.test.ts (3 passed) - npx eslint src/services/resourcePlanService.ts src/services/resourcePlanService.test.ts - npm run build - git diff --check -- 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]
