[incubator-superset] branch master updated (817b7aa -> 02fee35)

2020-06-17 Thread maximebeauchemin
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 817b7aa  style: Change logo color to new branding (#10090)
 add 02fee35  chore(metricoption): remove metricoption and columntypelable 
dependency (#10077)

No new revisions were added by this update.

Summary of changes:
 superset-frontend/package-lock.json| 27 ++-
 superset-frontend/package.json |  2 +-
 .../components/ColumnTypeLabel_spec.jsx|  3 +-
 .../javascripts/components/MetricOption_spec.jsx   | 85 --
 .../components/MetricDefinitionOption_spec.jsx |  3 +-
 .../components/MetricDefinitionValue_spec.jsx  |  2 +-
 .../src/components/ColumnTypeLabel.jsx | 64 
 superset-frontend/src/components/MetricOption.jsx  | 84 -
 .../explore/components/AdhocMetricStaticOption.jsx |  2 +-
 .../src/explore/components/AggregateOption.jsx |  2 +-
 .../explore/components/FilterDefinitionOption.jsx  |  3 +-
 .../explore/components/MetricDefinitionOption.jsx  |  3 +-
 .../explore/components/MetricDefinitionValue.jsx   |  2 +-
 .../components/controls/DatasourceControl.jsx  |  3 +-
 .../src/visualizations/TimeTable/TimeTable.jsx |  6 +-
 15 files changed, 38 insertions(+), 253 deletions(-)
 delete mode 100644 
superset-frontend/spec/javascripts/components/MetricOption_spec.jsx
 delete mode 100644 superset-frontend/src/components/ColumnTypeLabel.jsx
 delete mode 100644 superset-frontend/src/components/MetricOption.jsx



[incubator-superset] branch master updated (c914af0 -> 817b7aa)

2020-06-17 Thread rusackas
This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


from c914af0  fix: adds pagination/infinite scroll to owners select in 
DashboardList and ChartList (#10035)
 add 817b7aa  style: Change logo color to new branding (#10090)

No new revisions were added by this update.

Summary of changes:
 .../branding/superset-logo-horiz-apache.png| Bin 91213 -> 121779 bytes
 .../branding/superset-logo-horiz-apache.svg|  39 +++--
 superset-frontend/branding/superset-logo-horiz.png | Bin 82726 -> 109684 bytes
 superset-frontend/branding/superset-logo-horiz.svg |  33 +++--
 .../branding/superset-logo-stacked-apache.png  | Bin 156143 -> 208790 bytes
 .../branding/superset-logo-stacked-apache.svg  |  39 +++--
 .../branding/superset-logo-stacked.png | Bin 144713 -> 190240 bytes
 .../branding/superset-logo-stacked.svg |  33 +++--
 8 files changed, 132 insertions(+), 12 deletions(-)



[incubator-superset] branch master updated (be6b9b8 -> c914af0)

2020-06-17 Thread tai
This is an automated email from the ASF dual-hosted git repository.

tai pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


from be6b9b8  feat: implement dttm column configuration through db extra 
config (#9444)
 add c914af0  fix: adds pagination/infinite scroll to owners select in 
DashboardList and ChartList (#10035)

No new revisions were added by this update.

Summary of changes:
 superset-frontend/package-lock.json| 41 
 superset-frontend/package.json |  1 +
 .../components/ListView/ListView_spec.jsx  |  5 +--
 .../src/components/ListView/Filters.tsx| 44 ++
 .../src/components/ListView/ListView.tsx   |  4 +-
 superset-frontend/src/components/ListView/types.ts |  1 +
 .../src/components/Select/SupersetStyledSelect.tsx |  4 ++
 .../src/views/chartList/ChartList.tsx  |  2 +
 .../src/views/dashboardList/DashboardList.tsx  |  1 +
 9 files changed, 89 insertions(+), 14 deletions(-)



[incubator-superset] branch master updated (01aede0 -> be6b9b8)

2020-06-17 Thread bkyryliuk
This is an automated email from the ASF dual-hosted git repository.

bkyryliuk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


from 01aede0  refactor: Break up superset/views/core.py (#10078)
 add be6b9b8  feat: implement dttm column configuration through db extra 
config (#9444)

No new revisions were added by this update.

Summary of changes:
 superset/config.py |   8 ++
 superset/connectors/sqla/models.py |   3 +
 tests/config_tests.py  | 176 +
 tests/dict_import_export_tests.py  |   3 +
 4 files changed, 190 insertions(+)
 create mode 100644 tests/config_tests.py



[incubator-superset] branch master updated (987cb6e -> 01aede0)

2020-06-17 Thread craigrueda
This is an automated email from the ASF dual-hosted git repository.

craigrueda pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


from 987cb6e  chore: type src/dashboard/util/charts (#10068)
 add 01aede0  refactor: Break up superset/views/core.py (#10078)

No new revisions were added by this update.

Summary of changes:
 .pylintrc  |   2 +-
 superset/app.py|  14 +-
 superset/views/__init__.py |   4 +
 .../views/{log/views.py => access_requests.py} |  32 +-
 superset/views/base.py |  17 +-
 superset/views/core.py | 321 ++---
 superset/views/{log/views.py => css_templates.py}  |  30 +-
 .../versions/46ba6c97_.py => views/health.py}  |  30 +-
 superset/views/key_value.py|  56 
 superset/views/redirects.py|  60 
 superset/views/utils.py| 155 +-
 tests/core_tests.py|   5 +-
 12 files changed, 375 insertions(+), 351 deletions(-)
 copy superset/views/{log/views.py => access_requests.py} (51%)
 copy superset/views/{log/views.py => css_templates.py} (50%)
 copy superset/{migrations/versions/46ba6c97_.py => views/health.py} (67%)
 create mode 100644 superset/views/key_value.py
 create mode 100644 superset/views/redirects.py



[incubator-superset] branch master updated (5d4d50a -> 987cb6e)

2020-06-17 Thread yjc
This is an automated email from the ASF dual-hosted git repository.

yjc pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


from 5d4d50a  fix(sqllab): table refresh API endpoint (#10076)
 add 987cb6e  chore: type src/dashboard/util/charts (#10068)

No new revisions were added by this update.

Summary of changes:
 ...spec.js => getFormDataWithExtraFilters_spec.ts} |  2 +-
 .../src/{CRUD/crud.less => dashboard/types.ts} | 43 +-
 ...ExtraFilters.js => getEffectiveExtraFilters.ts} |  4 +-
 ...raFilters.js => getFormDataWithExtraFilters.ts} | 14 ++-
 4 files changed, 25 insertions(+), 38 deletions(-)
 rename 
superset-frontend/spec/javascripts/dashboard/util/{getFormDataWithExtraFilters_spec.js
 => getFormDataWithExtraFilters_spec.ts} (98%)
 copy superset-frontend/src/{CRUD/crud.less => dashboard/types.ts} (60%)
 rename 
superset-frontend/src/dashboard/util/charts/{getEffectiveExtraFilters.js => 
getEffectiveExtraFilters.ts} (87%)
 rename 
superset-frontend/src/dashboard/util/charts/{getFormDataWithExtraFilters.js => 
getFormDataWithExtraFilters.ts} (87%)



[incubator-superset] branch master updated (29e9f2c -> 5d4d50a)

2020-06-17 Thread yjc
This is an automated email from the ASF dual-hosted git repository.

yjc pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


from 29e9f2c  feat: superset report slack integration (#9810)
 add 5d4d50a  fix(sqllab): table refresh API endpoint (#10076)

No new revisions were added by this update.

Summary of changes:
 superset-frontend/src/components/TableSelector.jsx | 100 -
 1 file changed, 58 insertions(+), 42 deletions(-)



[incubator-superset] branch cartel updated (743b34e -> 0f40ce3)

2020-06-17 Thread yjc
This is an automated email from the ASF dual-hosted git repository.

yjc pushed a change to branch cartel
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


 discard 743b34e  Update theme

This update removed existing revisions from the reference, leaving the
reference pointing at a previous point in the repository history.

 * -- * -- N   refs/heads/cartel (0f40ce3)
\
 O -- O -- O   (743b34e)

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

No new revisions were added by this update.

Summary of changes:
 .../src/SqlLab/components/SqlEditor.jsx|  4 +-
 superset-frontend/src/SqlLab/main.less |  3 --
 superset-frontend/src/components/Button.jsx|  2 +-
 superset-frontend/stylesheets/less/index.less  |  1 -
 superset-frontend/stylesheets/less/variables.less  | 26 
 superset-frontend/stylesheets/superset-theme.less  | 46 --
 superset-frontend/stylesheets/superset.less|  3 --
 7 files changed, 10 insertions(+), 75 deletions(-)
 delete mode 100644 superset-frontend/stylesheets/superset-theme.less



[incubator-superset] branch master updated (28bb2e1 -> 29e9f2c)

2020-06-17 Thread bkyryliuk
This is an automated email from the ASF dual-hosted git repository.

bkyryliuk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


from 28bb2e1  docs: FAQ entry for 'Does Superset have an API' (#10071)
 add 29e9f2c  feat: superset report slack integration (#9810)

No new revisions were added by this update.

Summary of changes:
 requirements.txt   |   1 +
 setup.py   |   1 +
 superset/config.py |   4 +
 ...y => 743a117f0d98_add_slack_to_the_schedule.py} |  21 +--
 superset/models/schedules.py   |   1 +
 superset/tasks/schedules.py| 196 +++--
 superset/tasks/slack_util.py   |  46 +
 superset/views/schedules.py|  22 ++-
 tests/schedules_test.py| 134 --
 9 files changed, 353 insertions(+), 73 deletions(-)
 copy superset/migrations/versions/{f1f2d4af5b90_.py => 
743a117f0d98_add_slack_to_the_schedule.py} (66%)
 create mode 100644 superset/tasks/slack_util.py



[incubator-superset] 01/01: Update theme

2020-06-17 Thread yjc
This is an automated email from the ASF dual-hosted git repository.

yjc pushed a commit to branch cartel
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 743b34eb8730a5915896b680e9ba08398b441db7
Author: Jesse Yang 
AuthorDate: Wed Jun 17 11:00:10 2020 -0700

Update theme
---
 .../src/SqlLab/components/SqlEditor.jsx|  4 +-
 superset-frontend/src/SqlLab/main.less |  3 ++
 superset-frontend/src/components/Button.jsx|  2 +-
 superset-frontend/stylesheets/less/index.less  |  1 +
 superset-frontend/stylesheets/less/variables.less  | 26 
 .../{less/index.less => superset-theme.less}   | 47 ++
 superset-frontend/stylesheets/superset.less|  3 ++
 7 files changed, 51 insertions(+), 35 deletions(-)

diff --git a/superset-frontend/src/SqlLab/components/SqlEditor.jsx 
b/superset-frontend/src/SqlLab/components/SqlEditor.jsx
index 7f1123c..94b8276 100644
--- a/superset-frontend/src/SqlLab/components/SqlEditor.jsx
+++ b/superset-frontend/src/SqlLab/components/SqlEditor.jsx
@@ -509,13 +509,13 @@ class SqlEditor extends React.PureComponent {
   
 
 
-  
 {' '}
 {t('Autocomplete')}
-  {' '}
+  {' '}
{
diff --git a/superset-frontend/src/SqlLab/main.less 
b/superset-frontend/src/SqlLab/main.less
index e8047b3..a435cdf 100644
--- a/superset-frontend/src/SqlLab/main.less
+++ b/superset-frontend/src/SqlLab/main.less
@@ -161,6 +161,9 @@ div.Workspace {
 font-feature-settings: 'kern' 1, 'tnum' 1;
   }
 }
+.autocomplete {
+  cursor: pointer;
+}
   }
 }
 
diff --git a/superset-frontend/src/components/Button.jsx 
b/superset-frontend/src/components/Button.jsx
index 8cd7105..5e12a73 100644
--- a/superset-frontend/src/components/Button.jsx
+++ b/superset-frontend/src/components/Button.jsx
@@ -43,7 +43,7 @@ const defaultProps = {
 const BUTTON_WRAPPER_STYLE = { display: 'inline-block', cursor: 'not-allowed' 
};
 
 export default function Button(props) {
-  const buttonProps = { ...props };
+  const buttonProps = { bsStyle: 'secondary', ...props };
   const tooltip = props.tooltip;
   const placement = props.placement;
   delete buttonProps.tooltip;
diff --git a/superset-frontend/stylesheets/less/index.less 
b/superset-frontend/stylesheets/less/index.less
index 86a8989..85481c4 100644
--- a/superset-frontend/stylesheets/less/index.less
+++ b/superset-frontend/stylesheets/less/index.less
@@ -27,6 +27,7 @@ html,
 body {
   font-size: @font-size-base;
   line-height: @line-height-base;
+  background-color: @brand-gray-lightest;
 }
 
 body {
diff --git a/superset-frontend/stylesheets/less/variables.less 
b/superset-frontend/stylesheets/less/variables.less
index e7ede59..fa1c617 100644
--- a/superset-frontend/stylesheets/less/variables.less
+++ b/superset-frontend/stylesheets/less/variables.less
@@ -16,6 +16,14 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+//
+/* BOOTSTRAP/BOOTSWATCH/COSMO   */
+/* These are the legacy Cosmo theme overrides to Bootswatch's   */
+/* overrides to Bootstrap. We should consolidate/deprecate these*/
+/* in favor of custom/reusable CSS wherever possible*/
+//
+
+@import '../less/cosmo/variables.less';
 
 //
 /* COLORS   */
@@ -45,6 +53,13 @@
 @brand-secondary-light4: #eceef2;
 @brand-secondary-light5: #f5f5f8;
 
+@brand-text-default: #393939;
+@brand-text-secondary: #b2b2b2;
+@brand-gray-light: #f0f0f0;
+@brand-gray-lightest: #f7f7f7;
+@brand-gray-tinted: #ebedf2;
+@brand-gray-darkest: #656565;
+
 @almost-black: #263238;
 @gray-dark: #484848;
 @gray-light: #cfd8dc;
@@ -56,7 +71,7 @@
 @darkest: #00;
 
 / text-specific */
-@link: @brand-primary;
+@link: @brand-text-default;
 @link-hover: darken(@link, @colorstop-one);
 
 /* status colors /
@@ -198,10 +213,7 @@
 @border-radius-large: (@border-radius-normal * 2);
 
 //
-/* BOOTSTRAP/BOOTSWATCH/COSMO   */
-/* These are the legacy Cosmo theme overrides to Bootswatch's   */
-/* overrides to Bootstrap. We should consolidate/deprecate these*/
-/* in favor of custom/reusable CSS wherever possible*/
+/* SPACING  */
 //
-
-@import '../less/cosmo/variables.less';
+// @padding-

[incubator-superset] branch cartel created (now 743b34e)

2020-06-17 Thread yjc
This is an automated email from the ASF dual-hosted git repository.

yjc pushed a change to branch cartel
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


  at 743b34e  Update theme

This branch includes the following new commits:

 new 743b34e  Update theme

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] branch master updated (eba1fe2 -> 28bb2e1)

2020-06-17 Thread dpgaspar
This is an automated email from the ASF dual-hosted git repository.

dpgaspar pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


from eba1fe2  fix: Ensuring queries route accepts float or int (#10079)
 add 28bb2e1  docs: FAQ entry for 'Does Superset have an API' (#10071)

No new revisions were added by this update.

Summary of changes:
 docs/faq.rst | 22 ++
 1 file changed, 22 insertions(+)



[incubator-superset] branch master updated: fix: Ensuring queries route accepts float or int (#10079)

2020-06-17 Thread johnbodley
This is an automated email from the ASF dual-hosted git repository.

johnbodley 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 eba1fe2  fix: Ensuring queries route accepts float or int (#10079)
eba1fe2 is described below

commit eba1fe2ebb45a7a27d547a268c8097703e01b5b1
Author: John Bodley <4567245+john-bod...@users.noreply.github.com>
AuthorDate: Wed Jun 17 08:02:49 2020 -0700

fix: Ensuring queries route accepts float or int (#10079)

Co-authored-by: John Bodley 
---
 superset/views/core.py | 15 ---
 tests/sqllab_tests.py  |  2 ++
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index e173972..ad0343c 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2658,17 +2658,18 @@ class Superset(BaseSupersetView):
 return json_success(json.dumps(datasource.data))
 
 @has_access_api
-@expose("/queries/")
-def queries(self, last_updated_ms: str) -> FlaskResponse:
+@expose("/queries/")
+@expose("/queries/")
+def queries(self, last_updated_ms: Union[float, int]) -> FlaskResponse:
 """
 Get the updated queries.
 
-:param last_updated_ms: unix time, milliseconds
+:param last_updated_ms: Unix time (milliseconds)
 """
-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:
+return self.queries_exec(last_updated_ms)
+
+def queries_exec(self, last_updated_ms: Union[float, int]) -> 
FlaskResponse:
 stats_logger.incr("queries")
 if not g.user.get_id():
 return json_error_response(
@@ -2676,7 +2677,7 @@ class Superset(BaseSupersetView):
 )
 
 # UTC date time, same that is stored in the DB.
-last_updated_dt = utils.EPOCH + timedelta(seconds=last_updated_ms / 
1000)
+last_updated_dt = datetime.utcfromtimestamp(last_updated_ms / 1000)
 
 sql_queries = (
 db.session.query(Query)
diff --git a/tests/sqllab_tests.py b/tests/sqllab_tests.py
index e88c1b0..7c1b0e6 100644
--- a/tests/sqllab_tests.py
+++ b/tests/sqllab_tests.py
@@ -192,6 +192,8 @@ class SqlLabTests(SupersetTestCase):
 self.login("admin")
 data = self.get_json_resp("/superset/queries/0")
 self.assertEqual(2, len(data))
+data = self.get_json_resp("/superset/queries/0.0")
+self.assertEqual(2, len(data))
 
 # Run 2 more queries
 self.run_sql("SELECT * FROM birth_names LIMIT 1", 
client_id="client_id_4")