You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "fabian4 (via GitHub)" <gi...@apache.org> on 2023/07/28 09:25:53 UTC

[PR] [Enhancement #3495] Add redis admin (eventmesh)

fabian4 opened a new pull request, #4302:
URL: https://github.com/apache/eventmesh/pull/4302

   <!--
   ### Contribution Checklist
   
     - Name the pull request in the form "[ISSUE #XXXX] Title of the pull request", 
       where *XXXX* should be replaced by the actual issue number.
       Skip *[ISSUE #XXXX]* if there is no associated github issue for this pull request.
   
     - Fill out the template below to describe the changes contributed by the pull request. 
       That will give reviewers the context they need to do the review.
     
     - Each pull request should address only one issue. 
       Please do not mix up code from multiple issues.
     
     - Each commit in the pull request should have a meaningful commit message.
   
     - Once all items of the checklist are addressed, remove the above text and this checklist, 
       leaving only the filled out template below.
   
   (The sections below can be removed for hotfixes of typos)
   -->
   
   <!--
   (If this PR fixes a GitHub issue, please add `Fixes #<XXX>` or `Closes #<XXX>`.)
   -->
   
   Fixes #3495.
   
   ### Motivation
   
   *Explain the content here.*
   *Explain why you want to make the changes and what problem you're trying to solve.*
   
   
   
   ### Modifications
   
   - Add redis-admin in eventmesh-admin
   - Add redisAdmin and redisAdminAdapter in redis-storage
   - Add rocketmqService in rocketmq-admin to create topic (which calls the function in rocketmq-storage 
   
   
   
   ### Documentation
   
   - Does this pull request introduce a new feature? (yes / no)
   - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
   - If a feature is not applicable for documentation, explain why?
   - If a feature is not documented yet in this PR, please create a followup issue for adding the documentation
   


-- 
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: dev-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


Re: [PR] [Enhancement #3495] Add redis admin (eventmesh)

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #4302:
URL: https://github.com/apache/eventmesh/pull/4302#issuecomment-1655444871

   ## [Codecov](https://app.codecov.io/gh/apache/eventmesh/pull/4302?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   > Merging [#4302](https://app.codecov.io/gh/apache/eventmesh/pull/4302?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (96cf918) into [master](https://app.codecov.io/gh/apache/eventmesh/commit/5b8616bf308217cd362a279eb3986095940e49aa?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (5b8616b) will **decrease** coverage by `0.04%`.
   > The diff coverage is `0.00%`.
   
   > :exclamation: Current head 96cf918 differs from pull request most recent head 38ba65d. Consider uploading reports for the commit 38ba65d to get more accurate results
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #4302      +/-   ##
   ============================================
   - Coverage     16.87%   16.84%   -0.04%     
     Complexity     1428     1428              
   ============================================
     Files           593      596       +3     
     Lines         26035    26083      +48     
     Branches       2366     2366              
   ============================================
     Hits           4394     4394              
   - Misses        21215    21263      +48     
     Partials        426      426              
   ```
   
   
   | [Files Changed](https://app.codecov.io/gh/apache/eventmesh/pull/4302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [...org/apache/eventmesh/admin/rocketmq/Constants.java](https://app.codecov.io/gh/apache/eventmesh/pull/4302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLWFkbWluL2V2ZW50bWVzaC1hZG1pbi1yb2NrZXRtcS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL2FkbWluL3JvY2tldG1xL0NvbnN0YW50cy5qYXZh) | `0.00% <ø> (ø)` | |
   | [...ventmesh/admin/rocketmq/handler/TopicsHandler.java](https://app.codecov.io/gh/apache/eventmesh/pull/4302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLWFkbWluL2V2ZW50bWVzaC1hZG1pbi1yb2NrZXRtcS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL2FkbWluL3JvY2tldG1xL2hhbmRsZXIvVG9waWNzSGFuZGxlci5qYXZh) | `0.00% <0.00%> (ø)` | |
   | [...ntmesh/admin/rocketmq/service/RocketMQService.java](https://app.codecov.io/gh/apache/eventmesh/pull/4302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLWFkbWluL2V2ZW50bWVzaC1hZG1pbi1yb2NrZXRtcS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL2FkbWluL3JvY2tldG1xL3NlcnZpY2UvUm9ja2V0TVFTZXJ2aWNlLmphdmE=) | `0.00% <0.00%> (ø)` | |
   | [...ache/eventmesh/storage/redis/admin/RedisAdmin.java](https://app.codecov.io/gh/apache/eventmesh/pull/4302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLXJlZGlzL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvc3RvcmFnZS9yZWRpcy9hZG1pbi9SZWRpc0FkbWluLmphdmE=) | `0.00% <0.00%> (ø)` | |
   | [...entmesh/storage/redis/admin/RedisAdminAdaptor.java](https://app.codecov.io/gh/apache/eventmesh/pull/4302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLXJlZGlzL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvc3RvcmFnZS9yZWRpcy9hZG1pbi9SZWRpc0FkbWluQWRhcHRvci5qYXZh) | `0.00% <0.00%> (ø)` | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [PR] [Enhancement #3495] Add redis admin (eventmesh)

Posted by "pandaapo (via GitHub)" <gi...@apache.org>.
pandaapo commented on PR #4302:
URL: https://github.com/apache/eventmesh/pull/4302#issuecomment-1657198279

   > I just simply added the redis-admin and submit the pr waiting for further disscusion.
   
   > I am still confused about the admin part in `eventmesh-storage-plugin` `eventmesh-runtime` and `eventmesh-admin`.
   
   Contributing code in this way is not good, both for you and for EventMesh. You should program only after fully understanding the relevant code you are dealing with, and verify the functionality of your code.
   
   


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [PR] [Enhancement #3495] Add redis admin (eventmesh)

Posted by "fabian4 (via GitHub)" <gi...@apache.org>.
fabian4 commented on PR #4302:
URL: https://github.com/apache/eventmesh/pull/4302#issuecomment-1657208717

   > > I just simply added the redis-admin and submit the pr waiting for further disscusion.
   > 
   > > I am still confused about the admin part in `eventmesh-storage-plugin` `eventmesh-runtime` and `eventmesh-admin`.
   > 
   > Contributing code in this way is not good, both for you and for EventMesh. You should program only after fully understanding the relevant code you are dealing with, and verify the functionality of your code.
   > 
   > 
   
   I'm sorry for my thoughtless behavior in this pr and I will make a plan about it first the next time.


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [PR] [Enhancement #3495] Add redis admin (eventmesh)

Posted by "pandaapo (via GitHub)" <gi...@apache.org>.
pandaapo commented on PR #4302:
URL: https://github.com/apache/eventmesh/pull/4302#issuecomment-1655902602

   Some of your classes have almost the same content with classes in `eventmesh-admin-rocketmq` module. Could your consider doing extraction and refactoring work to avoid a large amount of duplicated code?
   ` org.apache.eventmesh.admin.redis.Constants`
   `org.apache.eventmesh.admin.redis.controller.AdminController`
   `org.apache.eventmesh.admin.redis.handler.TopicsHandler`
   `org.apache.eventmesh.admin.redis.request.TopicCreateRequest`
   `org.apache.eventmesh.admin.redis.response.TopicResponse`
   `org.apache.eventmesh.admin.redis.util.RequestMapping`
   `org.apache.eventmesh.admin.redis.util.UrlMappingPattern`
   `org.apache.eventmesh.admin.redis.service.RedisService` -- `org.apache.eventmesh.admin.rocketmq.service.RocketMQService`
   
   Additionally, `org.apache.eventmesh.storage.redis.admin.RedisAdmin` and `org.apache.eventmesh.storage.redis.admin.RedisAdminAdaptor`, these 2 are almost the same with the classes in `eventmesh-storage-rocketmq` module. `RocketMQAdmin` and `RocketMQAdminAdaptor` are not in `eventmesh-admin` module for now, but they will be. So maybe you can design class like template class or abstract class in advance, so that classes in other `eventmesh-admin-xxx` modules can reuse them in the future.


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [PR] [Enhancement #3495] Add redis admin (eventmesh)

Posted by "fabian4 (via GitHub)" <gi...@apache.org>.
fabian4 closed pull request #4302: [Enhancement #3495] Add redis admin
URL: https://github.com/apache/eventmesh/pull/4302


-- 
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: dev-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


Re: [PR] [Enhancement #3495] Add redis admin (eventmesh)

Posted by "fabian4 (via GitHub)" <gi...@apache.org>.
fabian4 commented on PR #4302:
URL: https://github.com/apache/eventmesh/pull/4302#issuecomment-1655959491

   I thought about it first. considering there is a task related https://github.com/apache/eventmesh/issues/4040, I just simply added the redis-admin and submit the pr waiting for further disscusion.
   
   I am still confused about the admin part in `eventmesh-storage-plugin` `eventmesh-runtime` and `eventmesh-admin`. I noticed there is a task related to re-design this part, so we can discuss it first to avoid confict. 


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org