You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "klesh (via GitHub)" <gi...@apache.org> on 2023/02/02 10:05:22 UTC

[GitHub] [incubator-devlake] klesh opened a new issue, #4298: [Refactor][apihelper] Simplify and Unify ApiClient Creation Logic

klesh opened a new issue, #4298:
URL: https://github.com/apache/incubator-devlake/issues/4298

   ## What and why to refactor
   All of our data source plugins have 2 places that need `ApiClient`: `api.TestConnection` and `tasks.CreateApiClient`
   
   ![image](https://user-images.githubusercontent.com/61080/216293704-01f059b5-8b3e-4ea1-86a5-0304227635c1.png)
   
   ![image](https://user-images.githubusercontent.com/61080/216293895-ae0a5ade-4c58-40b6-8227-ff32098c3514.png)
   
   We can clearly see that there is redundant code.
   
   ## Describe the solution you'd like
   
   The plan is to offer a **unified helper function** to help plugins create `ApiClient` with ease, and avoid that redundant code in the first place.
   
   
   ## Related issues
   #4027 
   


-- 
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@devlake.apache.org.apache.org

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


[GitHub] [incubator-devlake] mindlesscloud closed issue #4298: [Refactor][apihelper] Simplify and Unify ApiClient Creation Logic

Posted by "mindlesscloud (via GitHub)" <gi...@apache.org>.
mindlesscloud closed issue #4298: [Refactor][apihelper] Simplify and Unify ApiClient Creation Logic
URL: https://github.com/apache/incubator-devlake/issues/4298


-- 
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@devlake.apache.org

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