You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/11/15 00:16:41 UTC
[GitHub] kristw commented on a change in pull request #6377: [SIP-5]
QueryBuilder in the client for granularity and groupby in word cloud
kristw commented on a change in pull request #6377: [SIP-5] QueryBuilder in the client for granularity and groupby in word cloud
URL: https://github.com/apache/incubator-superset/pull/6377#discussion_r233671375
##########
File path: superset/assets/src/query/buildDatasource.ts
##########
@@ -10,7 +10,7 @@ export interface Datasource {
type: DatasourceType;
}
-export default function build(formData: FormData): Datasource {
+export default function buildDatasource(formData: FormData): Datasource {
Review comment:
Great I like the revision with class. BTW, what do you think about `DatasourceKey` and `Datasource` issue I mentioned above?
The one you are working on here is what I refer to as `DatasourceKey`. It only contains enough information `{ id, type }` to identify the datasource in database.
There is another `Datasource` we will run into in a separate PR at some point, which is the full metadata of datasource: `{ verbose_map, columns, ... }`. Both of them are referred to in the code as `datasource` now, which is quite confusing.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org