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

Automatically resolve and index composition dependencies (and dependents?) #1035

Open
alex-pakalniskis opened this issue Nov 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@alex-pakalniskis
Copy link
Contributor

alex-pakalniskis commented Nov 1, 2024

Subgraph composition introduces a new relationship type between data artifacts. Similar but different to how developers can graft a new subgraph onto an existing subgraph (unbounded depth), composition enables developers to re-use and extend data from one subgraph in another (1 layer deep max, but many subgraphs can use data from a single "core" subgraph).

The initial release of composition feature will expect Indexers to manual resolve and index composition relationships. Potential enhancements to streamline the Indexer experience might include:

  • Automatically resolve and index composition dependencies
  • Discovering children/dependent subgraphs
    • Automatically index composition dependents for a subgraph already indexed?

User validation is required on the latter enhancement, but Indexers (i.e. Pinax, StakeSquid) have already requested the former improvement.

Follow up with devs:

  • enforce 1 layer deep
  • enforce no grafting
@alex-pakalniskis alex-pakalniskis converted this from a draft issue Nov 1, 2024
@alex-pakalniskis alex-pakalniskis moved this from 🗃️ Inbox to 🙏 Feature Requests in Indexer Nov 1, 2024
@alex-pakalniskis alex-pakalniskis added the enhancement New feature or request label Nov 1, 2024
@alex-pakalniskis alex-pakalniskis changed the title Automatically resolve and index composition dependencies Automatically resolve and index composition dependencies (and dependents?) Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ⌛ Up next
Development

No branches or pull requests

1 participant