fix(migration): remove unused todoist parameters
This commit is contained in:
parent
6a87d919fa
commit
c59e006453
@ -124,7 +124,6 @@ type fileAttachment struct {
|
|||||||
|
|
||||||
type note struct {
|
type note struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
PostedUID int64 `json:"posted_uid"`
|
|
||||||
ProjectID string `json:"project_id"`
|
ProjectID string `json:"project_id"`
|
||||||
ItemID string `json:"item_id"`
|
ItemID string `json:"item_id"`
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
@ -139,7 +138,6 @@ type projectNote struct {
|
|||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
IsDeleted int64 `json:"is_deleted"`
|
IsDeleted int64 `json:"is_deleted"`
|
||||||
Posted time.Time `json:"posted"`
|
Posted time.Time `json:"posted"`
|
||||||
PostedUID int64 `json:"posted_uid"`
|
|
||||||
ProjectID string `json:"project_id"`
|
ProjectID string `json:"project_id"`
|
||||||
UidsToNotify []int64 `json:"uids_to_notify"`
|
UidsToNotify []int64 `json:"uids_to_notify"`
|
||||||
}
|
}
|
||||||
|
@ -215,38 +215,33 @@ func TestConvertTodoistToVikunja(t *testing.T) {
|
|||||||
},
|
},
|
||||||
Notes: []*note{
|
Notes: []*note{
|
||||||
{
|
{
|
||||||
ID: "101476",
|
ID: "101476",
|
||||||
PostedUID: 1855589,
|
ItemID: "400000000",
|
||||||
ItemID: "400000000",
|
Content: "Lorem Ipsum dolor sit amet",
|
||||||
Content: "Lorem Ipsum dolor sit amet",
|
Posted: time1,
|
||||||
Posted: time1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "101477",
|
ID: "101477",
|
||||||
PostedUID: 1855589,
|
ItemID: "400000001",
|
||||||
ItemID: "400000001",
|
Content: "Lorem Ipsum dolor sit amet",
|
||||||
Content: "Lorem Ipsum dolor sit amet",
|
Posted: time1,
|
||||||
Posted: time1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "101478",
|
ID: "101478",
|
||||||
PostedUID: 1855589,
|
ItemID: "400000003",
|
||||||
ItemID: "400000003",
|
Content: "Lorem Ipsum dolor sit amet",
|
||||||
Content: "Lorem Ipsum dolor sit amet",
|
Posted: time1,
|
||||||
Posted: time1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "101479",
|
ID: "101479",
|
||||||
PostedUID: 1855589,
|
ItemID: "400000010",
|
||||||
ItemID: "400000010",
|
Content: "Lorem Ipsum dolor sit amet",
|
||||||
Content: "Lorem Ipsum dolor sit amet",
|
Posted: time1,
|
||||||
Posted: time1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "101480",
|
ID: "101480",
|
||||||
PostedUID: 1855589,
|
ItemID: "400000101",
|
||||||
ItemID: "400000101",
|
Content: "Lorem Ipsum dolor sit amet",
|
||||||
Content: "Lorem Ipsum dolor sit amet",
|
|
||||||
FileAttachment: &fileAttachment{
|
FileAttachment: &fileAttachment{
|
||||||
FileName: "file.md",
|
FileName: "file.md",
|
||||||
FileType: "text/plain",
|
FileType: "text/plain",
|
||||||
@ -263,35 +258,30 @@ func TestConvertTodoistToVikunja(t *testing.T) {
|
|||||||
Content: "Lorem Ipsum dolor sit amet",
|
Content: "Lorem Ipsum dolor sit amet",
|
||||||
ProjectID: "396936926",
|
ProjectID: "396936926",
|
||||||
Posted: time3,
|
Posted: time3,
|
||||||
PostedUID: 1855589,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 102001,
|
ID: 102001,
|
||||||
Content: "Lorem Ipsum dolor sit amet 2",
|
Content: "Lorem Ipsum dolor sit amet 2",
|
||||||
ProjectID: "396936926",
|
ProjectID: "396936926",
|
||||||
Posted: time3,
|
Posted: time3,
|
||||||
PostedUID: 1855589,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 102002,
|
ID: 102002,
|
||||||
Content: "Lorem Ipsum dolor sit amet 3",
|
Content: "Lorem Ipsum dolor sit amet 3",
|
||||||
ProjectID: "396936926",
|
ProjectID: "396936926",
|
||||||
Posted: time3,
|
Posted: time3,
|
||||||
PostedUID: 1855589,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 102003,
|
ID: 102003,
|
||||||
Content: "Lorem Ipsum dolor sit amet 4",
|
Content: "Lorem Ipsum dolor sit amet 4",
|
||||||
ProjectID: "396936927",
|
ProjectID: "396936927",
|
||||||
Posted: time3,
|
Posted: time3,
|
||||||
PostedUID: 1855589,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: 102004,
|
ID: 102004,
|
||||||
Content: "Lorem Ipsum dolor sit amet 5",
|
Content: "Lorem Ipsum dolor sit amet 5",
|
||||||
ProjectID: "396936927",
|
ProjectID: "396936927",
|
||||||
Posted: time3,
|
Posted: time3,
|
||||||
PostedUID: 1855589,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Reminders: []*reminder{
|
Reminders: []*reminder{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user