This commit is contained in:
kolaente 2020-12-17 01:56:08 +01:00
parent a393045208
commit 4eaa18b5c7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
5 changed files with 14 additions and 9 deletions

View File

@ -24,9 +24,6 @@ import (
"context" "context"
"crypto/sha256" "crypto/sha256"
"fmt" "fmt"
"github.com/magefile/mage/mg"
"golang.org/x/sync/errgroup"
"gopkg.in/yaml.v3"
"io" "io"
"io/ioutil" "io/ioutil"
"os" "os"
@ -35,6 +32,10 @@ import (
"runtime" "runtime"
"strings" "strings"
"time" "time"
"github.com/magefile/mage/mg"
"golang.org/x/sync/errgroup"
"gopkg.in/yaml.v3"
) )
const ( const (
@ -65,6 +66,7 @@ var (
"release:os-package": Release.OsPackage, "release:os-package": Release.OsPackage,
"dev:create-migration": Dev.CreateMigration, "dev:create-migration": Dev.CreateMigration,
"generate-docs": GenerateDocs, "generate-docs": GenerateDocs,
"check:golangci-fix": Check.GolangciFix,
} }
) )

View File

@ -209,7 +209,7 @@ func InsertFromStructure(str []*models.NamespaceWithLists, user *user.User) (err
return err return err
} }
buckets := bucketsIn.([]*models.Bucket) buckets := bucketsIn.([]*models.Bucket)
buckets[0].Delete() err = buckets[0].Delete()
if err != nil { if err != nil {
return err return err
} }

View File

@ -17,15 +17,16 @@
package trello package trello
import ( import (
"io/ioutil"
"testing"
"time"
"code.vikunja.io/api/pkg/config" "code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/files" "code.vikunja.io/api/pkg/files"
"code.vikunja.io/api/pkg/models" "code.vikunja.io/api/pkg/models"
"github.com/adlio/trello" "github.com/adlio/trello"
"github.com/d4l3k/messagediff" "github.com/d4l3k/messagediff"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"io/ioutil"
"testing"
"time"
) )
func TestConvertTrelloToVikunja(t *testing.T) { func TestConvertTrelloToVikunja(t *testing.T) {

View File

@ -17,9 +17,10 @@
package v1 package v1
import ( import (
"code.vikunja.io/api/pkg/modules/migration/trello"
"net/http" "net/http"
"code.vikunja.io/api/pkg/modules/migration/trello"
"code.vikunja.io/api/pkg/log" "code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/config" "code.vikunja.io/api/pkg/config"

View File

@ -47,10 +47,11 @@
package routes package routes
import ( import (
"code.vikunja.io/api/pkg/modules/migration/trello"
"strings" "strings"
"time" "time"
"code.vikunja.io/api/pkg/modules/migration/trello"
"code.vikunja.io/api/pkg/config" "code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/log" "code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/models" "code.vikunja.io/api/pkg/models"