-
Notifications
You must be signed in to change notification settings - Fork 43
DATA-4054 Data pipelines Typescript support #551
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
base: main
Are you sure you want to change the base?
Conversation
let dataSource = tabularDataSource; | ||
if ( | ||
useRecentData && | ||
(!dataSource || dataSource.type === TabularDataSourceType.UNSPECIFIED) | ||
) { | ||
dataSource = new TabularDataSource({ | ||
type: TabularDataSourceType.HOT_STORAGE, | ||
}); | ||
} |
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.
@vijayvuyyuru in the context of DATA-4091 i think this is safe right? if dataSource was null before, we will still send null
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.
Im not 100% sure, I think if tabularDataSource is undefined, doing dataSource.type might cause an exception?
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.
If we're handling this in app, what's the reason behind adding it here?
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.
Im not 100% sure, I think if tabularDataSource is undefined, doing dataSource.type might cause an exception?
I think !dataSource ||
would short-circuit: Playground Link
If we're handling this in app, what's the reason behind adding it here?
I was thinking if we do this in SDKs, we essentially stop population of the useRecentData field, then we can drop it in App, then drop it in SDKs.
let dataSource = tabularDataSource; | ||
if ( | ||
useRecentData && | ||
(!dataSource || dataSource.type === TabularDataSourceType.UNSPECIFIED) | ||
) { | ||
dataSource = new TabularDataSource({ | ||
type: TabularDataSourceType.HOT_STORAGE, | ||
}); | ||
} |
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.
If we're handling this in app, what's the reason behind adding it here?
* | ||
* @returns A page of data pipeline runs | ||
*/ | ||
async nextPage(): Promise<ListDataPipelineRunsPage> { |
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.
Cool!
This PR:
Manual testing: See https://gist.github.com/n0nick/52bb4954472e618d302bd20a350712b9