-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: implement consumer/get
and subscription/get
invocation handlers
#220
Conversation
this required wiring up the space metrics table in the upload-api stack, but works pretty well! currently just returning 1 billion as the "total" space for all consumers since we don't currently check anyway
View stack outputs
|
this should enable `subscription/get` invocation to work as one would expect
per w3up change here: storacha/w3up#863
consumer/get
invocation handlerconsumer/get
and subscription/get
invocation handlers
1) bubble getStorageProviders up to ProvisionStore 2) implement get on SubscriptionTable 3) implement getBySubscription on ConsumerTable
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.
This looks good, just pointed out some small things. More critical would be to make sure we use constants for metrics names to avoid breaking things on changes
Co-authored-by: Vasco Santos <[email protected]>
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
subsequent approval further downthread
consumer/get
required wiring up the space metrics table in the upload-api stack to get space allocation metrics, which we call "allocation" in w3admin. Currently just returning 1 billion as the "total" space for all consumers since we don't currently check anyway, but we should figure out where this lives when we tackle billing in the near future.Also implement
getStorageProviders
per storacha/w3up#862Also add
subscriptions
to thecustomer/get
response, per storacha/w3up#863