oso icon indicating copy to clipboard operation
oso copied to clipboard

Connect metrics-data-provider to new Hasura3 API

Open ryscheng opened this issue 1 year ago • 4 comments

What is it?

It's currently still connected to the Hasura2 deployment via NEXT_PUBLIC_DB_GRAPHQL_URL This would be relatively easy, except for the fact that Hasura3 CLI camel-cases all of the schema, so our query types don't match anymore.

Another thought, should we just connect directly to Clickhouse for server-side queries, instead of through Hasura? Seems like added complexity / indirection. (Leaving the client-side components alone)

ryscheng avatar Jul 29 '24 00:07 ryscheng

Since this issue tackles server-side queries https://github.com/opensource-observer/oso/issues/1892

This issue has been downscoped to just fixing event-data-provider to use the new metrics stuff via API

ryscheng avatar Aug 01 '24 06:08 ryscheng

Copying data here to clickhouse here https://github.com/opensource-observer/oso/pull/1920

ryscheng avatar Aug 06 '24 14:08 ryscheng

Hasura configs here https://github.com/opensource-observer/oso/pull/1921

ryscheng avatar Aug 06 '24 16:08 ryscheng

deleting older graphql calls here https://github.com/opensource-observer/oso/pull/1929

ryscheng avatar Aug 07 '24 03:08 ryscheng

Adding first draft of metricsdataprovider here https://github.com/opensource-observer/oso/pull/1932

I know this is currently broken because some API calls aren't working in general. Need to go back and find the issues there

ryscheng avatar Aug 22 '24 19:08 ryscheng

Closing this out for now. We have a first draft done, but we'll need to file a new issue for a MetricsDataProvider backed by Cube.dev

ryscheng avatar Aug 27 '24 17:08 ryscheng