Skip to content

Add support for 'mantaray' manifest, and make it default - #621

Merged
zbiljic merged 3 commits into
masterfrom
feature/mantray-manifest
Aug 27, 2020
Merged

zbiljic merged 3 commits into
masterfrom
feature/mantray-manifest

Conversation

@zbiljic

@zbiljic zbiljic commented Aug 27, 2020

Copy link
Copy Markdown
Contributor

This change adds mantaray manifest implementation for bee.

Externally from pkg/manifest package there are no changes, expect to some test, where some edits were required.
Since the mantaray implementation contains obfuscationKey, which is generated randomly for new manifest, each time collection is uploaded, new hash will be returned by the service.

@zbiljic
zbiljic requested review from acud, janos, pradovic and zelig August 27, 2020 10:48

@janos janos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zbiljic zbiljic self-assigned this Aug 27, 2020
@zbiljic zbiljic added enhancement enhancement of existing functionality ready for review labels Aug 27, 2020

@pradovic pradovic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Comment thread pkg/api/dirs_test.go Outdated
Comment thread pkg/api/file_test.go Outdated
Comment thread pkg/manifest/mantaray.go
}
}

func (ls *mantarayLoadSaver) Load(ref []byte) ([]byte, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't really understand why this stuff is necessary. while refactoring the splitter i noticed that the dependencies to the joiner and splitter have crept into this package and i don't really understand why. this seems like an unnecessary abstraction over simple generic interfaces like BinaryMarshaler/Unmarshaler. also i don't really understand the semantics here, from Load of a mantarayLoader I would expect to return a mantaray type, not a byte slice. this is just an abstraction over splitter and joiner. why?

@zbiljic
zbiljic force-pushed the feature/mantray-manifest branch from 3eb8fc7 to b94a63a Compare August 27, 2020 16:13
@zbiljic
zbiljic merged commit 62e6599 into master Aug 27, 2020
@zbiljic
zbiljic deleted the feature/mantray-manifest branch August 27, 2020 16:21
@martinconic martinconic mentioned this pull request Oct 15, 2026
13 of 14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement enhancement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants