klesh opened a new issue, #2503: URL: https://github.com/apache/incubator-devlake/issues/2503
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar feature requirement. ### Description In reality, we have this Project concept, which may consist of different types of resources. For example, a Project could consist of a couple of Jenkins Jobs, Github Repos, and Jira boards... In order to support metrics/analysis based on the Project perspective, the mapping between Projects and Other Entities is needed for Apache DevLake. ## Plan of attack 1. Adding table `project_mapping` | project_name(varchar,pk) | table_name(varchar,pk) | row_id(varchar,pk) | | ------------------------ | ---------------------- | ------------------------------------------------------- | | Apache DevLake | repos | github:GithubRepo:1:1(apache/incubator-devlake) | | Apache DevLake | repos | github:GithubRepo:1:2(apache/incubator-devlake-website) | | Apache DevLake | jobs | jenkins:JenkinsJob:1:3(fake-jenkins) | | Apache DevLake | boards | jira:JiraBoard:1:4 | | Apache DevLake | boards | jira:JiraBoard:1:5 | 2. Adding API `GET /plugins/org/project_mapping.csv?fake_data=bool` for users to download an example or existing mapping CSV file 3. Adding API `PUT /plugins/org/project_mapping.csv` for users to update the mapping with a CSV file ### Use case 1. We or users could produce metrics based on Project ### Related issues _No response_ ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
