Skip to content

Commit db35f95

Browse files
authored
refactor: rename columbus to compass (raystack#116)
1 parent 279e43a commit db35f95

File tree

151 files changed

+456
-546
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+456
-546
lines changed

.github/workflows/build_dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
push: true
2121
file: "./Dockerfile.dev"
2222
tags: |
23-
odpf/columbus:dev
23+
odpf/compass:dev

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ vendor/
2222

2323
# Project specific ignore
2424
.env
25-
columbus
25+
compass
2626
config.yaml

.goreleaser.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project_name: columbus
1+
project_name: compass
22

33
release:
44
prerelease: auto
@@ -11,13 +11,13 @@ before:
1111

1212
builds:
1313
- main: ./main.go
14-
id: columbus
15-
binary: columbus
14+
id: compass
15+
binary: compass
1616
flags: [-a]
1717
ldflags:
18-
- -X github.com/odpf/columbus/cmd.Version={{.Tag}}
19-
- -X github.com/odpf/columbus/cmd.BuildCommit={{.FullCommit}}
20-
- -X github.com/odpf/columbus/cmd.BuildDate={{.Date}}
18+
- -X github.com/odpf/compass/cmd.Version={{.Tag}}
19+
- -X github.com/odpf/compass/cmd.BuildCommit={{.FullCommit}}
20+
- -X github.com/odpf/compass/cmd.BuildDate={{.Date}}
2121
goos: [linux, darwin, windows]
2222
goarch: [amd64, 386, arm, arm64] # skip goarch 386 and arm due to conflicts with "github.com/blastrain/vitess-sqlparser" library
2323
env:
@@ -53,16 +53,16 @@ dockers:
5353
goos: linux
5454
goarch: amd64
5555
ids:
56-
- columbus
56+
- compass
5757
dockerfile: Dockerfile
5858
image_templates:
5959
- 'docker.io/odpf/{{.ProjectName}}:latest'
6060
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}'
6161
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}-amd64'
6262

6363
brews:
64-
- name: columbus
65-
homepage: "https://github.com/odpf/columbus"
64+
- name: compass
65+
homepage: "https://github.com/odpf/compass"
6666
description: "Metadata Discovery and Lineage Service"
6767
tap:
6868
owner: odpf
@@ -73,7 +73,7 @@ brews:
7373
dependencies:
7474
- name: git
7575
install: |-
76-
bin.install "columbus"
76+
bin.install "compass"
7777
commit_author:
7878
name: Ravi Suhag
7979

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
## [v0.1.1](https://github.com/odpf/columbus/releases/tag/v0.1.1) (2021-04-12)
5+
## [v0.1.1](https://github.com/odpf/compass/releases/tag/v0.1.1) (2021-04-12)
66

77
### Fixes
88

99
Fix /v1/types returns null on empty types
1010
Fix search filter not working as expected
1111
Fix error when search whitelist is empty when searching
1212

13-
## [v0.1.0](https://github.com/odpf/columbus/releases/tag/v0.1.0) (2021-04-05)
13+
## [v0.1.0](https://github.com/odpf/compass/releases/tag/v0.1.0) (2021-04-05)
1414

1515
### Features
1616

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM alpine:latest
22

3-
COPY columbus /usr/bin/columbus
3+
COPY compass /usr/bin/compass
44
RUN apk update
55
RUN apk add ca-certificates
66

7-
CMD ["columbus"]
7+
CMD ["compass"]

Dockerfile.dev

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ COPY . .
44
RUN ["make"]
55

66
FROM alpine:latest
7-
WORKDIR /opt/columbus
8-
COPY --from=base /build/columbus /opt/columbus/bin/columbus
7+
WORKDIR /opt/compass
8+
COPY --from=base /build/compass /opt/compass/bin/compass
99
RUN ["apk", "update"]
1010
EXPOSE 8080
1111

1212
# glibc compatibility library, since go binaries
1313
# don't work well with musl libc that alpine uses
1414
RUN ["apk", "add", "libc6-compat"]
15-
ENTRYPOINT ["/opt/columbus/bin/columbus"]
15+
ENTRYPOINT ["/opt/compass/bin/compass"]

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
NAME="github.com/odpf/columbus"
1+
NAME="github.com/odpf/compass"
22
VERSION=$(shell git describe --always --tags 2>/dev/null)
3-
COVERFILE="/tmp/columbus.coverprofile"
3+
COVERFILE="/tmp/compass.coverprofile"
44
PROTON_COMMIT := "2481c008a1eb2525eca058b0729abc036ddcbe6a"
55

66
.PHONY: all build test clean install proto
@@ -11,7 +11,7 @@ build:
1111
go build -ldflags "-X cmd.Version=${VERSION}" ${NAME}
1212

1313
clean:
14-
rm -rf columbus dist/
14+
rm -rf compass dist/
1515

1616
test:
1717
go test -race ./... -coverprofile=coverage.txt

README.md

+36-36
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
1-
# Columbus
1+
# Compass
22

3-
![test workflow](https://github.com/odpf/columbus/actions/workflows/test.yml/badge.svg)
4-
![build workflow](https://github.com/odpf/columbus/actions/workflows/build_dev.yml/badge.svg)
5-
[![Coverage Status](https://coveralls.io/repos/github/odpf/columbus/badge.svg?branch=main)](https://coveralls.io/github/odpf/columbus?branch=main)
3+
![test workflow](https://github.com/odpf/compass/actions/workflows/test.yml/badge.svg)
4+
![build workflow](https://github.com/odpf/compass/actions/workflows/build_dev.yml/badge.svg)
5+
[![Coverage Status](https://coveralls.io/repos/github/odpf/compass/badge.svg?branch=main)](https://coveralls.io/github/odpf/compass?branch=main)
66
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)
7-
[![Version](https://img.shields.io/github/v/release/odpf/columbus?logo=semantic-release)](Version)
7+
[![Version](https://img.shields.io/github/v/release/odpf/compass?logo=semantic-release)](Version)
88

9-
Columbus is a search and discovery engine built for querying application deployments, datasets and meta resources. It can also optionally track data flow relationships between these resources and allow the user to view a representation of the data flow graph.
9+
Compass is a search and discovery engine built for querying application deployments, datasets and meta resources. It can also optionally track data flow relationships between these resources and allow the user to view a representation of the data flow graph.
1010

1111
<p align="center"><img src="./docs/assets/overview.svg" /></p>
1212

1313
## Key Features
14-
Discover why users choose Columbus as their main data discovery and lineage service
14+
Discover why users choose Compass as their main data discovery and lineage service
1515

1616
* **Full text search** Faster and better search results powered by ElasticSearch full text search capability.
1717
* **Search Tuning** Narrow down your search results by adding filters, getting your crisp results.
1818
* **Data Lineage** Understand the relationship between metadata with data lineage interface.
19-
* **Scale:** Columbus scales in an instant, both vertically and horizontally for high performance.
19+
* **Scale:** Compass scales in an instant, both vertically and horizontally for high performance.
2020
* **Extensibility:** Add your own metadata types and resources to support wide variety of metadata.
21-
* **Runtime:** Columbus can run inside VMs or containers in a fully managed runtime environment like kubernetes.
21+
* **Runtime:** Compass can run inside VMs or containers in a fully managed runtime environment like kubernetes.
2222

2323
## Usage
2424

25-
Explore the following resources to get started with Columbus:
25+
Explore the following resources to get started with Compass:
2626

27-
* [Guides](docs/guides) provides guidance on ingesting and queying metadata from Columbus.
28-
* [Concepts](docs/concepts) describes all important Columbus concepts.
29-
* [Reference](docs/reference) contains details about configurations, metrics and other aspects of Columbus.
30-
* [Contribute](docs/contribute/contribution.md) contains resources for anyone who wants to contribute to Columbus.
27+
* [Guides](docs/guides) provides guidance on ingesting and queying metadata from Compass.
28+
* [Concepts](docs/concepts) describes all important Compass concepts.
29+
* [Reference](docs/reference) contains details about configurations, metrics and other aspects of Compass.
30+
* [Contribute](docs/contribute/contribution.md) contains resources for anyone who wants to contribute to Compass.
3131

3232
## Requirements
3333

34-
Columbus is written in golang, and requires go version >= 1.16. Please make sure that the go tool chain is available on your machine. See golang’s [documentation](https://golang.org/) for installation instructions. Columbus is also using [mockery](https://github.com/vektra/mockery) v2.10.0 to generate mocks.
34+
Compass is written in golang, and requires go version >= 1.16. Please make sure that the go tool chain is available on your machine. See golang’s [documentation](https://golang.org/) for installation instructions. Compass is also using [mockery](https://github.com/vektra/mockery) v2.10.0 to generate mocks.
3535

36-
Alternatively, you can use docker to build columbus as a docker image. More on this in the next section.
36+
Alternatively, you can use docker to build compass as a docker image. More on this in the next section.
3737

38-
Columbus uses elasticsearch v7 as the query and storage backend. In order to run columbus locally, you’ll need to have an instance of elasticsearch running. You can either download elasticsearch and run it manually, or you can run elasticsearch inside docker by running the following command in a terminal
38+
Compass uses elasticsearch v7 as the query and storage backend. In order to run compass locally, you’ll need to have an instance of elasticsearch running. You can either download elasticsearch and run it manually, or you can run elasticsearch inside docker by running the following command in a terminal
3939
```
4040
$ docker run -d -p 9200:9200 -e "discovery.type=single-node" elasticsearch:7.6.1
4141
```
4242

4343
## Running locally
44-
Begin by cloning this repository, then you have two ways in which you can build columbus
44+
Begin by cloning this repository, then you have two ways in which you can build compass
4545
* As a native executable
4646
* As a docker image
4747

48-
To build columbus as a native executable, run `make` inside the cloned repository.
48+
To build compass as a native executable, run `make` inside the cloned repository.
4949
```
5050
$ make
5151
```
5252

53-
This will create the `columbus` binary in the root directory
53+
This will create the `compass` binary in the root directory
5454

55-
Building columbus’s Docker image is just a simple, just run docker build command and optionally name the image
55+
Building compass' Docker image is just a simple, just run docker build command and optionally name the image
5656
```
57-
$ docker build . -t columbus
57+
$ docker build . -t compass
5858
```
5959

60-
Columbus interfaces with an elasticsearch cluster. Run columbus using:
60+
Compass interfaces with an elasticsearch cluster. Run compass using:
6161

6262
```
63-
./columbus -elasticsearch-brokers "http://<broker-host-name>"
63+
./compass -elasticsearch-brokers "http://<broker-host-name>"
6464
```
6565

6666
Elasticsearch brokers can alternatively be specified via the `ELASTICSEARCH_BROKERS` environment variable.
6767

68-
If you used Docker to build columbus, then configuring networking requires extra steps. Following is one of doing it, running elasticsearch inside docker
68+
If you used Docker to build compass, then configuring networking requires extra steps. Following is one of doing it, running elasticsearch inside docker
6969

7070
```
71-
# create a docker network where columbus and elasticsearch will reside
72-
$ docker network create columbus-net
71+
# create a docker network where compass and elasticsearch will reside
72+
$ docker network create compass-net
7373
7474
# run elasticsearch, bound to the network we created. Since we are using the -d flag to docker run, the command inside the subshell returns the container id
75-
$ ES_CONTAINER_ID=$(docker run -d -e "discovery.type=single-node" --net columbus-net elasticsearch:7.5.2)
75+
$ ES_CONTAINER_ID=$(docker run -d -e "discovery.type=single-node" --net compass-net elasticsearch:7.5.2)
7676
77-
# run columbus, passing in the hostname (container id) of the elasticsearch server
77+
# run compass, passing in the hostname (container id) of the elasticsearch server
7878
# if everything goes ok, you should say something like this:
7979
80-
# time="2020-04-01T18:41:00Z" level=info msg="columbus v0.1.0-103-g83b909b starting on 0.0.0.0:8080" reporter=main
80+
# time="2020-04-01T18:41:00Z" level=info msg="compass v0.1.0-103-g83b909b starting on 0.0.0.0:8080" reporter=main
8181
# time="2020-04-01T18:41:00Z" level=info msg="connected to elasticsearch cluster \"docker-cluster\" (server version 7.5.2)" reporter=main
82-
$ docker run --net columbus-net columbus -p 8080:8080 -elasticsearch-brokers http://${ES_CONTAINER_ID}:9200
82+
$ docker run --net compass-net compass -p 8080:8080 -elasticsearch-brokers http://${ES_CONTAINER_ID}:9200
8383
```
8484

8585
## Running tests
@@ -98,13 +98,13 @@ elasticsearch cluster, set the value of `ES_TEST_SERVER_URL` to the URL of the e
9898

9999
## Contribute
100100

101-
Development of Columbus happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Columbus.
101+
Development of Compass happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Compass.
102102

103-
Read our [contributing guide](docs/contribute/contribution.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Columbus.
103+
Read our [contributing guide](docs/contribute/contribution.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Compass.
104104

105-
To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/odpf/columbus/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
105+
To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/odpf/compass/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
106106

107-
This project exists thanks to all the [contributors](https://github.com/odpf/columbus/graphs/contributors).
107+
This project exists thanks to all the [contributors](https://github.com/odpf/compass/graphs/contributors).
108108

109109
## License
110-
Columbus is [Apache 2.0](LICENSE) licensed.
110+
Compass is [Apache 2.0](LICENSE) licensed.

api/api.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ import (
66

77
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
88
"github.com/newrelic/go-agent/v3/newrelic"
9-
"github.com/odpf/columbus/api/httpapi"
10-
"github.com/odpf/columbus/api/httpapi/handlers"
11-
"github.com/odpf/columbus/api/httpapi/middleware"
12-
"github.com/odpf/columbus/api/v1beta1"
13-
"github.com/odpf/columbus/asset"
14-
"github.com/odpf/columbus/discovery"
15-
"github.com/odpf/columbus/discussion"
16-
"github.com/odpf/columbus/lineage"
17-
"github.com/odpf/columbus/metrics"
18-
"github.com/odpf/columbus/star"
19-
"github.com/odpf/columbus/tag"
20-
"github.com/odpf/columbus/user"
9+
"github.com/odpf/compass/api/httpapi"
10+
"github.com/odpf/compass/api/httpapi/handlers"
11+
"github.com/odpf/compass/api/httpapi/middleware"
12+
"github.com/odpf/compass/api/v1beta1"
13+
"github.com/odpf/compass/asset"
14+
"github.com/odpf/compass/discovery"
15+
"github.com/odpf/compass/discussion"
16+
"github.com/odpf/compass/lineage"
17+
"github.com/odpf/compass/metrics"
18+
"github.com/odpf/compass/star"
19+
"github.com/odpf/compass/tag"
20+
"github.com/odpf/compass/user"
2121
"github.com/odpf/salt/log"
2222
)
2323

api/grpc_interceptor/statsd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"time"
66

7-
"github.com/odpf/columbus/metrics"
7+
"github.com/odpf/compass/metrics"
88
"google.golang.org/grpc"
99
"google.golang.org/grpc/status"
1010
)

api/grpc_interceptor/statsd_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
88
grpc_testing "github.com/grpc-ecosystem/go-grpc-middleware/testing"
99
pb_testproto "github.com/grpc-ecosystem/go-grpc-middleware/testing/testproto"
10-
"github.com/odpf/columbus/lib/mocks"
11-
"github.com/odpf/columbus/metrics"
10+
"github.com/odpf/compass/lib/mocks"
11+
"github.com/odpf/compass/metrics"
1212
"github.com/stretchr/testify/require"
1313
"github.com/stretchr/testify/suite"
1414
"google.golang.org/grpc"
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
var (
20-
statsdPrefix = "columbusApi"
20+
statsdPrefix = "compassApi"
2121
metricsSeparator = "."
2222
)
2323

@@ -44,8 +44,8 @@ func TestStatsDSuite(t *testing.T) {
4444
}
4545

4646
func (s *StatsDTestSuite) TestUnary_StatsDMetrics() {
47-
s.statsdClient.EXPECT().Increment("columbusApi.responseStatusCode,statusCode=OK,method=/mwitkow.testproto.TestService/Ping").Once()
48-
s.statsdClient.EXPECT().Timing("columbusApi.responseTime,method=/mwitkow.testproto.TestService/Ping", int64(0)).Once()
47+
s.statsdClient.EXPECT().Increment("compassApi.responseStatusCode,statusCode=OK,method=/mwitkow.testproto.TestService/Ping").Once()
48+
s.statsdClient.EXPECT().Timing("compassApi.responseTime,method=/mwitkow.testproto.TestService/Ping", int64(0)).Once()
4949
_, err := s.Client.Ping(context.Background(), &pb_testproto.PingRequest{Value: "something", SleepTimeMs: 9999})
5050
code := status.Code(err)
5151
require.Equal(s.T(), codes.OK, code)

api/grpc_interceptor/user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"errors"
66
"fmt"
77

8-
"github.com/odpf/columbus/user"
8+
"github.com/odpf/compass/user"
99
"google.golang.org/grpc"
1010
"google.golang.org/grpc/codes"
1111
"google.golang.org/grpc/metadata"

api/grpc_interceptor/user_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
99
grpc_testing "github.com/grpc-ecosystem/go-grpc-middleware/testing"
1010
pb_testproto "github.com/grpc-ecosystem/go-grpc-middleware/testing/testproto"
11-
"github.com/odpf/columbus/lib/mocks"
12-
"github.com/odpf/columbus/user"
11+
"github.com/odpf/compass/lib/mocks"
12+
"github.com/odpf/compass/user"
1313
"github.com/odpf/salt/log"
1414
"github.com/stretchr/testify/mock"
1515
"github.com/stretchr/testify/require"
@@ -21,8 +21,8 @@ import (
2121
)
2222

2323
const (
24-
identityUUIDHeaderKey = "Columbus-User-ID"
25-
identityEmailHeaderKey = "Columbus-User-Email"
24+
identityUUIDHeaderKey = "Compass-User-ID"
25+
identityEmailHeaderKey = "Compass-User-Email"
2626
userID = "user-id"
2727
)
2828

api/httpapi/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package httpapi
22

33
import (
4-
"github.com/odpf/columbus/api/httpapi/handlers"
4+
"github.com/odpf/compass/api/httpapi/handlers"
55
)
66

77
type Handler struct {

api/httpapi/handlers/record_handler.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
"github.com/odpf/salt/log"
1010

11-
"github.com/odpf/columbus/asset"
12-
"github.com/odpf/columbus/discovery"
11+
"github.com/odpf/compass/asset"
12+
"github.com/odpf/compass/discovery"
1313
)
1414

1515
// RecordHandler exposes a REST interface to types

0 commit comments

Comments
 (0)