-
Notifications
You must be signed in to change notification settings - Fork 360
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
cataloger rocks initial connect to catalog #976
Conversation
Codecov Report
@@ Coverage Diff @@
## master #976 +/- ##
==========================================
- Coverage 44.56% 44.55% -0.01%
==========================================
Files 142 142
Lines 11547 11547
==========================================
- Hits 5146 5145 -1
- Misses 5758 5760 +2
+ Partials 643 642 -1
Continue to review full report at Codecov.
|
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 good
catalog/rocks/catalog.go
Outdated
if ns == "" { | ||
return "", ErrInvalidStorageNamespace | ||
} |
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.
Is this validation enough?
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.
never enough - adding some code
catalog/rocks/catalog.go
Outdated
func NewCommitID(id string) (CommitID, error) { | ||
return CommitID(id), nil | ||
} |
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.
validate hex
catalog/rocks/catalog.go
Outdated
func NewRef(id string) (Ref, error) { | ||
// TODO(barak): check with git what is a valid ref value | ||
if !reValidBranchID.MatchString(id) { | ||
return "", ErrInvalidRef | ||
} |
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.
replace branchID verification with git ref verification( ~, ^, etc...)
No description provided.