-
Notifications
You must be signed in to change notification settings - Fork 925
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
refactor!(share): integrate new Namespace type #2376
Conversation
# Conflicts: # share/get_test.go # share/ipld/get.go # share/ipld/namespace_data.go
@@ -20,7 +19,7 @@ const ( | |||
namespacedDataEndpoint = "/namespaced_data" | |||
) | |||
|
|||
var nIDKey = "nid" |
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.
Forgot to change the actual string and it's breaking....
Don't have processing power rn to assess whether this worth a breakage here or not
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.
We are not deprecating this, so it might be worth it. Does it need changes besides go-cnc?
1854a3a
to
7bcece5
Compare
…on' into hlib/share/namespace-integration
Currently contains all the changes from #2256 to check that all the tests are passing with it. |
Closed in favor of #2388. GH does not see new commits. |
## Notable Changes - `namespace.ID` to `share.Namespace` - Changes every comment namespace ID mentioning to just namespace. I renamed every such mention besides in ADRs. I don't want to touch ADRs here, as they need a more holistic re-review and up-to-date catchup. - Uses all the utility methods on the type, where suitable - Namespace constructor now only creates Blob Namespaces. For other reserved namespaces, the predefined globals should be used. - Uses namespace.ValidateDataNamespace everywhere data is requested. This is guarantees we verify the namespace are 100% valid and forbids requesting parity and padding namespaces. - Restricts PFBs for reserved namespaces - Reversed the dependency from `share -> share/ipld` to `share/ipld -> share` - NewBlobV0 constructor. Similar to NewNamespaceV0 - `sharetest` pkg for share related testing utilities - `edstest` pkg for eds related testing utilities ## Follow-ups - `blobtest` pkg to generate node's blob type ## Refs * Substitutes zombie PR #2376. I push to the branch, but GH does not see commits. * Based on #2367 * Closes #2301 * Closes #2309 * Blocked on #2256
TODO:
Based on #2367
Closes #2301
Blocked on #2256 (because new rules on namespaces in existing tests cause to trigger not found within namespace range path logic, which we don't handle yet)