-
Notifications
You must be signed in to change notification settings - Fork 105
Combine the return values of Start
into a single data class
#945
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
Conversation
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 👍 ; suggested a rename for the new type
pkg/migrations/migrations.go
Outdated
@@ -78,6 +78,11 @@ type ( | |||
VersionSchema string `json:"version_schema,omitempty"` | |||
Operations json.RawMessage `json:"operations"` | |||
} | |||
|
|||
StartOperation struct { |
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.
How about calling this typeStartResult
?
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.
Updated. Thank you for the suggestion!
Merging this branch changes the coverage (1 decrease, 1 increase)
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. |
New data structure holds the return value of
Start
function of operations.