Skip to content

Rename the router file name #8184

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

Open
wants to merge 217 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
13b0b43
adding pull_request_id index to pull_request_commits/comments tables…
sstojak1 Jun 14, 2024
b6a537a
feat: add issue trace configuration for project (#7624)
mintsweet Jun 14, 2024
208fa7f
refactoring to use simple ApiCollector (#7609)
sstojak1 Jun 17, 2024
0c79f34
feat: gerrit python plugin (#6786)
matrixji Jun 17, 2024
d9318cf
refactor: hudson.maven.MavenModuleSet is now treated as a scope (#7599)
sstojak1 Jun 18, 2024
6f87e0b
Correct commits distribution days of week labels (#6971)
rlaisqls Jun 19, 2024
a69ddce
fix: correct path (#7628)
tim-goto Jun 19, 2024
1eb8903
feat: default enable project plugin and remove configuration (#7630)
mintsweet Jun 19, 2024
a7b1513
fix: link error (#7629)
mintsweet Jun 19, 2024
1e85c14
fix(migration): fix unexpected `defer unlock` (#7634)
d4x1 Jun 19, 2024
ef00433
refactor(logs): add error logs when executing migrations (#7633)
d4x1 Jun 19, 2024
9eb8017
fix: pr reviewers and assignees script version error (#7645)
abeizn Jun 21, 2024
8d0be90
fix: layout overflow error (#7648)
mintsweet Jun 21, 2024
bf5c3e9
fix: git extractor commit rawdataorigin is empty (#7658)
klesh Jun 24, 2024
12164c1
fix(gitextractor): update database store, set it incremental by defau…
d4x1 Jun 25, 2024
b355752
Add more logs and update the steps when initing app (#7662)
d4x1 Jun 25, 2024
1e09398
feat: hide dashboard icon when hiding copyright (#7669)
mintsweet Jun 26, 2024
d97a773
feat: support configuration for dashboard url (#7670)
mintsweet Jun 26, 2024
c1d74a1
feat: fix CircleCI dashboard SQLs and wording (#7673)
Startrekzky Jun 27, 2024
6c479b1
feat: weekly report dashboard (#7674)
abeizn Jun 27, 2024
aefa74f
fix: update weekly report (#7678)
Startrekzky Jun 28, 2024
2d9a152
fix: redirect url error (#7680)
mintsweet Jun 28, 2024
10b5158
fix: update the wording of the weekly report dashboard (#7682)
Startrekzky Jun 28, 2024
21efa48
fix: delete weekly report dashboard (#7685)
abeizn Jul 1, 2024
cbc2d76
feat(framework): fetch project list by keyword (#7689)
d4x1 Jul 2, 2024
9df715d
feat(github): make error message more clear when getting remote scope…
d4x1 Jul 3, 2024
255263b
fix: jira epic not collect (#7692)
abeizn Jul 3, 2024
6211126
fix(framework): case-insensitive when getting projects with keyword (…
d4x1 Jul 4, 2024
cdfd18a
refactor: merge DecodeMapStruct from api and utils packages (#7696)
klesh Jul 4, 2024
a666856
fix(zentao): make sure close_date must be before opened_date (#7699)
d4x1 Jul 8, 2024
6d96f06
Add some comments for github pr collector (#7705)
d4x1 Jul 8, 2024
d4eabc4
feat(dora): add incident related tables (#7652)
d4x1 Jul 9, 2024
251bc81
fix(sonarqube): update name field in sonar tool layer tables (#7707)
d4x1 Jul 9, 2024
8bb96b3
feat(azuredevops): support disabled Repos (#7657)
mr-ks Jul 9, 2024
aa2a0cd
feat(azuredevops): collector pr's labels to table pull_request_labels…
d4x1 Jul 9, 2024
e1cdd3c
fix: github connection.enableGraphql should be default to true (#7711)
klesh Jul 9, 2024
f6287fb
feat: add GitHub request reviewer and Merged By (#7716)
abeizn Jul 11, 2024
87ca3d0
fix: engineering overview dashboard (#7717)
Startrekzky Jul 11, 2024
5889a08
fix: addition of some commits are ridiculous huge (#7719)
klesh Jul 11, 2024
963d42e
fix: remove the dependency of the month filter (#7721)
Startrekzky Jul 11, 2024
2c80929
fix: add pr Additions and Deletions (#7714)
abeizn Jul 12, 2024
492dd61
feat(jira): collector accounts from issue changelog items as much as …
d4x1 Jul 12, 2024
7ee1e6b
fix(jira): fix `reporter` field in issue change log items (#7726)
d4x1 Jul 12, 2024
795c798
fix: new commits in other branches are not collected (#7727)
klesh Jul 12, 2024
44b3f51
fix: gitext failed to fetch (#7730)
klesh Jul 12, 2024
d7f8583
fix(jira): fix account id when there is no from/to values (#7734)
d4x1 Jul 15, 2024
09ee9ce
fix(framework): add lock when creating pipeline (#7733)
d4x1 Jul 15, 2024
e0599d1
fix(jira): fix OriginalToValue in issue_changelogs (#7737)
d4x1 Jul 15, 2024
8c5fbc1
Remove the usage of `TmpFromAccountId` and `TmpToAccountId` in Jira i…
d4x1 Jul 16, 2024
dcb3110
fix: shallow fetch might fail without message if nothing to be fetche…
klesh Jul 16, 2024
3d6f34b
fix(jira): fix wrong key in `issueFieldMap` (#7748)
d4x1 Jul 16, 2024
0ac8055
Fix dashboards (#7753)
Startrekzky Jul 17, 2024
667844e
fix: the conditions to filter new and resolved bugs (#7754)
Startrekzky Jul 17, 2024
f0be93c
fix: circleci date fields are inconsistent (#7757)
klesh Jul 17, 2024
2090fec
refactor: fetch branches before shallow fetch to reduce the total com…
klesh Jul 18, 2024
339ca29
fix(jira): set issue_assignees' assignee_name correctly (#7761)
d4x1 Jul 18, 2024
bab2856
fix(gitlab): register `ConvertIssueAssigneeMeta` (#7763)
d4x1 Jul 19, 2024
d55b84c
fix(gitextractor): sanitize git tokens (#7767)
d4x1 Jul 19, 2024
b2bd3b3
fix(helpers): use `isIncremental` instead of `SyncPolicy.FullSync` (…
d4x1 Jul 23, 2024
10e915c
adjust feat and bugfix branchto build image (#7769)
ZhangNing10 Jul 23, 2024
6dda143
adjust dockerfile to use numeric uid instead of username (#7776)
ZhangNing10 Jul 23, 2024
d975148
fix(webhook): rollback database when webhook's name is same (#7778)
d4x1 Jul 24, 2024
4baed97
fix: no error message when hideToast is true (#7777)
mintsweet Jul 24, 2024
ba5a873
feat: pr add is draft field (#7782)
abeizn Jul 25, 2024
20a7646
feat(dora): add new option `DisableIssueToIncidentGenerator` (#7783)
d4x1 Jul 25, 2024
8ee6abe
feat: remove graphql configuration from github connection (#7784)
mintsweet Jul 25, 2024
5ff39b8
fix(github): process bot account in pull_requests table (#7786)
d4x1 Jul 25, 2024
45db215
feat: bitbucket add merge by field (#7756)
abeizn Jul 25, 2024
7ac45c7
fix: circleci plugin pagination (#7770)
Nickcw6 Jul 25, 2024
2bf7f73
fix 6892 - avoid adding clause when table not present (#6943)
Marco-De-Stefani Jul 26, 2024
0f799be
fix: prevent updates to provisioned dashboards to avoid overwriting u…
klesh Jul 30, 2024
44c3ecb
fix(domainlayer): simplify codes (#7794)
d4x1 Jul 30, 2024
838cfcc
fix(plugins): fix project_mapping.table field (#7800)
d4x1 Jul 31, 2024
3a31a75
feat: add date fields to project_pr_metrics (#7799)
klesh Jul 31, 2024
a7de426
Add new fields to incidents (#7801)
d4x1 Jul 31, 2024
2ffac34
feat(dashboard): use incident tables in dashboards (#7798)
d4x1 Jul 31, 2024
f243530
fix(dora): use table incidents to make connection with deployments (#…
d4x1 Jul 31, 2024
6aa00f1
feat(incidents): add assignee_id and assignee_name fields (#7810)
d4x1 Aug 1, 2024
1198e26
feat(dashboard): use incident tables in dashboards (#7812)
d4x1 Aug 1, 2024
982427b
chore: adjust fields order for #7775 (#7815)
klesh Aug 1, 2024
c3e5f49
feat(webhook): calculate `LeadTimeMinutes` if necessary (#7814)
d4x1 Aug 1, 2024
a29825e
chore: print log when skipping github run (#7818)
klesh Aug 1, 2024
01a4cf1
fix: rename pr size to pr merged size (#7823)
abeizn Aug 2, 2024
a7d0c2c
fix(gitlab): fix issue.url (#7824)
d4x1 Aug 2, 2024
68a2e98
fix(gitlab): use weburl as issue's url (#7828)
d4x1 Aug 5, 2024
aa16e2a
feat: support more props for icon button (#7831)
mintsweet Aug 5, 2024
938e22c
fix unexpected incremental mode when re-transformating data (#7834)
d4x1 Aug 5, 2024
2566dd3
fix: not set page and pageSize for pipelines (#7830)
mintsweet Aug 6, 2024
2d9106c
fix: unnecessary refresh when changing url (#7838)
mintsweet Aug 6, 2024
ff67334
fix(dashboard): update dashboard, fix wrong sql (#7843)
d4x1 Aug 6, 2024
c64bd2d
fix(github): ignore bot account (#7845)
d4x1 Aug 6, 2024
0a4f7eb
feat: improve some description for onboard (#7840)
mintsweet Aug 6, 2024
8f80ea3
feat: update dashboard tags (#7848)
Startrekzky Aug 6, 2024
3da686d
fix(dora): add more log in task ConnectIncidentToDeployment (#7854)
d4x1 Aug 7, 2024
6cbf855
Add more log for dora task ConnectIncidentToDeployment (#7856)
d4x1 Aug 7, 2024
45a3c97
Fix errors in dora plugin (#7858)
d4x1 Aug 7, 2024
2659649
fix(gitextractor): update cli args when fetching remote repos (#7853)
d4x1 Aug 7, 2024
f17dd68
refactor(helpers): update "NewSubtaskStateManager" (#7861)
d4x1 Aug 8, 2024
5f8bffb
fix: adjust Grafana timezone handling for non-UTC databases (#7865)
abeizn Aug 8, 2024
ceec014
fix(helpers): fix concurrent map writes (#7869)
d4x1 Aug 9, 2024
9b28c76
fix(ui): correct documentation urls (#7871)
tim-goto Aug 12, 2024
9f43180
fix: activated date replace started date in sprint (#7874)
abeizn Aug 12, 2024
c50b563
feat: issue add is_subtask field (#7879)
abeizn Aug 13, 2024
4db0966
fix: jira cloud/server sprint started date (#7882)
abeizn Aug 13, 2024
6399854
fix(framework): update trigger api's request body schema (#7888)
d4x1 Aug 13, 2024
eebc005
test(jira): add e2e test for custom account field in issues (#7894)
d4x1 Aug 14, 2024
8da75d0
fix: github graphql collectors are not refetching data in incremental…
klesh Aug 14, 2024
7e97e43
Fix a couple of "Data too long" errors from sonarqube, jira, etc (#7885)
klesh Aug 14, 2024
edc2412
fix(circleci-plugin): pipeline collector time range (#7820)
Nickcw6 Aug 15, 2024
672adb0
fix: component length scripts are not working (#7900)
klesh Aug 15, 2024
98dfbbd
fix: update bug retro dashboard (#7904)
Startrekzky Aug 16, 2024
5de4908
fix: upgrade grafana to v11.0.0 (#7905)
abeizn Aug 16, 2024
7654fa9
test(gitextractor): add missing gitextractor plugins in github/gitlab…
d4x1 Aug 19, 2024
6871e15
feat: move connection delete action to connection list (#7913)
mintsweet Aug 19, 2024
b6abde7
fix: fill field_id of changelog item of Jira in tool layer (#7911) (#…
usharerose Aug 19, 2024
7246992
test(github_graphql): add missing e2e tests (#7916)
d4x1 Aug 19, 2024
3b7b850
docs: add doc for StatefulApiExtractor for developer (#7917)
klesh Aug 20, 2024
e17fc7a
feat(framework): add custom pipeline notification service (#7920)
d4x1 Aug 20, 2024
62eb416
feat: remove project name valid function (#7922)
mintsweet Aug 20, 2024
13215be
fix: updating bitbucket server reference URLs to the working url (#7921)
jmherbst Aug 21, 2024
bd83899
fix(circleci-plugin): deployments matching job name (#7910)
Nickcw6 Aug 21, 2024
09a2eb6
fix: add flush issues table data (#7929)
abeizn Aug 21, 2024
3e1069f
feat(github): add index to tool layer table _tool_github_jobs (#7932)
d4x1 Aug 21, 2024
527b0db
fix: specify default issue type to BUG in bug retro (#7935)
Startrekzky Aug 22, 2024
ba7d259
chore(dependency): update github.com/jackc/pgx/v5 to v5.6.0 (#7937)
d4x1 Aug 22, 2024
5d97e83
update github.com/jackc/puddle/v2 to latest (#7939)
d4x1 Aug 22, 2024
7d10ada
chore(python): update packages (#7942)
d4x1 Aug 22, 2024
9390452
feat: double clone against AzDo to reduce libgit2 memory footprint (#…
klesh Aug 22, 2024
566f61b
add cloud api proxy (#7948)
ZhangNing10 Aug 23, 2024
46b181e
fix: jira jql checker (#7950)
abeizn Aug 26, 2024
5f9dd3d
chore(framework): add logs when subtask is finished (#7952)
d4x1 Aug 26, 2024
054bb3e
fix(framework): fix data in _devlake_subtasks (#7959)
d4x1 Aug 27, 2024
11c21ab
fix: polish DORA dashboards (#7961)
Startrekzky Aug 27, 2024
3f1ac80
fix(gitextractor): support empty repos (#7963)
d4x1 Aug 27, 2024
d699442
fix(framework): fix sub task number (#7967)
d4x1 Aug 27, 2024
ad4424d
fix: weekly bug retro panels support time range selected (#7972)
abeizn Aug 28, 2024
fdcbea5
Revert "add cloud api proxy (#7948)" (#7975)
mintsweet Aug 28, 2024
0db95b3
fix: file level metrics dashboard (#7974)
Startrekzky Aug 28, 2024
985aee7
fix: work logs no code data (#7977)
abeizn Aug 28, 2024
1a22056
fix: revert worklogs code (#7984)
abeizn Aug 29, 2024
659f603
fix: go ci lint (#7989)
abeizn Sep 2, 2024
e78ecd7
refactor: upgrade grafana to v11.2.0 (#7993)
abeizn Sep 3, 2024
e2f943b
fix: non-git users can build devlake (#7995)
abeizn Sep 3, 2024
bb109ee
feat: add releases devops files (#7998)
abeizn Sep 4, 2024
29e9b87
feat: use new project detail layout (#8002)
mintsweet Sep 6, 2024
e573b46
feat(domain): add is_child field to table cicd_pipelines (#8006)
d4x1 Sep 6, 2024
3ce50cb
feat(gitlab): collect child pipelines (#8009)
d4x1 Sep 6, 2024
fde073a
feat(github\gitlab): doesn't init api client when re-transformating (…
d4x1 Sep 6, 2024
d74af26
Avoid panic (#8011)
d4x1 Sep 6, 2024
55135f9
refactor: use redux to rewrite onboard (#8012)
mintsweet Sep 9, 2024
247b962
fix: webhook will be deleted when disconnected from project (#8007)
mintsweet Sep 9, 2024
f1806ac
refactor: adjust redux dir and structure (#8014)
mintsweet Sep 9, 2024
79df6f2
fix: onboard initial status error (#8015)
mintsweet Sep 9, 2024
8faffc9
feat(circleci): restranformate without api client (#8019)
d4x1 Sep 10, 2024
100a2a6
refactor: use basename to replace configuration PATHS (#8021)
mintsweet Sep 10, 2024
b72d445
fix: some bugs for project layout (#8022)
mintsweet Sep 10, 2024
054b2f5
fix: deployment name too long when commits are too many (#8024)
klesh Sep 10, 2024
b2f21ba
fix: distinguish update tips (#8023)
mintsweet Sep 11, 2024
2a063b2
refactor: simplify miller columns (#8025)
mintsweet Sep 11, 2024
550002e
fix: redux initial error (#8030)
mintsweet Sep 11, 2024
c61e912
refactor: remove content about ahooks (#8031)
mintsweet Sep 11, 2024
b80340b
feat(plugins): restranformate without api client (#8034)
d4x1 Sep 11, 2024
c7df6c8
feat(azuredevops): restranformate without api client (#8035) (#8039)
d4x1 Sep 12, 2024
6b21f49
feat(framwork): add custom project service (#8041)
d4x1 Sep 12, 2024
92d3d0f
fix(project): update project's default sync policy (#8044)
d4x1 Sep 13, 2024
5da519b
feat: adjust some content for github app (#8036)
mintsweet Sep 13, 2024
545e745
chore: use weekly to replace daily collect in blueprint (#8037)
mintsweet Sep 13, 2024
a829b29
fix: updating jira storypoint field should refresh all records (#8048)
klesh Sep 13, 2024
058a951
fix: some small adjustments (#8050)
mintsweet Sep 13, 2024
f0ad6f5
fix(framework): fix finished_record count in _devlake_subtasks (#8054)
d4x1 Sep 14, 2024
65e6256
fix(utils): add new function ApiOutputAdvancedErrorWithCustomCode (#8…
d4x1 Sep 18, 2024
9c1152a
fix: increase cq_issuescomponent length to text (#8068)
abeizn Sep 19, 2024
aa01188
feat: add deployment URL mapping to webhook plugin (#8000)
ktoublanc Sep 19, 2024
b5bdc25
fix: error encode operate when updating project name (#8073)
mintsweet Sep 19, 2024
ee21e3e
fix: incomplete historical pipelines (#8072)
mintsweet Sep 19, 2024
3ad9839
feat: improve the pipeline duration display (#8071)
mintsweet Sep 19, 2024
b363355
fix: graphql collector fails on transferred issues (#8075)
abeizn Sep 19, 2024
6f0e0db
fix(migration): panic when `ExecuteMigration` fails (#8070)
d4x1 Sep 20, 2024
f8c3a46
fix: typo (#8074)
mintsweet Sep 20, 2024
d69f95c
fix: data scope doesn't display name when selecting in project (#8077)
mintsweet Sep 20, 2024
a620595
fix: dispaly < 1m when duration less than 1m (#8078)
mintsweet Sep 20, 2024
230e1f5
fix: set status to done when onboard tour close (#8079)
mintsweet Sep 20, 2024
cef7f77
fix(project): project cannot be deleted when its pipelines are not fi…
d4x1 Sep 20, 2024
e524ea7
fix: the start and end times are reversed (#8084)
mintsweet Sep 20, 2024
8949c4f
fix: version tag (#8083)
abeizn Sep 20, 2024
1c99dbc
Update error message (#8086)
d4x1 Sep 20, 2024
0ca6acf
fix: add a space for pipeline duration (#8089)
mintsweet Sep 23, 2024
bcc3c5f
fix(github-plugin): removes the processed org check to return all the…
petercort Sep 23, 2024
3367db4
refactor: CollectAccounts now uses simple ApiCollector (#8067)
sstojak1 Sep 23, 2024
9251c42
feat: use redux rewrite project detail (#8095)
mintsweet Sep 24, 2024
f3b134b
Add missing URL (#8097)
colinfrei Sep 25, 2024
323b98e
feat: improve performance of the listing-scope-config-projects-and-sc…
klesh Sep 25, 2024
fb0dd2e
feat: dora config (#8103)
abeizn Sep 25, 2024
1877da5
feat: gitlab extractors and convertors support incremental mode (#7997)
klesh Sep 27, 2024
7e1b853
feat: keep source table name as destination table name (#8108) (#8109)
usharerose Sep 27, 2024
94aaaf9
feat: simplify the miller columns (#8112)
mintsweet Sep 27, 2024
ec2a50f
fix: improve the time filters in DORA dashboards (#8114)
Startrekzky Sep 29, 2024
47a9fcd
fix(zentao): make `gitcommited` a valiad action (#8115)
d4x1 Sep 30, 2024
11db8e9
feat: check pipelines' tokens before executing/creating pipeline (#80…
d4x1 Sep 30, 2024
95734de
fix: limit the wrapper width to 960 (#8120)
mintsweet Sep 30, 2024
94fb75f
fix: rewriting to remove warnings (#8119)
mintsweet Sep 30, 2024
88a26a2
feat: adjust the menu (#8133)
mintsweet Oct 8, 2024
0b8c8ea
refactor: remove the environment variable copyright hide (#8134)
mintsweet Oct 8, 2024
c60230e
fix: #8091 sonarqube dashboard (#8137)
Startrekzky Oct 10, 2024
e856b60
SonarCloud API support (#8132)
klesh Oct 11, 2024
49d9ffc
fix(grafana): remove extra date condition that is applied together wi…
vvshulga Oct 21, 2024
98bc98b
feat(circleci-plugin): incremental data collection (#7986)
Nickcw6 Oct 21, 2024
edd7dc0
fix(gitextractor): subtask Clone Git Repo ended unexpectedly (#8136)
caioq Oct 22, 2024
f0bb123
feat: not update sub task progress if progress less than 1 pct (#8152)
narrowizard Oct 23, 2024
5235a97
feat(framework): skip to update progress of subtasks (#8154)
narrowizard Oct 23, 2024
f99d5bd
fix: onboard / configure connection's plugin name is fixed to GitHub …
klesh Oct 23, 2024
ded45ae
feat(tapd): add more log when converting unicode (#8164)
d4x1 Oct 30, 2024
76e8dfd
docs: fixes a typo (#8168)
jeffschaper Oct 31, 2024
c7db64e
docs(README): update slack link (#8170)
keidarcy Nov 1, 2024
5cd96a1
fix: update change lead time details dashboard (#8179)
Startrekzky Nov 1, 2024
3a7acd6
Fix sql string escaping (#8163)
Tonkonozhenko Nov 6, 2024
6227361
Rename the router file name
anwesh-b Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ on:
branches:
- main
- release-*
- feat-*
- bugfix-*

jobs:
build-and-push-builder:
Expand Down Expand Up @@ -122,7 +124,7 @@ jobs:
steps:
- name: Get build timestamp
id: ts
run: echo "timestamp=$(date '+%y%m%d_%H%M')" >> $GITHUB_OUTPUT
run: echo "timestamp=$(date '+%y%m%d_%H%M%S')" >> $GITHUB_OUTPUT
build-and-push-devlake:
needs: [build-devlake, build-and-push-base, get-timestamp]
name: Build and Push devlake image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
cd backend
make mock
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.53.3
working-directory: ./backend
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# https://stackoverflow.com/questions/920413/make-error-missing-separator
# https://tutorialedge.net/golang/makefiles-for-go-developers/

SHA ?= $(shell git show -s --format=%h)
TAG ?= $(shell git tag --points-at HEAD)
SHA ?= $(shell git show -s --format=%h 2>/dev/null || echo "default_SHA")
TAG ?= $(shell git tag --points-at HEAD 2>/dev/null || echo "default_TAG")
IMAGE_REPO ?= "apache"
VERSION = $(TAG)@$(SHA)

Expand All @@ -29,7 +29,7 @@ build-config-ui-image:
cd config-ui; docker build -t $(IMAGE_REPO)/devlake-config-ui:$(TAG) --file ./Dockerfile .

build-grafana-image:
cd grafana; docker build -t $(IMAGE_REPO)/devlake-dashboard:$(TAG) --file ./backend/Dockerfile .
cd grafana; docker build -t $(IMAGE_REPO)/devlake-dashboard:$(TAG) --file ./Dockerfile .

build-images: build-server-image build-config-ui-image build-grafana-image

Expand All @@ -40,7 +40,7 @@ push-config-ui-image: build-config-ui-image
docker push $(IMAGE_REPO)/devlake-config-ui:$(TAG)

push-grafana-image: build-grafana-image
docker push $(IMAGE_REPO)/devlake-dashboard:$(TAG)
docker push $(IMAGE_REPO)/devlake-dashboard:$(TAG)

push-images: push-server-image push-config-ui-image push-grafana-image

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
[![Dockerhub pulls](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fapache%2Fdevlake&query=%24.pull_count&label=Dockerhub%20pulls)](https://hub.docker.com/r/apache/devlake)
[![unit-test](https://github.com/apache/incubator-devlake/actions/workflows/test.yml/badge.svg)](https://github.com/apache/incubator-devlake/actions/workflows/test.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-devlake)](https://goreportcard.com/report/github.com/apache/incubator-devlake)
[![Slack](https://img.shields.io/badge/slack-join_chat-success.svg?logo=slack)](https://join.slack.com/t/devlake-io/shared_invite/zt-18uayb6ut-cHOjiYcBwERQ8VVPZ9cQQw)
[![Slack](https://img.shields.io/badge/slack-join_chat-success.svg?logo=slack)](https://join.slack.com/t/devlake-io/shared_invite/zt-26ulybksw-IDrJYuqY1FrdjlMMJhs53Q)
[![Twitter](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/ApacheDevLake)

</div>
Expand All @@ -46,7 +46,7 @@ Apache DevLake is used by Engineering Leads, Open Source Software Maintainers an

## 👉 Live Demos

The main way you interact with DevLake is through the integrated dashboards powered by [Grafana](https://github.com/grafana/grafana).
The main way you interact with DevLake is through the integrated dashboards powered by [Grafana](https://github.com/grafana/grafana).

[Live DORA Dashboard](https://grafana-lake.demo.devlake.io/grafana/d/qNo8_0M4z/dora?orgId=1)

Expand All @@ -58,10 +58,10 @@ The main way you interact with DevLake is through the integrated dashboards powe

DevLake supports connections to many popular development tools, including GitHub, GitLab, Jenkins, Jira, Sonarqube and more. [Here](https://devlake.apache.org/docs/Overview/SupportedDataSources) you can find all data sources supported by DevLake, their scopes, supported versions and more!


## 🚀 Getting Started

### Installation

You can set up Apache DevLake by following our step-by-step instructions for either Docker Compose or Helm. Feel free to [ask the community](#💙-community) if you get stuck at any point.

- [Install via Docker Compose](https://devlake.apache.org/docs/GettingStarted/DockerComposeSetup)
Expand Down Expand Up @@ -92,6 +92,7 @@ Once the first run of the Blueprint is completed, you can view the corresponding
If the pre-built dashboards are limited for your use cases, you can always customize or create your own metrics or dashboards with SQL.

## Contributing

Please read the [contribution guidelines](https://devlake.apache.org/community) before you make contribution. The following docs list the resources you might need to know after you decided to make contribution.

- [Create an Issue](https://devlake.apache.org/community/MakingContributions/fix-or-create-issues): Report a bug or feature request to Apache DevLake
Expand All @@ -102,15 +103,14 @@ Please read the [contribution guidelines](https://devlake.apache.org/community)

### 👩🏾‍💻 Contributing Code

If you plan to contribute code to Apache DevLake, we have instructions on how to get started with setting up your Development environemtn.
If you plan to contribute code to Apache DevLake, we have instructions on how to get started with setting up your Development environment.

- [Developer Setup Instructions](https://devlake.apache.org/docs/DeveloperManuals/DeveloperSetup)
- [Development Workflow](https://devlake.apache.org/community/MakingContributions/development-workflow)


### 📄 Contributing Documentation

One of the best ways to get started contributing is by improving DevLake's documentation.
One of the best ways to get started contributing is by improving DevLake's documentation.

- Apache DevLake's documentation is hosted at [devlake.apache.org](https://devlake.apache.org/)
- **We have a separate GitHub repository for Apache DevLake's documentation:** [github.com/apache/incubator-devlake-website](https://github.com/apache/incubator-devlake-website)
Expand All @@ -121,7 +121,7 @@ One of the best ways to get started contributing is by improving DevLake's docum

## 💙 Community

- Slack: Message us on <a href="https://join.slack.com/t/devlake-io/shared_invite/zt-18uayb6ut-cHOjiYcBwERQ8VVPZ9cQQw" target="_blank">Slack</a>
- Slack: Message us on <a href="https://join.slack.com/t/devlake-io/shared_invite/zt-26ulybksw-IDrJYuqY1FrdjlMMJhs53Q" target="_blank">Slack</a>
- Wechat Community: [Check the barcode](resources/img/wechat_community_barcode.png)

## 📄 License<a id="license"></a>
Expand Down
5 changes: 3 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ EXPOSE 8080

RUN useradd -ms /bin/bash -d /app devlake -u 1010
RUN chown -R devlake:devlake /etc/ssl/certs
USER devlake
USER 1010
ENV PYTHONUNBUFFERED=1

WORKDIR /app
Expand All @@ -145,7 +145,8 @@ VOLUME /app/logs
# Setup Python
COPY python/ /app/python/
RUN python3 -m pip install --no-cache --upgrade pip setuptools && \
python3 -m pip install --no-cache -r python/requirements.txt
python3 -m pip install --no-cache -r python/requirements.txt && \
pip install --upgrade pip

# Setup Python Poetry package manager
RUN curl -sSL https://install.python-poetry.org | python3 -
Expand Down
5 changes: 2 additions & 3 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
# https://stackoverflow.com/questions/920413/make-error-missing-separator
# https://tutorialedge.net/golang/makefiles-for-go-developers/

SHA ?= $(shell git show -s --format=%h)
TAG ?= $(shell git tag --points-at HEAD)
SHA ?= $(shell git show -s --format=%h 2>/dev/null || echo "default_SHA")
TAG ?= $(shell git tag --points-at HEAD 2>/dev/null || echo "default_TAG")
IMAGE_REPO ?= "apache"
VERSION = $(TAG)@$(SHA)
PYTHON_DIR ?= "./python"


all: build

go-dep:
Expand Down
6 changes: 5 additions & 1 deletion backend/core/dal/dal.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,12 @@ type Dal interface {
GetPrimaryKeyFields(t reflect.Type) []reflect.StructField
// RenameColumn renames column name for specified table
RenameColumn(table, oldColumnName, newColumnName string) errors.Error
// DropIndexes drops all specified tables
// ModifyColumnType modifies column type
ModifyColumnType(table, columnName, columnType string) errors.Error
// DropIndexes drops indexes by their name
DropIndexes(table string, indexes ...string) errors.Error
// DropIndex drops the index of specified column names
DropIndex(table string, columnNames ...string) errors.Error
// Dialect returns the dialect of current database
Dialect() string
// Session creates a new manual session for special scenarios
Expand Down
5 changes: 5 additions & 0 deletions backend/core/migration/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,17 @@ func (m *migratorImpl) Register(scripts []plugin.MigrationScript, comment string
}
}

func (m *migratorImpl) Info(stage string) {
m.logger.Info("[%s] pending scripts: %d, executed scripts: %d, total: %d", stage, len(m.pending), len(m.executed), len(m.scripts))
}

// Execute all registered migration script in order and mark them as executed in migration_history table
func (m *migratorImpl) Execute() errors.Error {
// sort the scripts by version
sort.Slice(m.pending, func(i, j int) bool {
return m.pending[i].script.Version() < m.pending[j].script.Version()
})
m.Info("Execute")
// execute them one by one
db := m.basicRes.GetDal()
for _, swc := range m.pending {
Expand Down
21 changes: 17 additions & 4 deletions backend/core/models/blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,22 @@ func (BlueprintScope) TableName() string {
return "_devlake_blueprint_scopes"
}

type TriggerSyncPolicy struct {
SkipCollectors bool `json:"skipCollectors"`
FullSync bool `json:"fullSync"`
}

type SyncPolicy struct {
SkipOnFail bool `json:"skipOnFail"`
SkipCollectors bool `json:"skipCollectors"`
FullSync bool `json:"fullSync"`
TimeAfter *time.Time `json:"timeAfter"`
SkipOnFail bool `json:"skipOnFail"`
TimeAfter *time.Time `json:"timeAfter"`
TriggerSyncPolicy
}

type ConnectionTokenCheckResult struct {
PluginName string `json:"pluginName" mapstructure:"pluginName"`
ConnectionID uint64 `json:"connectionId" mapstructure:"connectionId"`
Success bool `json:"success" mapstructure:"success"`
Message string `json:"message" mapstructure:"message"`
}

type ApiBlueprintConnectionTokenCheck []ConnectionTokenCheckResult
63 changes: 63 additions & 0 deletions backend/core/models/domainlayer/code/pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ limitations under the License.
package code

import (
"fmt"
"time"

"github.com/apache/incubator-devlake/core/models/domainlayer/ticket"

"github.com/apache/incubator-devlake/core/models/domainlayer"
)

Expand All @@ -41,6 +44,8 @@ type PullRequest struct {
AuthorName string `gorm:"type:varchar(100)"`
//User domainUser.User `gorm:"foreignKey:AuthorId"`
AuthorId string `gorm:"type:varchar(100)"`
MergedByName string `gorm:"type:varchar(100)"`
MergedById string `gorm:"type:varchar(100)"`
ParentPrId string `gorm:"index;type:varchar(100)"`
PullRequestKey int
CreatedDate time.Time
Expand All @@ -53,8 +58,66 @@ type PullRequest struct {
BaseRef string `gorm:"type:varchar(255)"`
BaseCommitSha string `gorm:"type:varchar(40)"`
HeadCommitSha string `gorm:"type:varchar(40)"`
Additions int
Deletions int
IsDraft bool
}

func (PullRequest) TableName() string {
return "pull_requests"
}

func (pr PullRequest) ConvertStatusToIncidentStatus() string {
switch pr.Status {
case OPEN:
return ticket.TODO
case CLOSED:
return ticket.OTHER
case MERGED:
return ticket.DONE
default:
return ticket.OTHER
}
}

func (pr PullRequest) ToIncident() (*ticket.Incident, error) {
incident := &ticket.Incident{
DomainEntity: pr.DomainEntity,
Url: pr.Url,
IncidentKey: fmt.Sprintf("%d", pr.PullRequestKey),
Title: pr.Title,
Description: pr.Description,
Status: pr.ConvertStatusToIncidentStatus(),
OriginalStatus: pr.OriginalStatus,
ResolutionDate: pr.MergedDate,
CreatedDate: &pr.CreatedDate,
OriginalEstimateMinutes: nil,
TimeSpentMinutes: nil,
TimeRemainingMinutes: nil,
CreatorId: pr.AuthorId,
CreatorName: pr.AuthorName,
ParentIncidentId: pr.ParentPrId,
Priority: "",
Severity: "",
Urgency: "",
Component: pr.Component,
OriginalProject: "",
ScopeId: pr.BaseRepoId,
Table: "repos",
AssigneeId: pr.AuthorId,
AssigneeName: pr.AuthorName,
}

if pr.MergedDate != nil {
incident.UpdatedDate = pr.MergedDate
}
if incident.UpdatedDate == nil {
incident.UpdatedDate = pr.ClosedDate
}

if pr.MergedDate != nil {
temp := uint(pr.MergedDate.Sub(pr.CreatedDate).Minutes())
incident.LeadTimeMinutes = &temp
}
return incident, nil
}
13 changes: 12 additions & 1 deletion backend/core/models/domainlayer/codequality/cq_issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type CqIssue struct {
domainlayer.DomainEntity
Rule string `gorm:"type:varchar(255)"`
Severity string `gorm:"type:varchar(100)"`
Component string `gorm:"type:varchar(255)"`
Component string
ProjectKey string `gorm:"index;type:varchar(100)"` //domain project key
Line int
Status string `gorm:"type:varchar(20)"`
Expand All @@ -52,3 +52,14 @@ type CqIssue struct {
func (CqIssue) TableName() string {
return "cq_issues"
}

type CqIssueImpact struct {
common.NoPKModel
CqIssueId string `gorm:"primaryKey;type:varchar(255)"`
SoftwareQuality string `gorm:"primaryKey;type:varchar(255)"`
Severity string `gorm:"type:varchar(100)"`
}

func (CqIssueImpact) TableName() string {
return "cq_issue_impacts"
}
2 changes: 1 addition & 1 deletion backend/core/models/domainlayer/codequality/cq_projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
var _ plugin.Scope = (*CqProject)(nil)

type CqProject struct {
domainlayer.DomainEntity
domainlayer.DomainEntityExtended
Name string `gorm:"type:varchar(255)"`
Qualifier string `gorm:"type:varchar(255)"`
Visibility string `gorm:"type:varchar(64)"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import (
"github.com/apache/incubator-devlake/core/models/domainlayer"
)

type ProjectIssueMetric struct {
type ProjectIncidentDeploymentRelationship struct {
domainlayer.DomainEntity
ProjectName string `gorm:"primaryKey;type:varchar(100)"`
DeploymentId string
}

func (ProjectIssueMetric) TableName() string {
return "project_issue_metrics"
func (ProjectIncidentDeploymentRelationship) TableName() string {
return "project_incident_deployment_relationships"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ limitations under the License.
package crossdomain

import (
"time"

"github.com/apache/incubator-devlake/core/models/domainlayer"
)

Expand All @@ -32,6 +34,12 @@ type ProjectPrMetric struct {
DeploymentCommitId string
PrDeployTime *int64
PrCycleTime *int64

FirstCommitAuthoredDate *time.Time
FirstCommentDate *time.Time
PrCreatedDate *time.Time
PrMergedDate *time.Time
PrDeployedDate *time.Time
}

func (ProjectPrMetric) TableName() string {
Expand Down
1 change: 1 addition & 0 deletions backend/core/models/domainlayer/devops/cicd_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type CICDPipeline struct {
Environment string `gorm:"type:varchar(255)"`
TaskDatesInfo
CicdScopeId string `gorm:"index;type:varchar(255)"`
IsChild bool
}

func (CICDPipeline) TableName() string {
Expand Down
10 changes: 10 additions & 0 deletions backend/core/models/domainlayer/devops/cicd_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ const (

const ENV_NAME_PATTERN = "ENV_NAME_PATTERN"

type TransformDeployment struct {
Name string `json:"name"`
URL string `json:"url"`
}

type TransformDeploymentResponse struct {
Total int `json:"total"`
Data []TransformDeployment `json:"data"`
}

type CICDTask struct {
domainlayer.DomainEntity
Name string `gorm:"type:varchar(255)"`
Expand Down
Loading