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

   ### 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.
   
   
   ### Use case
   
   Many community users asked why the environments of some deployments are 
converted to `PRODUCTION`. This is because the Scope Config has been used to 
standardize the values of field `environment` in all cicd tables, e.g. 
https://devlake.apache.org/docs/DataModels/DevLakeDomainLayerSchema#cicd_deployments
   
   To make the transformation logic more open, I suggest adding an 
`original_environment` field to all CI/CD tables.
   
   ### Description
   
   - [ ] Add an `original_environment` field to cicd_deployments
   - [ ] Add an `original_environment` field to cicd_deployment_commits
   - [ ] Value assignment logic
      - [ ] If the deployments are from GitHub/GitLab/BitBucket/Bamboo's 
deployments, set the `original_environment` with the deployments's value in the 
source tool
      - [ ] If the deployments are from CI pipelines such as GitHub workflow 
run and Jenkins builds and so on, set the `original_environment` to an empty 
string
   
   ### 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]

Reply via email to