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"
"crypto/sha256"
"fmt"
"github.com/magefile/mage/mg"
"golang.org/x/sync/errgroup"
"gopkg.in/yaml.v3"
"io"
"io/ioutil"
"os"
@ -35,6 +32,10 @@ import (
"runtime"
"strings"
"time"
"github.com/magefile/mage/mg"
"golang.org/x/sync/errgroup"
"gopkg.in/yaml.v3"
)
const (
@ -65,6 +66,7 @@ var (
"release:os-package": Release.OsPackage,
"dev:create-migration": Dev.CreateMigration,
"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
}
buckets := bucketsIn.([]*models.Bucket)
buckets[0].Delete()
err = buckets[0].Delete()
if err != nil {
return err
}

View File

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

View File

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

View File

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