Skip to content

Initial Agendrix test setup #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions backend/plugins/jira/tasks/issue_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ func extractIssues(data *JiraTaskData, mappings *typeMappings, apiIssue *apiv2mo
if issue.StdType == "" {
issue.StdType = strings.ToUpper(issue.Type)
}

// AGENDRIX: Check if this is a Bug issue with Blocker custom field - mark as INCIDENT for DORA metrics
if issue.Type == "Bug" {
if customField, exists := apiIssue.Fields.AllFields["customfield_10070"]; exists {
if customFieldMap, ok := customField.(map[string]interface{}); ok {
if value, valueExists := customFieldMap["value"]; valueExists {
if valueStr, isString := value.(string); isString && valueStr == "Blocker" {
issue.StdType = "INCIDENT"
}
}
}
}
}
issue.StdStatus = getStdStatus(issue.StatusKey)
if value, ok := mappings.StandardStatusMappings[issue.Type][issue.StatusKey]; ok {
issue.StdStatus = value.StandardStatus
Expand Down
36 changes: 18 additions & 18 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
version: "3"
services:
mysql:
image: mysql:8
volumes:
- mysql-storage:/var/lib/mysql
- ./mysql-config/my.cnf:/etc/mysql/conf.d/custom.cnf
restart: always
ports:
- 3306:3306
Expand All @@ -27,23 +27,23 @@ services:
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
TZ: UTC
TZ: America/New_York
command: --character-set-server=utf8mb4
--collation-server=utf8mb4_bin
--skip-log-bin

postgres:
image: postgres:14.2
volumes:
- postgres-storage:/var/lib/postgresql
restart: always
ports:
- 5432:5432
environment:
POSTGRES_DB: lake
POSTGRES_USER: merico
POSTGRES_PASSWORD: merico
TZ: UTC
# postgres:
# image: postgres:14.2
# volumes:
# - postgres-storage:/var/lib/postgresql
# restart: always
# ports:
# - 5432:5432
# environment:
# POSTGRES_DB: lake
# POSTGRES_USER: merico
# POSTGRES_PASSWORD: merico
# TZ: America/New_York

grafana:
image: devlake.docker.scarf.sh/apache/devlake-dashboard:latest
Expand All @@ -54,7 +54,7 @@ services:
volumes:
- grafana-storage:/var/lib/grafana
environment:
GF_SERVER_ROOT_URL: "http://localhost:4000/grafana"
GF_SERVER_ROOT_URL: "http://localhost:4001/grafana"
GF_USERS_DEFAULT_THEME: "light"
MYSQL_URL: mysql:3306
MYSQL_DATABASE: lake
Expand Down Expand Up @@ -91,7 +91,7 @@ services:
build:
context: "config-ui"
ports:
- 4000:4000
- 4001:4000
env_file:
- ./.env
environment:
Expand Down Expand Up @@ -121,13 +121,13 @@ services:
# OAUTH2_PROXY_OIDC_JWKS_URL:
# OAUTH2_PROXY_CLIENT_ID:
# OAUTH2_PROXY_CLIENT_SECRET:
# OAUTH2_PROXY_UPSTREAMS: http://localhost:4000
# OAUTH2_PROXY_UPSTREAMS: http://localhost:4001
# OAUTH2_PROXY_HTTP_ADDRESS: http://0.0.0.0:4180
# OAUTH2_PROXY_REVERSE_PROXY: 'true'
# OAUTH2_PROXY_SKIP_AUTH_ROUTES: ^/grafana.*

volumes:
mysql-storage:
# postgres-storage:
grafana-storage:
postgres-storage:
devlake-log:
Loading