-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from holaplex/mpw/analytics-chart-update
add schemas to helm chart, update hub-analytics env vars secrets
- Loading branch information
Showing
15 changed files
with
375 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
cubes: | ||
- name: collections | ||
sql_table: public.collections | ||
data_source: default | ||
|
||
joins: | ||
- name: projects | ||
sql: "{CUBE}.project_id = {projects}.id" | ||
relationship: many_to_one | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: project_id | ||
sql: project_id | ||
type: string | ||
|
||
- name: blockchain | ||
sql: blockchain | ||
type: string | ||
|
||
- name: timestamp | ||
sql: timestamp | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: |
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,33 @@ | ||
cubes: | ||
- name: credits | ||
sql_table: public.credits | ||
data_source: default | ||
|
||
joins: | ||
- name: organizations | ||
sql: "{CUBE}.organization_id = {organizations}.id" | ||
relationship: many_to_one | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: organization_id | ||
sql: organization_id | ||
type: string | ||
|
||
- name: timestamp | ||
sql: timestamp | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
- name: amount | ||
sql: amount | ||
type: sum | ||
|
||
pre_aggregations: |
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,29 @@ | ||
cubes: | ||
- name: customers | ||
sql_table: public.customers | ||
data_source: default | ||
|
||
joins: | ||
- name: projects | ||
sql: "{CUBE}.project_id = {projects}.id" | ||
relationship: many_to_one | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: project_id | ||
sql: project_id | ||
type: string | ||
|
||
- name: timestamp | ||
sql: timestamp | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: |
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,37 @@ | ||
cubes: | ||
- name: mints | ||
sql_table: public.mints | ||
data_source: default | ||
|
||
joins: | ||
- name: collections | ||
sql: "{CUBE}.collection_id = {collections}.id" | ||
relationship: many_to_one | ||
|
||
- name: projects | ||
sql: "{CUBE}.project_id = {projects}.id" | ||
relationship: many_to_one | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: collection_id | ||
sql: collection_id | ||
type: string | ||
|
||
- name: project_id | ||
sql: project_id | ||
type: string | ||
|
||
- name: timestamp | ||
sql: timestamp | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: |
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,22 @@ | ||
cubes: | ||
- name: organizations | ||
sql_table: public.organizations | ||
data_source: default | ||
|
||
joins: [] | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: name | ||
sql: name | ||
type: string | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: |
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,33 @@ | ||
cubes: | ||
- name: projects | ||
sql_table: public.projects | ||
data_source: default | ||
|
||
joins: | ||
- name: organizations | ||
sql: "{CUBE}.organization_id = {organizations}.id" | ||
relationship: many_to_one | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: organization_id | ||
sql: organization_id | ||
type: string | ||
|
||
- name: name | ||
sql: name | ||
type: string | ||
|
||
- name: timestamp | ||
sql: timestamp | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: |
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,35 @@ | ||
cubes: | ||
- name: transfers | ||
sql_table: public.transfers | ||
data_source: default | ||
|
||
joins: | ||
- name: collections | ||
sql: "{CUBE}.collection_id = {collections}.id" | ||
relationship: many_to_one | ||
|
||
- name: projects | ||
sql: "{CUBE}.project_id = {projects}.id" | ||
relationship: many_to_one | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: collection_id | ||
sql: collection_id | ||
type: string | ||
|
||
- name: project_id | ||
sql: project_id | ||
type: string | ||
|
||
- name: timestamp | ||
sql: timestamp | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count |
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,41 @@ | ||
cubes: | ||
- name: wallets | ||
sql_table: public.wallets | ||
data_source: default | ||
|
||
joins: | ||
- name: projects | ||
sql: "{CUBE}.project_id = {projects}.id" | ||
relationship: many_to_one | ||
|
||
- name: customers | ||
sql: "{CUBE}.customer_id = {customers}.id" | ||
relationship: many_to_one | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: project_id | ||
sql: project_id | ||
type: string | ||
|
||
- name: customer_id | ||
sql: customer_id | ||
type: string | ||
|
||
- name: blockchain | ||
sql: blockchain | ||
type: string | ||
|
||
- name: timestamp | ||
sql: timestamp | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: |
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,37 @@ | ||
cubes: | ||
- name: webhooks | ||
sql_table: public.webhooks | ||
data_source: default | ||
|
||
joins: | ||
- name: organizations | ||
sql: "{CUBE}.organization_id = {organizations}.id" | ||
relationship: many_to_one | ||
|
||
- name: projects | ||
sql: "{CUBE}.project_id = {projects}.id" | ||
relationship: many_to_one | ||
|
||
dimensions: | ||
- name: id | ||
sql: id | ||
type: string | ||
primary_key: true | ||
|
||
- name: organization_id | ||
sql: organization_id | ||
type: string | ||
|
||
- name: project_id | ||
sql: project_id | ||
type: string | ||
|
||
- name: timestamp | ||
sql: timestamp | ||
type: time | ||
|
||
measures: | ||
- name: count | ||
type: count | ||
|
||
pre_aggregations: |
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,31 @@ | ||
{{- if .Values.cube.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: cube-config | ||
data: | ||
cube.js: | | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
module.exports = { | ||
repositoryFactory: () => ({ | ||
dataSchemaFiles: async () => { | ||
const files = await fs.promises.readdir( | ||
path.join(process.cwd(), "schema") | ||
); | ||
return await Promise.all( | ||
files | ||
.filter((file) => file.endsWith(".js") || file.endsWith(".yml")) | ||
.map(async (file) => ({ | ||
fileName: file, | ||
content: await fs.promises.readFile( | ||
path.join(process.cwd(), "schema", file), | ||
"utf-8" | ||
), | ||
})) | ||
); | ||
}, | ||
}), | ||
}; | ||
{{- end }} |
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,8 @@ | ||
{{- if .Values.cube.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: cube-schemas | ||
data: | ||
{{ (.Files.Glob "schemas/**.yml").AsConfig | indent 2 }} | ||
{{- end }} |
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.