This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a change to branch fix#6316-byfile
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
from 540d7d2db fix: update some params
add c0477f8dd feat(schema): add `original_status` and `original_result`
fields to all related devops tables (#6476)
add df1a1b928 Complete #5643 Not returning the tokens or passwords on APIs
(#6494)
add 37c61091d refactor(config-ui): use new ui tooltip to replace old
(#6502)
add 8965ceee7 feat(config-ui): unify the scope config style of the plug-in
(#6503)
add 3efad6ab9 fix(config-ui): missed key of header links (#6504)
add 4453aa51d feat: Opsgenie plugin implementation (#6154)
add 9157c74f7 fix(config-ui): adjust the code before pr merged (#6512)
add 0678ad290 feat(bamboo): return simple error message when license has
expired (#6511)
add 2cb0321e2 fix: panic during github_graphql task when grabbing
deployments (#6513)
add 198665326 fix: yarn library license issues (#6483)
add 280ec251a Merge branch 'main' into fix#6316-byfile
No new revisions were added by this update.
Summary of changes:
LICENSE | 31 +-
.../models/domainlayer/devops/cicd_deployment.go | 20 +-
.../domainlayer/devops/cicd_deployment_commit.go | 22 +-
.../models/domainlayer/devops/cicd_pipeline.go | 20 +-
.../core/models/domainlayer/devops/cicd_task.go | 22 +-
backend/core/models/locking.go | 2 +-
..._original_status_and_result_to_devops_tables.go | 89 ++
backend/core/models/migrationscripts/register.go | 1 +
backend/helpers/pluginhelper/api/api_extractor.go | 2 +-
.../pluginhelper/api/ds_connection_api_helper.go | 9 +-
backend/helpers/pluginhelper/api/ds_helper.go | 9 +-
.../pluginhelper/api/ds_scope_api_helper.go | 8 +-
.../pluginhelper/api/ds_scope_config_api_helper.go | 9 +-
.../helpers/pluginhelper/api/model_api_helper.go | 35 +-
backend/plugins/ae/api/connection.go | 74 +-
backend/plugins/ae/impl/impl.go | 3 +
backend/plugins/ae/models/connection.go | 5 +
backend/plugins/bamboo/api/connection.go | 73 +-
.../snapshot_tables/cicd_deployment_commits.csv | 30 +-
.../e2e/snapshot_tables/cicd_deployments.csv | 30 +-
.../bamboo/e2e/snapshot_tables/cicd_pipelines.csv | 34 +-
.../bamboo/e2e/snapshot_tables/cicd_tasks.csv | 16 +-
backend/plugins/bamboo/impl/impl.go | 3 +
backend/plugins/bamboo/models/connection.go | 10 +
.../plugins/bamboo/tasks/deploy_build_collector.go | 2 +-
.../plugins/bamboo/tasks/deploy_build_convertor.go | 14 +-
backend/plugins/bamboo/tasks/deploy_collector.go | 2 +-
.../plugins/bamboo/tasks/job_build_collector.go | 2 +-
.../plugins/bamboo/tasks/job_build_convertor.go | 4 +-
backend/plugins/bamboo/tasks/job_collector.go | 2 +-
.../plugins/bamboo/tasks/plan_build_collector.go | 2 +-
.../plugins/bamboo/tasks/plan_build_convertor.go | 3 +-
.../plugins/bamboo/tasks/plan_build_extractor.go | 2 +-
backend/plugins/bamboo/tasks/shared.go | 11 +
backend/plugins/bitbucket/api/connection.go | 89 +-
backend/plugins/bitbucket/e2e/deployments_test.go | 4 +
.../plugins/bitbucket/e2e/pipeline_steps_test.go | 2 +
backend/plugins/bitbucket/e2e/pipelines_test.go | 2 +
.../cicd_deployment_commits_for_deployment.csv | 56 +-
.../cicd_deployments_for_deployment.csv | 56 +-
.../e2e/snapshot_tables/cicd_pipelines.csv | 46 +-
.../bitbucket/e2e/snapshot_tables/cicd_tasks.csv | 54 +-
backend/plugins/bitbucket/impl/impl.go | 3 +
backend/plugins/bitbucket/models/connection.go | 10 +
.../bitbucket/tasks/deployment_convertor.go | 19 +-
.../plugins/bitbucket/tasks/pipeline_convertor.go | 14 +-
.../bitbucket/tasks/pipeline_steps_convertor.go | 4 +-
backend/plugins/circleci/api/connection.go | 83 +-
.../e2e/snapshot_tables/cicd_pipelines.csv | 20 +-
.../circleci/e2e/snapshot_tables/cicd_tasks.csv | 20 +-
backend/plugins/circleci/impl/impl.go | 3 +
backend/plugins/circleci/models/connection.go | 5 +
backend/plugins/circleci/tasks/job_converter.go | 1 +
.../plugins/circleci/tasks/workflow_converter.go | 1 +
.../dora/tasks/deployment_commits_generator.go | 6 +
backend/plugins/feishu/api/connection.go | 70 +-
backend/plugins/feishu/impl/impl.go | 3 +
backend/plugins/feishu/models/connection.go | 10 +
backend/plugins/gitee/api/connection.go | 89 +-
backend/plugins/gitee/impl/impl.go | 3 +
backend/plugins/gitee/models/connection.go | 10 +
backend/plugins/github/api/connection_api.go | 158 ++-
backend/plugins/github/api/init.go | 8 +-
.../snapshot_tables/cicd_deployment_commits.csv | 24 +-
.../e2e/snapshot_tables/cicd_deployments.csv | 24 +-
.../github/e2e/snapshot_tables/cicd_pipelines.csv | 72 +-
.../github/e2e/snapshot_tables/cicd_tasks.csv | 72 +-
backend/plugins/github/impl/impl.go | 3 +
backend/plugins/github/models/connection.go | 9 +-
backend/plugins/github/tasks/cicd_job_convertor.go | 2 +
backend/plugins/github/tasks/cicd_run_convertor.go | 2 +
backend/plugins/github/tasks/cicd_run_extractor.go | 41 +-
.../plugins/github/tasks/deployment_convertor.go | 17 +-
.../tasks/deployment_collector_extractor.go | 5 -
backend/plugins/gitlab/api/connection_api.go | 69 +-
backend/plugins/gitlab/api/init.go | 5 +
.../snapshot_tables/cicd_deployment_commits.csv | 18 +-
.../e2e/snapshot_tables/cicd_deployments.csv | 18 +-
.../gitlab/e2e/snapshot_tables/cicd_pipelines.csv | 60 +-
.../gitlab/e2e/snapshot_tables/cicd_tasks.csv | 152 +-
.../snapshot_tables/cicd_tasks_no_prod_regex.csv | 152 +-
backend/plugins/gitlab/impl/impl.go | 3 +
backend/plugins/gitlab/models/connection.go | 10 +
.../plugins/gitlab/tasks/deployment_convertor.go | 17 +-
backend/plugins/gitlab/tasks/job_convertor.go | 10 +-
backend/plugins/gitlab/tasks/pipeline_convertor.go | 11 +-
backend/plugins/jenkins/api/connection.go | 91 +-
backend/plugins/jenkins/e2e/builds_test.go | 4 +
.../jenkins/e2e/snapshot_tables/cicd_pipelines.csv | 28 +-
.../jenkins/e2e/snapshot_tables/cicd_tasks.csv | 26 +-
.../snapshot_tables/cicd_tasks_after_stages.csv | 30 +-
backend/plugins/jenkins/e2e/stages_test.go | 2 +
backend/plugins/jenkins/impl/impl.go | 3 +
backend/plugins/jenkins/models/connection.go | 10 +
.../plugins/jenkins/tasks/build_cicd_convertor.go | 43 +-
backend/plugins/jenkins/tasks/stage_convertor.go | 22 +-
backend/plugins/jira/api/connection.go | 96 +-
backend/plugins/jira/impl/impl.go | 3 +
backend/plugins/jira/models/connection.go | 11 +
backend/plugins/opsgenie/api/blueprint_v200.go | 119 ++
.../{pagerduty => opsgenie}/api/connection.go | 95 +-
backend/plugins/{github => opsgenie}/api/init.go | 33 +-
backend/plugins/opsgenie/api/remote.go | 211 +++
backend/plugins/opsgenie/api/scope.go | 111 ++
.../connection.go => opsgenie/api/swagger.go} | 26 +-
backend/plugins/opsgenie/e2e/incident_test.go | 143 ++
.../e2e/raw_tables/_raw_opsgenie_incidents.csv | 3 +
.../e2e/raw_tables/_raw_opsgenie_teams.csv | 3 +
.../e2e/raw_tables/_raw_opsgenie_users.csv | 2 +
.../snapshot_tables/_tool_opsgenie_assignments.csv | 5 +
.../snapshot_tables/_tool_opsgenie_incidents.csv | 3 +
.../snapshot_tables/_tool_opsgenie_responders.csv | 3 +
.../e2e/snapshot_tables/_tool_opsgenie_teams.csv | 3 +
.../e2e/snapshot_tables/_tool_opsgenie_users.csv | 2 +
.../e2e/snapshot_tables/issue_assignees.csv | 5 +
.../opsgenie/e2e/snapshot_tables/issues.csv | 3 +
.../plugins/opsgenie/e2e/snapshot_tables/teams.csv | 3 +
.../plugins/opsgenie/e2e/snapshot_tables/users.csv | 2 +
.../plugins/{pagerduty => opsgenie}/impl/impl.go | 105 +-
.../models/assignment.go} | 21 +-
.../{pagerduty => opsgenie}/models/connection.go | 26 +-
.../connection.go => opsgenie/models/incident.go} | 46 +-
.../migrationscripts/20221115_add_init_tables.go} | 40 +-
.../20230123_add_connection_fields.go | 51 +
.../20230203_add_endpoint_proxy_to_conn.go | 50 +
.../20230203_add_transformation_rules.go} | 37 +-
.../migrationscripts/20230531_scope_config.go | 56 +
.../20230605_remove_scope_config.go} | 25 +-
.../20230630_add_raw_param_table_for_scopes.go | 81 ++
.../migrationscripts/archived/assignment.go} | 23 +-
.../migrationscripts/archived}/connection.go | 22 +-
.../models/migrationscripts/archived/incident.go} | 32 +-
.../models/migrationscripts/archived/responder.go} | 27 +-
.../models/migrationscripts/archived/service.go} | 29 +-
.../models/migrationscripts/archived/team.go} | 26 +-
.../archived/transformation_rules.go} | 22 +-
.../models/migrationscripts/archived/user.go} | 26 +-
.../models/migrationscripts/register.go} | 29 +-
backend/plugins/opsgenie/models/raw/incident.go | 45 +
.../models/raw/service.go} | 31 +-
.../connection.go => opsgenie/models/raw/team.go} | 28 +-
.../connection.go => opsgenie/models/raw/user.go} | 40 +-
.../connection.go => opsgenie/models/responder.go} | 23 +-
.../models/scope_config.go} | 20 +-
backend/plugins/opsgenie/models/service.go | 69 +
.../connection.go => opsgenie/models/team.go} | 22 +-
.../connection.go => opsgenie/models/user.go} | 22 +-
.../models/connection.go => opsgenie/opsgenie.go} | 28 +-
.../plugins/opsgenie/tasks/incidents_collector.go | 136 ++
.../plugins/opsgenie/tasks/incidents_converter.go | 168 +++
.../plugins/opsgenie/tasks/incidents_extractor.go | 95 ++
.../plugins/opsgenie/tasks/service_converter.go | 83 ++
.../connection.go => opsgenie/tasks/shared.go} | 25 +-
backend/plugins/opsgenie/tasks/task_data.go | 88 ++
backend/plugins/opsgenie/tasks/teams_collector.go | 69 +
backend/plugins/opsgenie/tasks/teams_convertor.go | 82 ++
backend/plugins/opsgenie/tasks/teams_extractor.go | 70 +
backend/plugins/opsgenie/tasks/users_collector.go | 80 ++
backend/plugins/opsgenie/tasks/users_convertor.go | 82 ++
backend/plugins/opsgenie/tasks/users_extractor.go | 70 +
backend/plugins/pagerduty/api/connection.go | 73 +-
backend/plugins/pagerduty/impl/impl.go | 3 +
backend/plugins/pagerduty/models/connection.go | 5 +
backend/plugins/slack/api/connection.go | 69 +-
backend/plugins/slack/impl/impl.go | 3 +
backend/plugins/slack/models/connection.go | 10 +
backend/plugins/sonarqube/api/connection.go | 87 +-
backend/plugins/sonarqube/impl/impl.go | 3 +
backend/plugins/sonarqube/models/connection.go | 10 +
backend/plugins/table_info_test.go | 2 +
backend/plugins/tapd/api/connection.go | 86 +-
backend/plugins/tapd/impl/impl.go | 3 +
backend/plugins/tapd/models/connection.go | 10 +
backend/plugins/teambition/api/connection.go | 85 +-
backend/plugins/teambition/impl/impl.go | 3 +
backend/plugins/teambition/models/connection.go | 10 +
backend/plugins/trello/api/connection.go | 87 +-
backend/plugins/trello/impl/impl.go | 3 +
backend/plugins/trello/models/connection.go | 10 +
backend/plugins/webhook/api/deployments.go | 2 +
backend/plugins/zentao/api/connection.go | 92 +-
backend/plugins/zentao/impl/impl.go | 3 +
backend/plugins/zentao/models/connection.go | 33 +
config-ui/.yarn/releases/yarn-3.4.1.cjs | 13 +
.../src/components/tooltip/help-tooltip/index.tsx | 17 +-
.../fields/additional-settings.tsx | 98 --
.../components/scope-config-form/fields/styled.ts | 53 -
.../plugins/components/scope-config-form/index.tsx | 130 +-
config-ui/src/plugins/register/azure/styled.ts | 63 -
.../src/plugins/register/azure/transformation.tsx | 218 +--
.../src/plugins/register/bamboo/transformation.tsx | 105 +-
config-ui/src/plugins/register/bitbucket/styled.ts | 75 -
.../plugins/register/bitbucket/transformation.tsx | 282 ++--
.../src/plugins/register/github/transformation.tsx | 128 +-
config-ui/src/plugins/register/gitlab/styled.ts | 38 -
.../src/plugins/register/gitlab/transformation.tsx | 103 +-
config-ui/src/plugins/register/index.ts | 2 +
config-ui/src/plugins/register/jenkins/styled.ts | 62 -
.../plugins/register/jenkins/transformation.tsx | 172 +--
config-ui/src/plugins/register/jira/styled.ts | 46 -
.../src/plugins/register/jira/transformation.tsx | 273 ++--
.../src/plugins/register/opsgenie/assets/icon.svg | 28 +
.../register/{zentao => opsgenie}/config.tsx | 51 +-
.../opsgenie/connection-fields/endpoint.tsx} | 48 +-
.../opsgenie/connection-fields}/index.ts | 2 +-
.../connection-fields/styled.ts | 0
.../register/{pagerduty => opsgenie}/index.ts | 0
.../src/plugins/register/pagerduty/config.tsx | 2 +-
.../src/plugins/register/sonarqube/config.tsx | 2 +-
config-ui/src/plugins/register/tapd/config.tsx | 2 +-
config-ui/src/plugins/register/tapd/styled.ts | 47 -
.../src/plugins/register/tapd/transformation.tsx | 406 +++---
config-ui/src/plugins/register/zentao/config.tsx | 2 +-
config-ui/src/routes/connection/connections.tsx | 15 +-
config-ui/src/routes/layout/layout.tsx | 10 +-
grafana/dashboards/Opsgenie.json | 1454 ++++++++++++++++++++
216 files changed, 7318 insertions(+), 2861 deletions(-)
create mode 100644
backend/core/models/migrationscripts/20231116_add_original_status_and_result_to_devops_tables.go
create mode 100644 backend/plugins/opsgenie/api/blueprint_v200.go
copy backend/plugins/{pagerduty => opsgenie}/api/connection.go (60%)
copy backend/plugins/{github => opsgenie}/api/init.go (67%)
create mode 100644 backend/plugins/opsgenie/api/remote.go
create mode 100644 backend/plugins/opsgenie/api/scope.go
copy backend/plugins/{tapd/models/connection.go => opsgenie/api/swagger.go}
(58%)
create mode 100644 backend/plugins/opsgenie/e2e/incident_test.go
create mode 100644
backend/plugins/opsgenie/e2e/raw_tables/_raw_opsgenie_incidents.csv
create mode 100644
backend/plugins/opsgenie/e2e/raw_tables/_raw_opsgenie_teams.csv
create mode 100644
backend/plugins/opsgenie/e2e/raw_tables/_raw_opsgenie_users.csv
create mode 100644
backend/plugins/opsgenie/e2e/snapshot_tables/_tool_opsgenie_assignments.csv
create mode 100644
backend/plugins/opsgenie/e2e/snapshot_tables/_tool_opsgenie_incidents.csv
create mode 100644
backend/plugins/opsgenie/e2e/snapshot_tables/_tool_opsgenie_responders.csv
create mode 100644
backend/plugins/opsgenie/e2e/snapshot_tables/_tool_opsgenie_teams.csv
create mode 100644
backend/plugins/opsgenie/e2e/snapshot_tables/_tool_opsgenie_users.csv
create mode 100644
backend/plugins/opsgenie/e2e/snapshot_tables/issue_assignees.csv
create mode 100644 backend/plugins/opsgenie/e2e/snapshot_tables/issues.csv
create mode 100644 backend/plugins/opsgenie/e2e/snapshot_tables/teams.csv
create mode 100644 backend/plugins/opsgenie/e2e/snapshot_tables/users.csv
copy backend/plugins/{pagerduty => opsgenie}/impl/impl.go (65%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/assignment.go} (59%)
copy backend/plugins/{pagerduty => opsgenie}/models/connection.go (68%)
copy backend/plugins/{bitbucket/models/connection.go =>
opsgenie/models/incident.go} (52%)
copy backend/plugins/{circleci/models/connection.go =>
opsgenie/models/migrationscripts/20221115_add_init_tables.go} (53%)
create mode 100644
backend/plugins/opsgenie/models/migrationscripts/20230123_add_connection_fields.go
create mode 100644
backend/plugins/opsgenie/models/migrationscripts/20230203_add_endpoint_proxy_to_conn.go
copy backend/plugins/{circleci/models/connection.go =>
opsgenie/models/migrationscripts/20230203_add_transformation_rules.go} (50%)
create mode 100644
backend/plugins/opsgenie/models/migrationscripts/20230531_scope_config.go
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/migrationscripts/20230605_remove_scope_config.go} (58%)
create mode 100644
backend/plugins/opsgenie/models/migrationscripts/20230630_add_raw_param_table_for_scopes.go
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/migrationscripts/archived/assignment.go} (58%)
copy backend/plugins/{tapd/models =>
opsgenie/models/migrationscripts/archived}/connection.go (58%)
copy backend/{core/models/domainlayer/devops/cicd_deployment.go =>
plugins/opsgenie/models/migrationscripts/archived/incident.go} (60%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/migrationscripts/archived/responder.go} (57%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/migrationscripts/archived/service.go} (58%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/migrationscripts/archived/team.go} (57%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/migrationscripts/archived/transformation_rules.go} (58%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/migrationscripts/archived/user.go} (57%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/migrationscripts/register.go} (58%)
create mode 100644 backend/plugins/opsgenie/models/raw/incident.go
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/raw/service.go} (57%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/raw/team.go} (57%)
copy backend/plugins/{jenkins/models/connection.go =>
opsgenie/models/raw/user.go} (54%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/responder.go} (59%)
copy backend/plugins/{tapd/models/connection.go =>
opsgenie/models/scope_config.go} (58%)
create mode 100644 backend/plugins/opsgenie/models/service.go
copy backend/plugins/{tapd/models/connection.go => opsgenie/models/team.go}
(59%)
copy backend/plugins/{tapd/models/connection.go => opsgenie/models/user.go}
(59%)
copy backend/plugins/{jenkins/models/connection.go => opsgenie/opsgenie.go}
(54%)
create mode 100644 backend/plugins/opsgenie/tasks/incidents_collector.go
create mode 100644 backend/plugins/opsgenie/tasks/incidents_converter.go
create mode 100644 backend/plugins/opsgenie/tasks/incidents_extractor.go
create mode 100644 backend/plugins/opsgenie/tasks/service_converter.go
copy backend/plugins/{tapd/models/connection.go => opsgenie/tasks/shared.go}
(57%)
create mode 100644 backend/plugins/opsgenie/tasks/task_data.go
create mode 100644 backend/plugins/opsgenie/tasks/teams_collector.go
create mode 100644 backend/plugins/opsgenie/tasks/teams_convertor.go
create mode 100644 backend/plugins/opsgenie/tasks/teams_extractor.go
create mode 100644 backend/plugins/opsgenie/tasks/users_collector.go
create mode 100644 backend/plugins/opsgenie/tasks/users_convertor.go
create mode 100644 backend/plugins/opsgenie/tasks/users_extractor.go
delete mode 100644
config-ui/src/plugins/components/scope-config-form/fields/additional-settings.tsx
delete mode 100644
config-ui/src/plugins/components/scope-config-form/fields/styled.ts
delete mode 100644 config-ui/src/plugins/register/azure/styled.ts
delete mode 100644 config-ui/src/plugins/register/bitbucket/styled.ts
delete mode 100644 config-ui/src/plugins/register/gitlab/styled.ts
delete mode 100644 config-ui/src/plugins/register/jenkins/styled.ts
delete mode 100644 config-ui/src/plugins/register/jira/styled.ts
create mode 100644 config-ui/src/plugins/register/opsgenie/assets/icon.svg
copy config-ui/src/plugins/register/{zentao => opsgenie}/config.tsx (53%)
copy config-ui/src/{components/tooltip/help-tooltip/index.tsx =>
plugins/register/opsgenie/connection-fields/endpoint.tsx} (50%)
rename config-ui/src/plugins/{components/scope-config-form/fields =>
register/opsgenie/connection-fields}/index.ts (95%)
copy config-ui/src/plugins/register/{github =>
opsgenie}/connection-fields/styled.ts (100%)
copy config-ui/src/plugins/register/{pagerduty => opsgenie}/index.ts (100%)
delete mode 100644 config-ui/src/plugins/register/tapd/styled.ts
create mode 100644 grafana/dashboards/Opsgenie.json