-
Notifications
You must be signed in to change notification settings - Fork 21
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
Use DeploymentId type from toolshed repo #63
Conversation
362f30a
to
2a2a635
Compare
2a2a635
to
d271e84
Compare
d271e84
to
a2c115b
Compare
39240d8
to
ce104b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just need to pass the formatting check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, though I didn't really look into what's going on with service/src/common/indexer_management/mod.rs
.
@aasseman There's two main changes there:
|
bdc158d
to
cff89d4
Compare
Could you describe what the issues were for the previous cost model responses? I read through the test cases and they seemed to match with my understanding of how it worked
I can't seem to find |
One was that if you provided no deployments filter for It may be that that was the only one related to the database. Another was that the error handling around invalid deployment IDs passed in via GraphQL was a bit sketchy, and the conversion between IPFS hashes (required for the GraphQL API) and hex strings (required for the database) wasn't very robust. I tried to make those parts more obvious and robust.
@hopeyen Ooops, it's called |
Thanks 🙏 ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the explanation. looks good!
This drops the custom
SubgraphDeploymentID
type in favor of theDeploymentId
type from the https://github.com/edgeandnode/toolshed repository, which we're working on making sort of a Graph standard utility library.Saves a bunch of code and is one more isolated piece of #54.