added pools #14
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Anthrove/otter-space-sdk#14
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev/pools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added Pools, Pool References and Pool Posts
@ -0,0 +147,4 @@
}
if len(id) != 25 {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDToShort})
its not really to short, is just had a wrong length....
@ -0,0 +32,4 @@
return models.PoolPost{}, utils.HandleError(ctx, span, localLogger, &otterError.Database{Reason: otterError.DatabaseIsNotConnected})
}
if poolID == "" {
Either you use
len(poolID) == 0
like inpool.go
or you use this method in pool.go. But not both!@ -0,0 +37,4 @@
}
if len(poolID) != 25 {
return models.PoolPost{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDToShort})
its not really to short, is just had a wrong length....
Please recheck this, you want to check if the length nis not 25!
@ -0,0 +40,4 @@
return models.PoolPost{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDToShort})
}
if postID == "" {
Either you use len(postID) == 0 like in pool.go or you use this method in pool.go. But not both!
@ -0,0 +45,4 @@
}
if len(postID) != 25 {
return models.PoolPost{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PostIDToShort})
its not really to short, is just had a wrong length....
@ -0,0 +89,4 @@
}
if poolID == "" {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDIsEmpty})
Either you use len(poolID) == 0 like in pool.go or you use this method in pool.go. But not both!
@ -0,0 +93,4 @@
}
if len(poolID) != 25 {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDToShort})
its not really to short, is just had a wrong length....
Please recheck this, you want to check if the length nis not 25!
@ -0,0 +97,4 @@
}
if postID == "" {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PostIDIsEmpty})
Either you use len(postID) == 0 like in pool.go or you use this method in pool.go. But not both!
@ -0,0 +101,4 @@
}
if len(postID) != 25 {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PostIDToShort})
its not really to short, is just had a wrong length....
@ -0,0 +33,4 @@
}
if poolID == "" {
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDIsEmpty})
Either you use len(poolID) == 0 like in pool.go or you use this method in pool.go. But not both!
@ -0,0 +37,4 @@
}
if len(poolID) != 25 {
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDToShort})
its not really to short, is just had a wrong length....
@ -0,0 +41,4 @@
}
if sourceID == "" {
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.SourceIDIsEmpty})
Either you use len(sourceID) == 0 like in pool.go or you use this method in pool.go. But not both!
@ -0,0 +45,4 @@
}
if len(sourceID) != 25 {
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.SourceIDToShort})
its not really to short, is just had a wrong length....
@ -0,0 +49,4 @@
}
if url == "" {
return models.PoolReference{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolURLIsEmpty})
Either you check for length or for empty string... please be consistent in your variant of checking
still existing
@ -0,0 +93,4 @@
}
if poolID == "" {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDIsEmpty})
Either you use len(poolID) == 0 like in pool.go or you use this method in pool.go. But not both!
@ -0,0 +97,4 @@
}
if len(poolID) != 25 {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PostIDToShort})
its not really to short, is just had a wrong length....
Please recheck this, you want to check if the length nis not 25!
@ -0,0 +101,4 @@
}
if sourceID == "" {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.SourceIDIsEmpty})
Either you use len(sourceID) == 0 like in pool.go or you use this method in pool.go. But not both!
@ -0,0 +105,4 @@
}
if len(sourceID) != 25 {
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.SourceIDToShort})
its not really to short, is just had a wrong length....
@ -0,0 +36,4 @@
return models.PoolPost{}, utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDIsEmpty})
}
if len(poolID) == 0 {
Please recheck this, you want to check if the length nis not 25!
@ -0,0 +92,4 @@
return utils.HandleError(ctx, span, localLogger, &otterError.EntityValidationFailed{Reason: otterError.PoolIDIsEmpty})
}
if len(poolID) == 0 {
Please recheck this, you want to check if the length nis not 25!