Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ header:
- "config-ui/.yarn/**/*"
- "config-ui/yarn.lock"
- ".github/ISSUE_TEMPLATE/*.md"
- "**/.tool-versions"

comment: on-failure
8 changes: 4 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@
--------------------------------------------------------------------------------

The following icon is using Feather Icons with the MIT license:
incubator-devlake/config-ui/src/images/icons/api.svg
incubator-devlake/config-ui/src/images/icons/dashboard.svg
incubator-devlake/config-ui/src/images/icons/file.svg
incubator-devlake/config-ui/src/images/icons/clear.svg
devlake/config-ui/src/images/icons/api.svg
devlake/config-ui/src/images/icons/dashboard.svg
devlake/config-ui/src/images/icons/file.svg
devlake/config-ui/src/images/icons/clear.svg

https://feathericons.com/

Expand Down
2 changes: 1 addition & 1 deletion backend/.mockery.core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ structname: "{{.InterfaceName}}"
template-data:
unroll-variadic: false
packages:
github.com/apache/incubator-devlake/core:
github.com/apache/devlake/core:
2 changes: 1 addition & 1 deletion backend/.mockery.helpers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ structname: "{{.InterfaceName}}"
template-data:
unroll-variadic: false
packages:
github.com/apache/incubator-devlake/helpers:
github.com/apache/devlake/helpers:
6 changes: 3 additions & 3 deletions backend/DevelopmentManual.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ We have covered all the components of a DevLake plugin. Happy coding!
There are three types of test strategies:
1. Unit-tests: these are component level tests that mock dependencies. They typically exist next to the source file they're testing.
2. E2E-tests: these test plugin extractor and convertor subtasks by using faked data to simulate the result of data collection.
3. Integration-tests: these test the entire DevLake server as a whole. A [Go Client](https://github.com/apache/incubator-devlake/blob/main/backend/test/helper/api.go) ([example initialization](https://github.com/apache/incubator-devlake/blob/main/backend/test/helper/client_factory.go))
3. Integration-tests: these test the entire DevLake server as a whole. A [Go Client](https://github.com/apache/devlake/blob/main/backend/test/helper/api.go) ([example initialization](https://github.com/apache/devlake/blob/main/backend/test/helper/client_factory.go))
has been written to either interact with an existing DevLake server (via its APIs) or spin up an in-memory instance of DevLake for the purpose of testing (note you need to have
a separate database instance running). We have some integration tests written for some of our plugins (see [this](https://github.com/apache/incubator-devlake/tree/main/backend/test/e2e/manual)), which is the best
a separate database instance running). We have some integration tests written for some of our plugins (see [this](https://github.com/apache/devlake/tree/main/backend/test/e2e/manual)), which is the best
source to learn how to write these tests and interact with the client. Note that the in-memory DevLake instance directly compiles the
plugins you specify and in doing so saves a significant amount of time and overhead ([example](https://github.com/apache/incubator-devlake/blob/d717d2aa897742ab4789b9a44e9e5a4c1e28adcf/backend/test/e2e/manual/gitlab/gitlab_test.go#L62)).
plugins you specify and in doing so saves a significant amount of time and overhead ([example](https://github.com/apache/devlake/blob/d717d2aa897742ab4789b9a44e9e5a4c1e28adcf/backend/test/e2e/manual/gitlab/gitlab_test.go#L62)).

We highly encourage you to leverage the Go client to perform quick tests as you write either framework-level or plugin code.

Expand Down
6 changes: 3 additions & 3 deletions backend/core/context/basic_res.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ limitations under the License.
package context

import (
"github.com/apache/incubator-devlake/core/config"
"github.com/apache/incubator-devlake/core/dal"
"github.com/apache/incubator-devlake/core/log"
"github.com/apache/devlake/core/config"
"github.com/apache/devlake/core/dal"
"github.com/apache/devlake/core/log"
)

// BasicRes defines a set of fundamental resources that needed pretty much everywhere in our system
Expand Down
2 changes: 1 addition & 1 deletion backend/core/dal/dal.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"fmt"
"reflect"

"github.com/apache/incubator-devlake/core/errors"
"github.com/apache/devlake/core/errors"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion backend/core/dal/identifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"regexp"

"github.com/apache/incubator-devlake/core/errors"
"github.com/apache/devlake/core/errors"
)

// validIdentifierRegex matches valid SQL identifiers: alphanumeric, underscores, and dots (for schema.table)
Expand Down
4 changes: 2 additions & 2 deletions backend/core/domain_tables_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ package core
import (
"testing"

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

func Test_GetDomainTablesInfo(t *testing.T) {
Expand Down
18 changes: 9 additions & 9 deletions backend/core/migration/linter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ func main() {
"allowed-pkg",
"a",
[]string{
"github.com/apache/incubator-devlake/core/config",
"github.com/apache/incubator-devlake/core/context",
"github.com/apache/incubator-devlake/core/dal",
"github.com/apache/incubator-devlake/core/errors",
"github.com/apache/incubator-devlake/helpers/migrationhelper",
"github.com/apache/incubator-devlake/core/models/migrationscripts/archived",
"github.com/apache/incubator-devlake/core/plugin",
"github.com/apache/incubator-devlake/helpers/pluginhelper/api",
"github.com/apache/devlake/core/config",
"github.com/apache/devlake/core/context",
"github.com/apache/devlake/core/dal",
"github.com/apache/devlake/core/errors",
"github.com/apache/devlake/helpers/migrationhelper",
"github.com/apache/devlake/core/models/migrationscripts/archived",
"github.com/apache/devlake/core/plugin",
"github.com/apache/devlake/helpers/pluginhelper/api",
},
"package that allowed to be used in a migration script. e.g.: github.com/apache/incubator-devlake/core/context",
"package that allowed to be used in a migration script. e.g.: github.com/apache/devlake/core/context",
)

cmd.Run = func(cmd *cobra.Command, args []string) {
Expand Down
8 changes: 4 additions & 4 deletions backend/core/migration/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ package migration

import (
"fmt"
"github.com/apache/incubator-devlake/core/context"
"github.com/apache/incubator-devlake/core/errors"
core "github.com/apache/incubator-devlake/core/log"
"github.com/apache/incubator-devlake/core/plugin"
"github.com/apache/devlake/core/context"
"github.com/apache/devlake/core/errors"
core "github.com/apache/devlake/core/log"
"github.com/apache/devlake/core/plugin"
"sort"
"sync"
)
Expand Down
14 changes: 7 additions & 7 deletions backend/core/migration/migrator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ limitations under the License.
package migration

import (
"github.com/apache/incubator-devlake/core/dal"
"github.com/apache/incubator-devlake/core/errors"
plugin "github.com/apache/incubator-devlake/core/plugin"
"github.com/apache/incubator-devlake/helpers/unithelper"
"github.com/apache/incubator-devlake/impls/context"
mockdal "github.com/apache/incubator-devlake/mocks/core/dal"
mockplugin "github.com/apache/incubator-devlake/mocks/core/plugin"
"github.com/apache/devlake/core/dal"
"github.com/apache/devlake/core/errors"
plugin "github.com/apache/devlake/core/plugin"
"github.com/apache/devlake/helpers/unithelper"
"github.com/apache/devlake/impls/context"
mockdal "github.com/apache/devlake/mocks/core/dal"
mockplugin "github.com/apache/devlake/mocks/core/plugin"
"testing"
"time"

Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/api_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package models

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package models
import (
"time"

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

const (
Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/common/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package common
import (
"time"

"github.com/apache/incubator-devlake/core/dal"
"github.com/apache/devlake/core/dal"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/common/cst_time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"testing"
"time"

"github.com/apache/incubator-devlake/core/errors"
"github.com/apache/devlake/core/errors"

"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions backend/core/models/domainlayer/code/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ package code
import (
"time"

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

type Commit struct {
Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/domainlayer/code/commit_parent.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package code

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

type CommitParent struct {
Expand Down
4 changes: 2 additions & 2 deletions backend/core/models/domainlayer/code/pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ package code

import (
"fmt"
"github.com/apache/incubator-devlake/core/models/domainlayer/ticket"
"github.com/apache/devlake/core/models/domainlayer/ticket"
"time"

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

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package code

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

type PullRequestAssignee struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package code
import (
"time"

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

type PullRequestComment struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package code
import (
"time"

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

type PullRequestCommit struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package code

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

// Please note that Issue Labels can also apply to Pull Requests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package code

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

type PullRequestReviewer struct {
Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/domainlayer/code/ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package code
import (
"time"

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

type Ref struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package code

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

// multi pk
Expand Down
4 changes: 2 additions & 2 deletions backend/core/models/domainlayer/code/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ limitations under the License.
package code

import (
"github.com/apache/incubator-devlake/core/models/domainlayer"
"github.com/apache/incubator-devlake/core/plugin"
"github.com/apache/devlake/core/models/domainlayer"
"github.com/apache/devlake/core/plugin"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/domainlayer/code/repo_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package code

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

type RepoCommit struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package codequality

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

type CqFileMetrics struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.

package codequality

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

type CqIssueCodeBlock struct {
domainlayer.DomainEntity
Expand Down
4 changes: 2 additions & 2 deletions backend/core/models/domainlayer/codequality/cq_issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ limitations under the License.
package codequality

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

type CqIssue struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package codequality
import (
"time"

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

type CqProjectMetricsHistory struct {
Expand Down
6 changes: 3 additions & 3 deletions backend/core/models/domainlayer/codequality/cq_projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ limitations under the License.
package codequality

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/incubator-devlake/core/models/domainlayer"
"github.com/apache/incubator-devlake/core/plugin"
"github.com/apache/devlake/core/models/common"
"github.com/apache/devlake/core/models/domainlayer"
"github.com/apache/devlake/core/plugin"
)

var _ plugin.Scope = (*CqProject)(nil)
Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/domainlayer/crossdomain/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package crossdomain
import (
"time"

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

type Account struct {
Expand Down
2 changes: 1 addition & 1 deletion backend/core/models/domainlayer/crossdomain/board_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package crossdomain

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

type BoardRepo struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package crossdomain

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

type IssueCommit struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package crossdomain

import (
"github.com/apache/incubator-devlake/core/models/common"
"github.com/apache/devlake/core/models/common"
)

type IssueRepoCommit struct {
Expand Down
Loading
Loading