This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Migrate to The Graph #200
Merged
Migrate to The Graph #200
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The worker was the actual indexing component of Apiary, and the taskmaster was the component that queued units of work for the workers to process in order to facilitate multiple workers running at once in parallel. These components are being replaced by a subgraph and the API will be a wrapper around one or more subgraphs instead. The documentation has been updated accordingly.
This version of the API decorates aspects of the Aragon Connect subgraph, however it currently lacks some information, most notably: - The address of the kit used to create the organization, which is unavailable in the subgraph we are currently using. - The ENS name of the organization, which is unavailable in the subgraph. - A creation timestamp, which is unavailable in the subgraph. - An AUM metric which we will need to get from another subgraph. - The `updateProfile` mutation currently present in Apiary, however this is somewhat trivial to add. However, it does contain the ability to read existing profiles in our database. This is a major breaking change, since most of the schema changed, including the pagination and filtering mechanism, as well as a lot of the field names and types.
If a profile is not claimed by one or more editors then anyone can contribute to the profile of an organisation, provided they pass a valid signed description of the changes they wish to make. A profile is considered claimed once an address with permissions on the specific organization makes a change to the profile.
These scripts are no longer usable since we cannot measure the activity metric using The Graph as it currently stands. I've moved the Cycle 1 app mining data to a directory called `data`.
This was referenced Jul 28, 2020
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
❗ THIS IS WORK IN PROGRESS ❗
After several different prototypes, I've landed on using the schema stitching feature of Apollo in conjunction with our own local type definitions to add things we store (like Apiary Profiles). This is a major breaking change of the API, since we rely on the pagination and filtering mechanism of The Graph, which is considerably different from ours.
This also means that some of the functionality on the website will have to be altered heavily or removed altogether.
Here's a tentative to do list:
Lite release
NETWORK_ID
environment variable)Full migration release
Missing things
There are some things that block us from completing the base functionality of the API:
App Mining
Currently there is no way to capture a meaningful activity metric using a subgraph. After some talk with The Graph team this might be changed in the near future, so for now this implementation disregards app mining altogether.
Preview
The API can be found at https://apiary-graph-oaa5c9gej21448vwi.herokuapp.com/