Skip to content

Commit

Permalink
feat: MetricsDataProvider (#1932)
Browse files Browse the repository at this point in the history
* Adding a first stab at the MetricsDataProvider, which models how we
  did it with the EventDataProvider, with a couple changes
* We now just get the metadata for metrics and projects/artifacts in the
  same query, so we don't need to do multiple round trips to the API
* We bundle the metric and project/artifact name into the event data so
  we don't have to do multiple lookups
* We create a meta MetricsDataProvider which switches on the entityType
* Because of these refactors, I was able to remove some utility
  functions we don't use anymore
  • Loading branch information
ryscheng authored Aug 22, 2024
1 parent 57e423b commit 62523a6
Show file tree
Hide file tree
Showing 6 changed files with 525 additions and 71 deletions.
6 changes: 6 additions & 0 deletions apps/frontend/.env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ NEXT_PUBLIC_DOMAIN=www.opensource.observer
### GraphQL API endpoint for database (required)
NEXT_PUBLIC_DB_GRAPHQL_URL=
HASURA_URL=
HASURA_PAT=
### OSO API key
OSO_API_KEY=
### Supabase for database (required)
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_KEY=
SUPABASE_JWT_SECRET=
### Clickhouse for OLAP database (required)
CLICKHOUSE_URL=
CLICKHOUSE_USERNAME=
CLICKHOUSE_PASSWORD=
CLICKHOUSE_DB_NAME=
### Algolia for search (required)
NEXT_PUBLIC_ALGOLIA_APPLICATION_ID=
NEXT_PUBLIC_ALGOLIA_API_KEY=
Expand Down
Loading

0 comments on commit 62523a6

Please sign in to comment.