-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: store, retrieve asset.url (#209)
- Loading branch information
1 parent
c96e577
commit 495c666
Showing
10 changed files
with
74 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,6 +332,7 @@ func TestUpsertAsset(t *testing.T) { | |
Name: "new-name", | ||
Service: "kafka", | ||
Data: &structpb.Struct{}, | ||
Url: "https://sample-url.com", | ||
Owners: []*compassv1beta1.User{{Id: "id", Uuid: "", Email: "[email protected]", Provider: "provider"}}, | ||
}, | ||
Upstreams: []*compassv1beta1.LineageNode{ | ||
|
@@ -450,6 +451,7 @@ func TestUpsertAsset(t *testing.T) { | |
Service: "kafka", | ||
UpdatedBy: user.User{ID: userID}, | ||
Data: map[string]interface{}{}, | ||
URL: "https://sample-url.com", | ||
Owners: []user.User{{ID: "id", UUID: "", Email: "[email protected]", Provider: "provider"}}, | ||
} | ||
upstreams := []string{"upstream-1"} | ||
|
@@ -520,6 +522,7 @@ func TestUpsertPatchAsset(t *testing.T) { | |
Name: wrapperspb.String("new-name"), | ||
Service: "kafka", | ||
Data: &structpb.Struct{}, | ||
Url: "https://sample-url.com", | ||
Owners: []*compassv1beta1.User{{Id: "id", Uuid: "", Email: "[email protected]", Provider: "provider"}}, | ||
}, | ||
Upstreams: []*compassv1beta1.LineageNode{ | ||
|
@@ -549,6 +552,7 @@ func TestUpsertPatchAsset(t *testing.T) { | |
Service: "kafka", | ||
UpdatedBy: user.User{ID: userID}, | ||
Data: map[string]interface{}{}, | ||
URL: "https://sample-url-old.com", | ||
Owners: []user.User{{ID: "id", UUID: "", Email: "[email protected]", Provider: "provider"}}, | ||
} | ||
) | ||
|
@@ -652,6 +656,7 @@ func TestUpsertPatchAsset(t *testing.T) { | |
Service: "kafka", | ||
UpdatedBy: user.User{ID: userID}, | ||
Data: map[string]interface{}{}, | ||
URL: "https://sample-url.com", | ||
Owners: []user.User{{ID: "id", UUID: "", Email: "[email protected]", Provider: "provider"}}, | ||
} | ||
upstreams := []string{"upstream-1"} | ||
|
@@ -688,6 +693,7 @@ func TestUpsertPatchAsset(t *testing.T) { | |
Service: "kafka", | ||
UpdatedBy: user.User{ID: userID}, | ||
Data: map[string]interface{}{}, | ||
URL: "https://sample-url-old.com", | ||
Owners: []user.User{{ID: "id", UUID: "", Email: "[email protected]", Provider: "provider"}}, | ||
} | ||
|
||
|
@@ -733,6 +739,7 @@ func TestUpsertPatchAsset(t *testing.T) { | |
Service: "kafka", | ||
UpdatedBy: user.User{ID: userID}, | ||
Data: map[string]interface{}{}, | ||
URL: "https://sample-url-old.com", | ||
Owners: []user.User{{ID: "id", UUID: "", Email: "[email protected]", Provider: "provider"}}, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
internal/store/postgres/migrations/000013_alter_assets_table.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE assets DROP COLUMN IF EXISTS url; |
1 change: 1 addition & 0 deletions
1
internal/store/postgres/migrations/000013_alter_assets_table.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE assets ADD COLUMN IF NOT EXISTS url TEXT; |