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

   ## Description
   Look at the codes below.
   
   models/***meeting_top_user_item***.go
   models/migrationscripts/archived/***meeting_top_user_item***.go
   ```go
   ……
   
   type Feishu***MeetingTopUserItem*** struct {
       ……
   }
   
   func (Feishu***MeetingTopUserItem***) TableName() string {
        return "_tool_feishu_***meeting_top_user_items***"
   }
   ```
   
   tasks/***meeting_top_user_item***_collector.go
   ```go
   var _ core.SubTaskEntryPoint = Collect***MeetingTopUserItem***
   
   func Collect***MeetingTopUserItem***(taskCtx core.SubTaskContext) error {
        ……
   }
   
   var Collect***MeetingTopUserItem***Meta = core.SubTaskMeta{
        Name:             "collect***MeetingTopUserItem***",
        EntryPoint:       Collect***MeetingTopUserItem***,
        EnabledByDefault: true,
        Description:      "Collect ***top user meeting data*** from Feishu api",
   }
   ```
   
   tasks/***meeting_top_user_item***_extractor.go
   ```go
   var _ core.SubTaskEntryPoint = Extract***MeetingTopUserItem***
   
   func Extract***MeetingTopUserItem***(taskCtx core.SubTaskContext) error {
           ……
   }
   
   var Extract***MeetingTopUserItem***Meta = core.SubTaskMeta{
        Name:             "extract***MeetingTopUser***Item",
        EntryPoint:       Extract***MeetingTopUser***Item,
        EnabledByDefault: true,
        Description:      "Extrat raw top user meeting data into tool layer 
table ***feishu_meeting_top_user_item***",
   }
   
   ```
   
   Let's count how many `meetingTopUser` appear. It's 21 times.
   
   ## Describe the solution you'd like
   Delete unnecessary define. Such as  replacing`Description` by `Extrat raw 
${Name}`, replacing `Name` to `${EntryPoint}`.
   move func `CollectMeetingTopUserItem` to 
`CollectMeetingTopUserItemMeta`.`handler`.


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

Reply via email to