-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: schema field level usage analytics (#174)
Co-authored-by: Jens Neuse <jens.neuse@gmx.de> Co-authored-by: Aenimus <daviditstutt@gmail.com> Co-authored-by: Nithin Kumar B <nithinkumar5353@gmail.com> Co-authored-by: fiam <alberto@garciahierro.com>
- Loading branch information
1 parent
ca4f67d
commit 4f257a7
Showing
156 changed files
with
9,114 additions
and
771 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ protocol: | |
- "proto/**/*" | ||
controlplane: | ||
- "controlplane/**/*" | ||
graphqlmetrics: | ||
- "graphqlmetrics/**/*" |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
name: Cli CI | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "cli/**/*" | ||
- "connect/**/*" | ||
|
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
name: Composition CI | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "composition/**/*" | ||
- composition-go/**/*" | ||
|
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
name: Controlplane CI | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "controlplane/**/*" | ||
- "connect/**/*" | ||
|
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,69 @@ | ||
name: GraphQLMetrics CI | ||
on: | ||
pull_request: | ||
paths: | ||
- "graphqlmetrics/**/*" | ||
- ".github/workflows/graphqlmetrics-ci.yaml" | ||
|
||
concurrency: | ||
group: ${{github.workflow}}-${{github.head_ref}} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CI: true | ||
INT_TESTS: true | ||
|
||
jobs: | ||
build_test: | ||
runs-on: ubuntu-latest | ||
services: | ||
clickhouse: | ||
# Docker Hub image | ||
image: clickhouse/clickhouse-server:23 | ||
ports: | ||
- "8123:8123" | ||
- "9000:9000" | ||
env: | ||
CLICKHOUSE_DB: cosmo | ||
CLICKHOUSE_USER: default | ||
CLICKHOUSE_PASSWORD: changeme | ||
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
# The go install / version instructions are inside the Makefile, so we need to cache the Makefile. | ||
key: ${{ runner.os }}-go-${{ hashFiles('graphqlmetrics/go.sum') }}-makefile-${{ hashFiles('Makefile') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- uses: ./.github/actions/go | ||
with: | ||
cache-dependency-path: graphqlmetrics/go.sum | ||
|
||
- name: Install tools | ||
run: make setup-build-tools | ||
|
||
- name: Generate code | ||
run: rm -rf graphqlmetrics/gen && buf generate --path proto/wg/cosmo/graphqlmetrics --path proto/wg/cosmo/common --template buf.graphqlmetrics.go.gen.yaml | ||
|
||
- name: Check if git is not dirty after generating files | ||
run: git diff --no-ext-diff --exit-code | ||
|
||
- name: Install dependencies | ||
working-directory: ./graphqlmetrics | ||
run: go mod download | ||
|
||
- name: Test | ||
working-directory: ./graphqlmetrics | ||
run: make test | ||
|
||
- name: Build | ||
working-directory: ./graphqlmetrics | ||
run: make build |
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 |
---|---|---|
|
@@ -12,8 +12,6 @@ on: | |
- 'scripts/**' | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'docs/*/**' | ||
- 'helm/**' | ||
|
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
name: Studio CI | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "studio/**/*" | ||
- "connect/**/*" | ||
|
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,10 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="graphqlmetrics" type="GoApplicationRunConfiguration" factoryName="Go Application"> | ||
<module name="cosmo" /> | ||
<working_directory value="$PROJECT_DIR$/graphqlmetrics" /> | ||
<kind value="FILE" /> | ||
<directory value="$PROJECT_DIR$" /> | ||
<filePath value="$PROJECT_DIR$/graphqlmetrics/cmd/main.go" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: v1 | ||
managed: | ||
enabled: true | ||
go_package_prefix: | ||
default: github.com/wundergraph/cosmo/graphqlmetrics/gen/proto | ||
# Remove `except` field if googleapis is not used | ||
except: | ||
- buf.build/googleapis/googleapis | ||
plugins: | ||
- plugin: connect-go | ||
out: graphqlmetrics/gen/proto | ||
opt: | ||
- paths=source_relative | ||
- plugin: go | ||
out: graphqlmetrics/gen/proto | ||
opt: | ||
- paths=source_relative |
File renamed without changes.
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 |
---|---|---|
|
@@ -35,4 +35,4 @@ | |
"name": "WunderGraph Maintainers", | ||
"email": "info@wundergraph.com" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.