Connect metrics-data-provider to new Hasura3 API
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)
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
Copying data here to clickhouse here https://github.com/opensource-observer/oso/pull/1920
Hasura configs here https://github.com/opensource-observer/oso/pull/1921
deleting older graphql calls here https://github.com/opensource-observer/oso/pull/1929
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
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