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 2022/04/20 06:11:16 UTC

[GitHub] [superset] villebro commented on pull request #17903: feat: Adds plugin-chart-handlebars

villebro commented on PR #17903:
URL: https://github.com/apache/superset/pull/17903#issuecomment-1103508194

   @jdbranham there's a few minor lint issues, here's the diff which should fix the remaining errors:
   ```patch
   diff --git a/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/buildQuery.test.ts b/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/buildQuery.test.ts
   index d7c0457dfa..ec0eb1bae2 100644
   --- a/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/buildQuery.test.ts
   +++ b/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/buildQuery.test.ts
   @@ -7,8 +7,8 @@ describe('Handlebars buildQuery', () => {
        granularitySqla: 'ds',
        groupby: ['foo'],
        viz_type: 'my_chart',
   -    width: '500px',
   -    height: '500px'
   +    width: 500,
   +    height: 500,
      };
   
      it('should build groupby with series in form data', () => {
   diff --git a/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/transformProps.test.ts b/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/transformProps.test.ts
   index f24d2c29f4..b5dc643529 100644
   --- a/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/transformProps.test.ts
   +++ b/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/transformProps.test.ts
   @@ -9,8 +9,9 @@ describe('Handlebars tranformProps', () => {
        granularitySqla: 'ds',
        metric: 'sum__num',
        groupby: ['name'],
   -    width: '500px',
   -    height: '500px'
   +    width: 500,
   +    height: 500,
   +    viz_type: 'handlebars',
      };
      const chartProps = new ChartProps<QueryFormData>({
        formData,
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org