-
Notifications
You must be signed in to change notification settings - Fork 8
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
refactor: only add streams with field transforms to updatedStreams #50
Conversation
// getStreamDiff only checks for differences in the stream's field name or field type | ||
// but there are a number of reasons the streams might be different (such as a source-defined | ||
// primary key or cursor changing). These should not be expressed as "stream updates". | ||
UpdateStreamTransform streamTransform =getStreamDiff(streamOld, streamNew, stream); |
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.
linting will address the spacing.
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.
Thanks! Ran formatting + added a test for good measure.
solves ticket |
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.
This is a bug fix in helper conversion code.
@davinchia Are you saying the PR title should be "fix:" or just noting that? |
closes airbytehq/airbyte#16092
BEFORE:
Previously, we would add all streams with changes to
uodatedStreams
. However, within each stream, the only information we report back is (a) Field type changes or (b) Field addition/removal (name changes would be a removal/addition).This means that some types of changes, for instance a source changing its source-defined primary key or cursor, would add a stream to
updatedStreams
that would have an empty array for itstransforms
.AFTER:
These types of changes are not considered breaking. We don't need the information for the Platform's purposes, and we have not had a feature request to surface this kind of information in the diff modal.
We now only add streams with a relevant fieldTransform to updatedStreams.