xgdyp opened a new pull request, #2504: URL: https://github.com/apache/incubator-devlake/pull/2504
# Summary This PR is related to issue953. First, I create a table `component` and user can input file component relationship by operating this table including component name ,repoid,component regexp like <img width="887" alt="image" src="https://user-images.githubusercontent.com/37795442/179194988-1a045f81-4e2a-491a-8be7-ff6b1d079bc6.png"> Then I changed the primarykey in commit_files table from (commit_sha,filepath) to id(commit_sha+":"+filepath) like: <img width="1088" alt="image" src="https://user-images.githubusercontent.com/37795442/179195226-5fac2bd2-0d27-433a-9cd5-54beb4116cdc.png"> Then, I create a new table to records which component every commit_file_id belongs to. <img width="1374" alt="image" src="https://user-images.githubusercontent.com/37795442/179195444-ca294ee1-2c9e-4dd1-9df7-e5beb31c4370.png"> When user run a pipeline using gitextractor plugin, lake gets the relationship in components table and match by regexp. Then update the commit_file_component during storing commit_files ### Does this close any open issues? Please mention the issues here. closed #953 ### Other Information Really thanks to Klesh for the guidance TwT! -- 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]
