You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/05/03 11:04:59 UTC

[GitHub] [shardingsphere] tristaZero opened a new issue #10251: [API Change] Move the user configuration to authority rule

tristaZero opened a new issue #10251:
URL: https://github.com/apache/shardingsphere/issues/10251


   Hi, community,
   
   This issue is to do API change of `server.yaml` of ShardingProxy. More precisely to say, we plan to move the `user` configuration to the `authority` rule module. Hope you can have a try and get 👍 .
   
   ### Target
   Please change the configuration of `server.yaml` from
   ```yaml
   users:
     - root@%:root
     - sharding@:sharding
   rules:
     - !AUTHORITY
       provider:
         type: NATIVE
   ```
   **TO**
   ```yaml
   rules:
     - !AUTHORITY
       users:
         - root@%:root
         - sharding@:sharding
       provider:
         type: NATIVE
   ```
   
   ### How?
   There are two necessary sections to achieve it. 
   
   #### The refactoring of Yaml configuration
   1 Move `users` from `YamlProxyServerConfiguration` to `YamlAuthorityRuleConfiguration`
   2 Move `YamlUsersConfigurationConverter` handling from `YamlProxyConfigurationSwapper` to `AuthorityRuleConfigurationYamlSwapper`
   3 Move `users` from `ProxyConfiguration` to `AuthorityRuleConfiguration`
   4 Remove `persistUsers(users, isOverwrite);` of `RegistryCenter`
   5 Move the relevant Unit test classes to corresponding packages.
   
   ### The change of User and authority initialization
   1 Remove `users`, which has been stored in `AuthorityRuleConfiguration` from `MetaDataContextsBuilder`
   2 Remove `users` from the signature of `ShardingSphereRulesBuilder.buildGlobalRules()` 
   3 Put `users` into `AuthorityRule` from `AuthorityRuleConfiguration`
   4 Fix the Unit tests
   
   


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

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



[GitHub] [shardingsphere] tristaZero commented on issue #10251: [API Change] Move the user configuration to authority rule

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #10251:
URL: https://github.com/apache/shardingsphere/issues/10251#issuecomment-831664361


   Hi @zhujunxxxxx ,
   Glad to see you stepping forward. Which one do you want to try? Or both?


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

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



[GitHub] [shardingsphere] tristaZero commented on issue #10251: [API Change] Move the user configuration to authority rule

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #10251:
URL: https://github.com/apache/shardingsphere/issues/10251#issuecomment-831764599


   @zhujunxxxxx Hey, welcome.
   @huanghao495430759 I will assign #10252 to you. Since you have done something to do with that, I suppose that issue will become simpler for you. :)
   


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

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



[GitHub] [shardingsphere] huanghao495430759 commented on issue #10251: [API Change] Move the user configuration to authority rule

Posted by GitBox <gi...@apache.org>.
huanghao495430759 commented on issue #10251:
URL: https://github.com/apache/shardingsphere/issues/10251#issuecomment-831668970


   OK, Can I try it too ?


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

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



[GitHub] [shardingsphere] tristaZero commented on issue #10251: [API Change] Move the user configuration to authority rule

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #10251:
URL: https://github.com/apache/shardingsphere/issues/10251#issuecomment-831205842


   Hi guys, @huanghao495430759 @zhujunxxxxx 
   
   Hope you have an enjoyable holiday!
   
   I have to say there are two **important and challenging** issues to seek excellent contributors from the community. 
   Based on two of you's great previous contribution and experience, I assume you are eligible to deal with these difficult issues. So please excuse me for occupying you here. :)
   
   I just wonder whether you are interested in this issue and #10252 and willing to take charge? 
   
   Here are some pointers FYI,
   - #10251 and  #10252 have some of the associations. 
   - #10252 is difficult than this one.
   - Some sub-tasks of #10252 rely on this one.
   
   If you are not available, please still tell me so that I can assign these issues to others. Thanks.


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

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



[GitHub] [shardingsphere] zhujunxxxxx commented on issue #10251: [API Change] Move the user configuration to authority rule

Posted by GitBox <gi...@apache.org>.
zhujunxxxxx commented on issue #10251:
URL: https://github.com/apache/shardingsphere/issues/10251#issuecomment-831335228


   OK,Let me try.


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

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



[GitHub] [shardingsphere] zhujunxxxxx commented on issue #10251: [API Change] Move the user configuration to authority rule

Posted by GitBox <gi...@apache.org>.
zhujunxxxxx commented on issue #10251:
URL: https://github.com/apache/shardingsphere/issues/10251#issuecomment-831755519


   I want to try #10251.


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

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



[GitHub] [shardingsphere] tristaZero closed issue #10251: [API Change] Move the user configuration to authority rule

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #10251:
URL: https://github.com/apache/shardingsphere/issues/10251


   


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

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