Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSO query updates #150

Open
wants to merge 1 commit into
base: impact-metrics
Choose a base branch
from
Open

OSO query updates #150

wants to merge 1 commit into from

Conversation

gnomadic
Copy link

@gnomadic gnomadic commented Sep 4, 2024

go here: https://www.opensource.observer/graphql

query Oso_onchainMetricsByProjectV1($orderBy: [Oso_OnchainMetricsByProjectV1OrderBy!], $offset: Int, $where: Oso_OnchainMetricsByProjectV1BoolExp) {
  oso_onchainMetricsByProjectV1(order_by: $orderBy, offset: $offset, where: $where) {
    transactionCount6Months
    transactionCount
    displayName
    projectId
    projectName
    projectNamespace
    projectSource
    activeContractCount90Days
    addressCount
    addressCount90Days
    daysSinceFirstTransaction
    gasFeesSum
    gasFeesSum6Months
    highActivityAddressCount90Days
    lowActivityAddressCount90Days
    mediumActivityAddressCount90Days
    multiProjectAddressCount90Days
    newAddressCount90Days
    returningAddressCount90Days
    eventSource
  }
}
{
  "limit": 100,
  "orderBy": {
    "activeContractCount90Days": "Desc"
  },
  "offset": 0,
  "where": {
    "projectName": {
      "_in": [
        "zora",
        "uniswap",
        "aave",
        "gitcoin"
      ]
    },
    "eventSource": {
      "_eq": "BASE"
    }
  }
}

and this works.

This PR updates the keys to match their camelCase instead of our snake_case.

Unfortunately, the endpoint still doesn't work - "message":"OpenSourceObserver: field 'oso_onchainMetricsByProjectV1' not found in type: 'query_root'"

possible issue with credential forwarding?

https://stackoverflow.com/questions/56702835/graphqlerror-field-not-found-in-type-query-root-after-merge-schema

Copy link

vercel bot commented Sep 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
easy-retro-pgf ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2024 7:24pm
ezrf-impact ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2024 7:24pm

@gnomadic
Copy link
Author

gnomadic commented Sep 4, 2024

I also see

One of the metrics provided doesn't exist:
active_contract_count_90_days
address_count
address_count_90_days
days_since_first_transaction

but am unsure of the source.

@carlbarrdahl
Copy link
Member

Unfortunately, the endpoint still doesn't work - "message":"OpenSourceObserver: field 'oso_onchainMetricsByProjectV1' not found in type: 'query_root'"

Could it be that is should be Oso_onchain... instead of the lower-case oso_onchain...?

@carlbarrdahl
Copy link
Member

I also see

One of the metrics provided doesn't exist:
active_contract_count_90_days
address_count
address_count_90_days
days_since_first_transaction

but am unsure of the source.

This is from fetchImpactMetrics.ts and happens when a round's configured impact metrics doesn't match the available metrics.

Copy link
Member

@carlbarrdahl carlbarrdahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work Ed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants