[incubator-superset] branch master updated (e3013ea -> 35c449d)
This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git. from e3013ea other: add TypeScript tracker generation script (#10074) add 35c449d add GrowthSimple to list of users on readme (#10075) No new revisions were added by this update. Summary of changes: README.md | 1 + 1 file changed, 1 insertion(+)
[incubator-superset] branch master updated: other: add TypeScript tracker generation script (#10074)
This is an automated email from the ASF dual-hosted git repository. erikrit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new e3013ea other: add TypeScript tracker generation script (#10074) e3013ea is described below commit e3013ea1299f13f713af34a338a74c3164be6e31 Author: Erik Ritter AuthorDate: Tue Jun 16 18:54:51 2020 -0700 other: add TypeScript tracker generation script (#10074) --- scripts/generate_frontend_ts_tasklist.js | 74 1 file changed, 74 insertions(+) diff --git a/scripts/generate_frontend_ts_tasklist.js b/scripts/generate_frontend_ts_tasklist.js new file mode 100644 index 000..8d84842 --- /dev/null +++ b/scripts/generate_frontend_ts_tasklist.js @@ -0,0 +1,74 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +// Run this from the superset-frontend directory with +// `node ../scripts/generate_frontend_ts_tasklist.js `, then copy and paste the output into issue +// #10004 +const { readdirSync } = require("fs"); +const process = require("process"); + +const INITIAL_DIRECTORIES = ["spec", "src"]; +const DEFAULT_DIRECTORY = process.cwd(); + +const getDirectories = (source) => + readdirSync(source, { withFileTypes: true }) +.filter((dirent) => dirent.isDirectory()) +.map((dirent) => dirent.name); + +const getFilesByExtensions = (source, extensions) => + readdirSync(source, { withFileTypes: true }) +.filter((dirent) => + extensions.some((extension) => dirent.name.endsWith(extension)) +) +.map((dirent) => dirent.name); + +let directories = INITIAL_DIRECTORIES; + +while (directories.length) { + const curDirectory = directories.pop(); + process.chdir(curDirectory); + // Check for existence of js, jsx, ts, and tsx files. Show a filled box if only ts and tsx, + // show an empty box if any js or jsx, and don't print the line if neither exist in the + // directory. + const hasTypescriptFiles = +getFilesByExtensions("./", [".ts", ".tsx"]).length > 0; + const hasJavascriptFiles = +getFilesByExtensions("./", [".js", ".jsx"]).length > 0; + + if (hasJavascriptFiles) { +console.log( + `${" ".repeat( +curDirectory.split("/").length - 1 + )}- [ ] \`${curDirectory}\`` +); + } else if (hasTypescriptFiles) { +console.log( + `${" ".repeat( +curDirectory.split("/").length - 1 + )}- [x] \`${curDirectory}\`` +); + } + + directories = directories.concat( +getDirectories("./") + .reverse() // For ABC order when pushed into the Array + .map((directory) => `${curDirectory}/${directory}`) + ); + process.chdir(DEFAULT_DIRECTORY); +}
[incubator-superset] branch master updated: chore: bumping superset-ui theme version (#10059)
This is an automated email from the ASF dual-hosted git repository. rusackas pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 00e6d7d chore: bumping superset-ui theme version (#10059) 00e6d7d is described below commit 00e6d7d706c64e96d715d4cf7b2bdd84c19da4b3 Author: Evan Rusackas AuthorDate: Tue Jun 16 16:33:14 2020 -0700 chore: bumping superset-ui theme version (#10059) --- superset-frontend/package-lock.json | 244 +++- superset-frontend/package.json | 2 +- 2 files changed, 128 insertions(+), 118 deletions(-) diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json index 0163b7c..d4f80e4 100644 --- a/superset-frontend/package-lock.json +++ b/superset-frontend/package-lock.json @@ -7219,9 +7219,9 @@ "integrity": "sha512-TTQEv9KsTl8U3XMWhZET7xNOaaDOstS7+ZklbdGyQ27sxLNSA5+/Kzo9MU44BGJNS1rbEEzV3SC0AnFPmGOdPw==" }, "@superset-ui/style": { - "version": "0.13.27", - "resolved": "https://registry.npmjs.org/@superset-ui/style/-/style-0.13.27.tgz;, - "integrity": "sha512-OzTayt9SJnwv8SZ/gfsxz1OTReaXdHo5AUgoBu1myYKqgUgdUBiCglv0WJwYpClQDzTLgDWI3oO8uWqnA+r7oQ==", + "version": "0.13.30", + "resolved": "https://registry.npmjs.org/@superset-ui/style/-/style-0.13.30.tgz;, + "integrity": "sha512-+olHAwd+SgyU1R/6nFzqrT5Jw8v5BIK6/oZmUVbItOYcVgkQwYqn4KWar3B+sy8BRw+ztRmmBBi7ioeve3uwLw==", "requires": { "@emotion/core": "^10.0.28", "@emotion/styled": "^10.0.27", @@ -7248,6 +7248,16 @@ "@superset-ui/validator": "0.13.27" }, "dependencies": { +"@superset-ui/style": { + "version": "0.13.27", + "resolved": "https://registry.npmjs.org/@superset-ui/style/-/style-0.13.27.tgz;, + "integrity": "sha512-OzTayt9SJnwv8SZ/gfsxz1OTReaXdHo5AUgoBu1myYKqgUgdUBiCglv0WJwYpClQDzTLgDWI3oO8uWqnA+r7oQ==", + "requires": { +"@emotion/core": "^10.0.28", +"@emotion/styled": "^10.0.27", +"emotion-theming": "^10.0.27" + } +}, "@superset-ui/time-format": { "version": "0.13.27", "resolved": "https://registry.npmjs.org/@superset-ui/time-format/-/time-format-0.13.27.tgz;, @@ -10495,28 +10505,28 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz;, + "resolved": false, "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz;, + "resolved": false, "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true, "optional": true }, "aproba": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz;, + "resolved": false, "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz;, + "resolved": false, "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "dev": true, "optional": true, @@ -10527,14 +10537,14 @@ }, "balanced-match": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz;, + "resolved": false, "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true, "optional": true }, "brace-expansion": { "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz;, + "resolved": false, "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "optional": true, @@ -10545,35 +10555,35 @@ }, "code-point-at": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz;, + "resolved": false,
[incubator-superset] branch master updated: fix: use custom int parsing over flask int parsing in sqllab queries endpoint (#10070)
This is an automated email from the ASF dual-hosted git repository. tai pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 2612046 fix: use custom int parsing over flask int parsing in sqllab queries endpoint (#10070) 2612046 is described below commit 26120467af3825577a30190f42d942836b147c9f Author: ʈᵃᵢ AuthorDate: Tue Jun 16 12:58:32 2020 -0700 fix: use custom int parsing over flask int parsing in sqllab queries endpoint (#10070) --- superset/views/core.py | 7 --- tests/sqllab_tests.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/superset/views/core.py b/superset/views/core.py index fc14d36..e173972 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -2658,14 +2658,15 @@ class Superset(BaseSupersetView): return json_success(json.dumps(datasource.data)) @has_access_api -@expose("/queries/") -def queries(self, last_updated_ms: int) -> FlaskResponse: +@expose("/queries/") +def queries(self, last_updated_ms: str) -> FlaskResponse: """ Get the updated queries. :param last_updated_ms: unix time, milliseconds """ -return self.queries_exec(last_updated_ms) +last_updated_ms_int = int(float(last_updated_ms)) if last_updated_ms else 0 +return self.queries_exec(last_updated_ms_int) def queries_exec(self, last_updated_ms: int) -> FlaskResponse: stats_logger.incr("queries") diff --git a/tests/sqllab_tests.py b/tests/sqllab_tests.py index 6f08f0d..e88c1b0 100644 --- a/tests/sqllab_tests.py +++ b/tests/sqllab_tests.py @@ -210,7 +210,7 @@ class SqlLabTests(SupersetTestCase): db.session.commit() data = self.get_json_resp( -"/superset/queries/{}".format(int(datetime_to_epoch(now)) - 1000) +"/superset/queries/{}".format(float(datetime_to_epoch(now)) - 1000) ) self.assertEqual(1, len(data))
[incubator-superset] branch master updated: Update prefer_typescript.yml (#10069)
This is an automated email from the ASF dual-hosted git repository. erikrit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 334bd6e Update prefer_typescript.yml (#10069) 334bd6e is described below commit 334bd6e98925e3bbf0bef7c296449630d7660e4c Author: Erik Ritter AuthorDate: Tue Jun 16 10:00:30 2020 -0700 Update prefer_typescript.yml (#10069) --- .github/workflows/prefer_typescript.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prefer_typescript.yml b/.github/workflows/prefer_typescript.yml index 79bbfc2..230146d 100644 --- a/.github/workflows/prefer_typescript.yml +++ b/.github/workflows/prefer_typescript.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Get changed files id: changed -uses: trilom/file-changes-action@v1.2.3 +uses: trilom/file-changes-action@master with: githubToken: ${{ secrets.GITHUB_TOKEN }} - name: Determine if a .js or .jsx file was added
[incubator-superset] branch etr2460-patch-2 created (now 84ee36a)
This is an automated email from the ASF dual-hosted git repository. erikrit pushed a change to branch etr2460-patch-2 in repository https://gitbox.apache.org/repos/asf/incubator-superset.git. at 84ee36a Update prefer_typescript.yml This branch includes the following new commits: new 84ee36a Update prefer_typescript.yml The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[incubator-superset] 01/01: Update prefer_typescript.yml
This is an automated email from the ASF dual-hosted git repository. erikrit pushed a commit to branch etr2460-patch-2 in repository https://gitbox.apache.org/repos/asf/incubator-superset.git commit 84ee36a2c6f1ee09167c5c4f540e2c9b8900aaf0 Author: Erik Ritter AuthorDate: Tue Jun 16 09:45:32 2020 -0700 Update prefer_typescript.yml --- .github/workflows/prefer_typescript.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prefer_typescript.yml b/.github/workflows/prefer_typescript.yml index 79bbfc2..230146d 100644 --- a/.github/workflows/prefer_typescript.yml +++ b/.github/workflows/prefer_typescript.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Get changed files id: changed -uses: trilom/file-changes-action@v1.2.3 +uses: trilom/file-changes-action@master with: githubToken: ${{ secrets.GITHUB_TOKEN }} - name: Determine if a .js or .jsx file was added
[incubator-superset] branch master updated: docs: Add DouroECI to list of users on readme (#10065)
This is an automated email from the ASF dual-hosted git repository. dpgaspar pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 51a42a2 docs: Add DouroECI to list of users on readme (#10065) 51a42a2 is described below commit 51a42a27e77edcb64ad837a8a93e6f3404fe6e21 Author: Nuno Beires <34506966+nunohelibei...@users.noreply.github.com> AuthorDate: Tue Jun 16 14:50:49 2020 +0100 docs: Add DouroECI to list of users on readme (#10065) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 77a21a4..60f55b4 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ Join our growing community! 1. [Dial Once](https://www.dial-once.com/en/) 1. [Digit Game Studios](https://www.digitgaming.com/) 1. [Douban](https://www.douban.com/) [@luchuan] + 1. [DouroECI](http://douroeci.com/en/) [@nunohelibeires] 1. [Dragonpass](https://www.dragonpass.com.cn/) [@zhxjdwh] 1. [Dremio](https://dremio.com) [@narendrans] 1. [ELMO Cloud HR & Payroll](https://elmosoftware.com.au/)