Commit Graph

8661 Commits

Author SHA1 Message Date
dependabot[bot] bdc6a1d4e3
chore(deps-dev): bump @types/jquery in /superset-frontend (#17452)
Bumps [@types/jquery](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jquery) from 3.3.32 to 3.5.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jquery)

---
updated-dependencies:
- dependency-name: "@types/jquery"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-23 13:47:37 +02:00
minho95 2fffff6f8d
chore: Slovak translation, enabling language and adding first translations (#14783)
* Slovak translation - enabling language and adding first translations

* Linting fixes

* Adding basic translations

* Slovak translation - adding json file

* JSON lint fix

* Prettier fix

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-23 13:47:22 +02:00
dependabot[bot] 5622531a2f
chore(deps-dev): bump eslint-import-resolver-webpack (#17453)
Bumps [eslint-import-resolver-webpack](https://github.com/import-js/eslint-plugin-import) from 0.13.1 to 0.13.2.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/resolvers/webpack/v0.13.1...resolvers/webpack/v0.13.2)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-webpack
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-23 12:59:03 +02:00
aniaan c7a7865f46
docs(exploring-data): Add upload excel notes (#17502)
* docs(exploring-data): Add upload excel notes

* docs(exploring-data): Add upload Columnar file notes

* docs(exploring-data): fix typo
2021-11-23 12:54:59 +02:00
Ville Brofeldt 18c7aec985
chore: remove deprecated selects and deps (#17522) 2021-11-23 12:41:16 +02:00
David Regla 0f3b630454
fix: Bulk update Spanish translations (#16799)
* Bulk update Spanish translations

* Update Spanish translations

* Apply Spanish translations suggestions from code review

Co-authored-by: Diego M. Gómez <diegomgomez@gmail.com>

* convert json file

Co-authored-by: Diego M. Gómez <diegomgomez@gmail.com>
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-23 12:10:26 +02:00
Jesse Yang 27e7fb3a7c
chore: update node version in nvmrc (#17492)
#16809 updated node version but it didn't update nvmrc.
2021-11-23 11:18:22 +02:00
dependabot[bot] 29bc9f424b
chore(deps-dev): bump @babel/cli in /superset-frontend (#17500)
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.15.7 to 7.16.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.0/packages/babel-cli)

---
updated-dependencies:
- dependency-name: "@babel/cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-23 11:17:40 +02:00
Holger Bruch 228f93660d
chore(de-translation): update German translations (based on master) (#17441) (#17478)
* pybabel extract

* Add and correct de translations

* Revisited German translations

* Few German translation fixes

* Remove empty line at EOF

* Fix some translations
2021-11-23 11:11:16 +02:00
Long Le Xich bc855f4040
fix(hive): Update _latest_partition_from_df in HiveEngineSpec to work on tables with multiple indexes (#14302)
* Fix _latest_partition_from_df in HiveEngineSpec

* Add test HiveEngineSpec._latest_partition_from_df

* Fix formatting to pass black

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-23 10:07:47 +02:00
Ville Brofeldt 5d1c9078ad
chore(translations): fix translation literals (#17501)
* chore(translations): fix translation literals

* fix table name types and translations

* fix lint

* join concat'd messages
2021-11-23 10:06:09 +02:00
Shiva Raisinghani d05c561d7c
docs: add dropbox to users list (#17504)
* docs: add dropbox to users list

* add Bogdan as point of contact
2021-11-22 15:01:31 -08:00
Daman Arora daff9b4673
chore: migrate FormattedNumber component from jsx to tsx (#17361)
* migrate FormattedNumber component from jsx to tsx

* Unset default prop on format

* undo asserting and overriding the type for num

* Add a ts comment to ignore error
2021-11-22 13:42:37 -08:00
ofekisr 16e012fe5d
refactor(chart.commands): separate commands into two different modules (#17509)
refactor: move imports under TYPE_CHECKING
2021-11-22 19:57:52 +02:00
dkrat7 b750204984
Add files via upload (#17434) 2021-11-22 19:19:26 +02:00
Kamil Gabryjelski 1f8eff72de
fix: Always use temporal type for dttm columns [ID-2] (#17458)
* fix: Always use temporal type for dttm columns

* move inference and implement in chart postproc

* fix test

* fix test case

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-22 15:40:38 +01:00
ofekisr 66d756955b
refactor(QueryContext): separate all processing concerns into QueryContextProcessor (#17497) 2021-11-22 10:01:01 +02:00
jayakrishnankk 062039c280
docs: mention that username should be admin to load examples (#17484)
Co-authored-by: Jayakrishnan Karolil <jayakrishnan.karolil@nielsen.com>
2021-11-21 17:07:16 -05:00
Rafał Ganczarek 8da982bc7c
fix(presto): expand data with null item (#17470)
* fix(presto): expand data with null item

* Fixed pre-commit check
2021-11-21 20:10:35 +02:00
kurtiswen 19f1c40870
docs: Update frequently-asked-questions-page.mdx (#14837)
* Update frequently-asked-questions-page.mdx

refine answer for first question, added SQL Lab query description.

* fix EOL lint

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-21 19:36:10 +02:00
ofekisr 4b7d06c14b
refactor(QueryContext): move df methods utils to utils package (#17496)
* chore(common.utils): modified utils from module based to package based

* refactor(common.utils): move QueryCacheManager to ad-hoc module

* refactor(QueryContext): move df method utils to utils module
2021-11-21 16:01:18 +02:00
ofekisr 8a6ecd3b97
refactor(QueryContext): add QueryContextFactory (#17495) 2021-11-21 14:35:46 +02:00
Ville Brofeldt 261e4185ab
chore(deps): bump cachelib from 0.1.1 to 0.4.1 (#17482) 2021-11-21 10:13:28 +02:00
AAfghahi 69c3cc712d
chore(sql_lab): Added Unit Test for stop query exception (#17464)
* added unit test

* feedback implemented
2021-11-19 12:58:12 -05:00
Corbin Robb 8e1619b105
fix(sqllab): Have table name tooltip only show when name is truncated (#17386)
* Add conditional to table name tooltip to only show when overflowing

* Remove uneccessary state and useEffect, a little clean up and slight refactoring

Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>
2021-11-19 09:34:28 -08:00
Daniel Vaz Gaspar 69f9ee8f5e
fix: feature flags typing (#15254)
* fix: feature flags typing

* fix tests

* add note in UPDATING.md

* fix frontend

* also move SCHEDULED_QUERIES to top level

* fix test

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-19 15:56:16 +00:00
kamalkeshavani-aiinside 02a9b84b14
chore: Bump FAB to 3.4.0 (#17420)
Bumping FAB to latest 3.4.0
2021-11-19 14:59:03 +00:00
dependabot[bot] 8d8fbac838
chore(deps-dev): bump @types/react-loadable in /superset-frontend (#17454)
Bumps [@types/react-loadable](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-loadable) from 5.5.4 to 5.5.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-loadable)

---
updated-dependencies:
- dependency-name: "@types/react-loadable"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-19 15:17:39 +02:00
Hugh A. Miles II fb1bc6c9c3
Update Makefile (#17480) 2021-11-18 17:33:01 -05:00
Hugh A. Miles II 7b68002eb1
fix: create-admin command in Makefile (#17471)
* update make file

* Update Makefile
2021-11-18 15:52:30 -05:00
ofekisr 683d1dab13
refactor(QueryObject): decouple from superset (#17479)
* refactor: queryObject - decouple from superset

* refactor: queryObject - decouple from superset
2021-11-18 19:53:56 +02:00
Geido b2363e4151
fix(Dashboard): Save empty label_colors in json_metadata (#17462)
* Save empty label_colors

* Format
2021-11-18 19:11:49 +02:00
ofekisr 377db1bd71
refactor: queryObject - add QueryObjectFactory (#17466) 2021-11-18 17:38:17 +02:00
ofekisr b914e2d497
refactor: queryObject - decouple from queryContext and clean code (#17465) 2021-11-18 14:28:51 +02:00
Augustin Doury 56d742f8d1
chore(fr-translation): update whole French translation (based on 1.3.0 release) (#16868)
* Update whole French translation (from 1.3.0)

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

Co-authored-by: martin-raymond <martin.raymond31@gmail.com>

* Update superset/translations/fr/LC_MESSAGES/messages.po

* Update superset/translations/fr/LC_MESSAGES/messages.json

* Update and fix superset/translations/fr/LC_MESSAGES/messages.po after extracting new strings

* Update superset/translations/fr/LC_MESSAGES/messages.po by fixing fuzzy lines and filling missing strings

* Update superset/translations/fr/LC_MESSAGES/messages.po : just rerun `pybabel update`

* Update superset/translations/fr/LC_MESSAGES/messages.json

* Update superset/translations/fr/LC_MESSAGES/messages.po: fix redundant new line at EOF

Co-authored-by: mathieudruart <mathieudruart@users.noreply.github.com>
Co-authored-by: martin-raymond <martin.raymond31@gmail.com>
2021-11-18 07:29:49 +02:00
ofekisr 3f2129b895
refactor: chartDataCommand - remove the responsibly of creating query context from command (#17461) 2021-11-17 17:13:40 +02:00
Bruno FERNANDO c54027a0f9
fix(views/core): iteration over None type (#14305)
* fix(views/core): iteration over None type

* fix(views/core): apply suggestion
2021-11-17 12:44:36 +02:00
Ville Brofeldt 9cfce64959
fix(docker): add ecpg to docker image (#16566) 2021-11-17 12:23:54 +02:00
Yongjie Zhao 9070b6b19c
refactor(monorepo): stage 1 (#17427)
* skip geojson in pre-commit

update prettier

* update package.json

update package.json

u package

pkg

pkg2

* lint main repo 2

lint main repo

lint

* lintrc

lintrc 2

lintrc2

lintrc 3

lintrc

* fix import

* refresh lock file

* fix break line make @ts-ignore invalid

* update rat-excludes

rat-excludes

update rat-excludes

* update eslintrc.js

* lint lint lint
2021-11-17 15:31:36 +08:00
Hugh A. Miles II 34d7f0a860
chore: Ignore docs directory for dependabot (#17451)
* Ignore docs directory

* fix
2021-11-16 15:18:37 -05:00
jinghua-qa 1e2c83419c
test: add native filter default value e2e (#17398)
* add native filter default value e2e test

* fix lint

* remove unnecessary check
2021-11-16 18:54:08 +02:00
Evan Rusackas 96bdcc3493
chore: bumping react syntax highlighter and thusly prismjs (#17439) 2021-11-16 08:55:00 -07:00
Geido c2d8b0e72f
chore: Notify user of custom label colors and related Dashboard color scheme (#17422)
* Add alert for custom label colors

* Fix duplicate linear scheme

* Implement dashboard alert

* Remove trailing space

* Update Cypress

* Simplify check
2021-11-16 17:46:39 +02:00
dependabot[bot] c829614c42
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 in /docs (#14576)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-16 14:59:03 +02:00
binome74 211b32a4cd
fix(mssql): week time grain should respect datefirst setting (#10811)
* "P1W" grain should respect DATEFIRST setting in MS SQL Server

* Added "week_start_sunday" and "week_start_monday" grains support. Adjusted the "week" grain for better backward compatibility with MS SQL 2005/2008.

* Stylistic and linter-requested changes

* fix test

Co-authored-by: Valeriy Aleksashkin <v.aleksashkin@gmail.com>
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-16 09:36:37 +02:00
Elizabeth Thompson 3ee9e11ce1
feat: add a config to enable retina quality images in screenshots (#17409)
* add feature flag for retina screenshot support

* use config for pixel density

* run black
2021-11-15 12:47:40 -08:00
Grace Guo 9f1bf1cbd5
fix: do not show migration toast if user not enable dashboard filter components (#17440) 2021-11-15 11:27:24 -08:00
Lyndsi Kay Williams eb029ab068
fix(sql lab): NULL styling in grid cell (#17385)
* Fix NULL styling in gridCell

* removed unnecessary imports

* Added null styling back to renderGridCell

* Cleaned up a little code as per Elizabeth

* Found another little cleanup spot
2021-11-15 10:49:35 -08:00
Elizabeth Thompson 71e3fa1bf3
use full resultType with csv download on chart in dashboard (#17431) 2021-11-15 09:57:05 -08:00
minzhang2110 9741eaa731
Fix 'DataFrame' object has no attribute 'ix' (#12092)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py", line 109, in wraps
    return f(self, *args, **kwargs)
  File "/app/superset/utils/log.py", line 164, in wrapper
    value = f(*args, **kwargs)
  File "/app/superset/views/core.py", line 2037, in extra_table_metadata
    mydb, table_name, parsed_schema
  File "/app/superset/db_engine_specs/presto.py", line 734, in extra_table_metadata
    table_name, schema_name, database, show_first=True
  File "/usr/local/lib/python3.7/site-packages/flask_caching/__init__.py", line 907, in decorated_function
    rv = f(*args, **kwargs)
  File "/app/superset/db_engine_specs/presto.py", line 977, in latest_partition
    return column_names, cls._latest_partition_from_df(df)
  File "/app/superset/db_engine_specs/hive.py", line 435, in _latest_partition_from_df
    return [df.ix[:, 0].max().split("=")[1]]
  File "/usr/local/lib/python3.7/site-packages/pandas/core/generic.py", line 5139, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'ix'

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-11-15 16:52:50 +02:00