AsperforMias opened a new pull request, #1650:
URL: https://github.com/apache/dubbo-admin/pull/1650

   **Please provide a description of this PR:**
   
   Fixes #1648.
   
   A condition rule could not be created from the UI:
   
   - The form view built the rule name as `<application>` or 
`<service>:<version>:<group>` without the `.condition-router` suffix, which the 
backend rejects.
   - The YAML view checked `key == 'application'` instead of `scope == 
'application'`, so an application-scope rule asked for a version and group.
   
   Both views now build the name with one helper, `conditionRuleName(scope, 
key, version, group)`.
   
   Validation: unit tests for the helper; the routing rule and full vitest 
suites pass, and prettier, eslint and type-check report nothing new for the 
changed files. In the mock-mode UI, submitting the form sends `POST 
/condition-rule/router-demo-server.condition-router` for application scope and 
`.../greet.GreetService:1.0.0:gray.condition-router` for service scope, and the 
YAML view creates an application-scope rule without asking for a version and 
group. On develop the same steps send names without the suffix, and the YAML 
view sends nothing.
   
   **To help us figure out who should review this PR, please put an X in all 
the areas that this PR affects.**
   
   - [ ] Docs
   - [ ] Installation
   - [ ] User Experience
   - [ ] Dubboctl
   - [x] Console
   - [ ] Core Component
   
   **Please check any characteristics that apply to this pull request.**
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

  • [PR] fix(ui): create co... AsperforMias (via GitHub) via notifications

Reply via email to