Skip to content

Commit 700d08f

Browse files
authored
chore: update extractors descriptions (#467)
* chore: fix extractor descriptions * chore: fix console base plugin
1 parent dd33240 commit 700d08f

File tree

11 files changed

+16
-17
lines changed

11 files changed

+16
-17
lines changed

plugins/extractors/application_yaml/application_yaml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var info = plugins.Info{
5656
Description: "Application metadata from YAML file",
5757
SampleConfig: sampleConfig,
5858
Summary: summary,
59-
Tags: []string{"application", "file", "extractor"},
59+
Tags: []string{"application", "file"},
6060
}
6161

6262
// Extractor is the extractor instance for application YAML file.

plugins/extractors/bigquery/bigquery.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package bigquery
22

33
import (
4-
"cloud.google.com/go/datacatalog/apiv1/datacatalogpb"
54
"context"
65
_ "embed" // used to print the embedded assets
76
"encoding/base64"
@@ -11,6 +10,8 @@ import (
1110
"strings"
1211
"sync"
1312

13+
"cloud.google.com/go/datacatalog/apiv1/datacatalogpb"
14+
1415
"cloud.google.com/go/bigquery"
1516
datacatalog "cloud.google.com/go/datacatalog/apiv1"
1617
"github.com/odpf/meteor/models"
@@ -90,7 +91,7 @@ usage_period_in_day: 7`
9091
var info = plugins.Info{
9192
Description: "Big Query table metadata and metrics",
9293
SampleConfig: sampleConfig,
93-
Tags: []string{"gcp", "table", "extractor"},
94+
Tags: []string{"gcp", "table"},
9495
Summary: summary,
9596
}
9697

plugins/extractors/bigtable/bigtable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Config struct {
3131
}
3232

3333
var info = plugins.Info{
34-
Description: "Compressed, high-performance, proprietary data storage system.",
34+
Description: "Compressed, high-performance, data storage system.",
3535
Summary: summary,
3636
Tags: []string{"gcp", "extractor"},
3737
SampleConfig: `

plugins/extractors/caramlstore/caramlstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var info = plugins.Info{
4040
Description: "CaraML store ML feature metadata",
4141
SampleConfig: sampleConfig,
4242
Summary: summary,
43-
Tags: []string{"caraml", "caramlstore", "ml", "feature", "extractor"},
43+
Tags: []string{"caraml", "ml", "feature"},
4444
}
4545

4646
// Extractor manages the communication with the CaraML Store service

plugins/extractors/gcs/gcs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ service_account_json: |-
4747
}`
4848

4949
var info = plugins.Info{
50-
Description: "Online file storage web service for storing and accessing data.",
50+
Description: "Online file storage service By Google",
5151
SampleConfig: sampleConfig,
5252
Summary: summary,
5353
Tags: []string{"gcp", "extractor"},

plugins/extractors/http/http_extractor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var sampleConfig = heredoc.Doc(`
7474
`)
7575

7676
var info = plugins.Info{
77-
Description: "Generic Extractor capable of using the HTTP response from an external API for constructing 0 or more assets",
77+
Description: "Assets metadata from an external HTTP API",
7878
SampleConfig: sampleConfig,
7979
Summary: summary,
8080
Tags: []string{"http", "extractor"},

plugins/extractors/merlin/merlin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var info = plugins.Info{
4949
Description: "Merlin ML models metadata",
5050
SampleConfig: sampleConfig,
5151
Summary: summary,
52-
Tags: []string{"merlin", "ml", "model", "extractor"},
52+
Tags: []string{"merlin", "ml", "model"},
5353
}
5454

5555
// Extractor manages the communication with the Merlin service.

plugins/extractors/optimus/optimus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var info = plugins.Info{
3232
Description: "Optimus' jobs metadata",
3333
SampleConfig: sampleConfig,
3434
Summary: summary,
35-
Tags: []string{"optimus", "bigquery", "job", "extractor"},
35+
Tags: []string{"optimus", "bigquery"},
3636
}
3737

3838
// Extractor manages the communication with the bigquery service

plugins/processors/script/tengo_script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var sampleConfig = heredoc.Doc(`
4949
`)
5050

5151
var info = plugins.Info{
52-
Description: "Transform the extracted asset with the configured Tengo script",
52+
Description: "Transform the asset with a Tengo script",
5353
SampleConfig: sampleConfig,
5454
Summary: summary,
5555
Tags: []string{"processor", "transform", "script"},

plugins/sinks/console/sink.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ var summary string
1717

1818
var info = plugins.Info{
1919
Description: "Log to standard output",
20-
SampleConfig: "",
2120
Summary: summary,
2221
Tags: []string{"log", "sink"},
22+
SampleConfig: "",
2323
}
2424

2525
type Sink struct {
@@ -67,9 +67,7 @@ func (s *Sink) process(asset *assetsv1beta2.Asset) error {
6767

6868
func init() {
6969
if err := registry.Sinks.Register("console", func() plugins.Syncer {
70-
return &Sink{
71-
logger: plugins.GetLog(),
72-
}
70+
return New(plugins.GetLog())
7371
}); err != nil {
7472
panic(err)
7573
}

0 commit comments

Comments
 (0)