-
Notifications
You must be signed in to change notification settings - Fork 28
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
rename data pkg Stream to Item #3966
Conversation
Current Aviator status
This PR was merged using Aviator. |
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, can we wait to merge this until after the corso extension stuff goes in though? It's probably going to create merge conflicts so would be best to let the extensions stuff go in and resolve conflicts here. I think mostly it'll be #3987 that has them but I can't be certain
// ErrNotFound for all Fetch calls. | ||
type NoFetchRestoreCollection struct { | ||
Collection | ||
FetchItemByNamer |
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.
nit: I know this is code movement, but this field should be removed. We're providing a function that gives this functionality, not using an embedded interface
FetchItemByNamer |
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.
I'll fix that in a follow-up PR.
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.
src/internal/data/mock/collection.go
Outdated
DeletedFlag bool | ||
Err error |
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.
could you please add a comment describing what Err
and ReadErr
are for?
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.
Will do.
Thanks @ashmrtn! @ryanfkeepers could you please hold off on this PR while the extension PRs go through? |
Yep! Not a problem. |
@@ -0,0 +1,54 @@ | |||
package data |
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.
Moved out of /data/collections to separate interfaces and non-interfaces (the code was getting jumbled in there). Only movement, nothing new/changed.
// ErrNotFound for all Fetch calls. | ||
type NoFetchRestoreCollection struct { | ||
Collection | ||
FetchItemByNamer |
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.
I'll fix that in a follow-up PR.
src/internal/data/mock/collection.go
Outdated
DeletedFlag bool | ||
Err error |
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.
Will do.
A Stream is a continuous transmission of data. An item is a single structure. Crossing the two definitions generates confusion.
56264de
to
2aee842
Compare
This pull request failed to merge: some CI status(es) failed. Remove the Failed CI(s): Test-Suite-Trusted |
This pull request failed to merge: some CI status(es) failed. Remove the Failed CI(s): Test-Suite-Trusted |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
A Stream is a continuous transmission of data.
An item is a single structure. Crossing the two
definitions generates confusion.
Primarily code movement/renaming. Though there
is also some reduction/replacement of structs
where we'd made a variety of testable Item implementations
instead of re-using the generic mock.
Does this PR need a docs update or release note?
Type of change
Test Plan