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

chore: migrate-to-file-data-source #27

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

Harman-singh-waraich
Copy link
Contributor

Migrates subgraph to file datasource from ipfs.cat

⚠️ Will break the services/queries relying on the this subgraph for getting evidence or item's data.

===

Need to update the gql queries for entities

  1. LItem
  2. Evidence

===

The ipfs data (now metadata ) can be accessed from the field metadata in the affected entities.

Example of updating gql query for getting evidence or item's metadata after this change :


{
evidences{
  metadata{
    title
    description
  }
}
  
litems{
  metadata{
    props{
      label
    }
    key0
    keywords
  }
}
 
}

Test subgraph deployed at :- https://thegraph.com/studio/subgraph/gtcr-test-subgraph/logs

===

Next steps :-

  1. Migrate from hosted service to studio. (The test subgraph is deployed on studio, but the changes have not been made in this PR to migrate to studio)
  2. Update services/ frontends relying on this subgraph

Copy link

sonarqubecloud bot commented May 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
29.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@jaybuidl jaybuidl merged commit 93c8141 into master Jun 5, 2024
0 of 2 checks passed
@jaybuidl jaybuidl deleted the chore/migrate-to-file-data-source branch June 5, 2024 13:12
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.

Migrate to an IPFS datasource
2 participants