Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot choose linear color scheme #6556

Closed
3 tasks
XuanmoFeng opened this issue Dec 20, 2018 · 1 comment · Fixed by #6574
Closed
3 tasks

Cannot choose linear color scheme #6556

XuanmoFeng opened this issue Dec 20, 2018 · 1 comment · Fixed by #6574
Labels
!deprecated-label:bug Deprecated label - Use #bug instead v0.29

Comments

@XuanmoFeng
Copy link

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version

0.29.orc7

Expected results

image

Actual results

0.29.orc5 we can choose the color,but the 0.29.orc7 can't.

Steps to reproduce

@XuanmoFeng XuanmoFeng changed the title With version 0.29.orc7, we can't choose the color. With version 0.29.orc7, we can't choose the color.#bug Dec 24, 2018
@XuanmoFeng XuanmoFeng changed the title With version 0.29.orc7, we can't choose the color.#bug With version 0.29.orc7, we can't choose the color. Dec 24, 2018
@kristw kristw added v0.29 !deprecated-label:bug Deprecated label - Use #bug instead labels Dec 24, 2018
@kristw kristw changed the title With version 0.29.orc7, we can't choose the color. Cannot choose linear color scheme Dec 24, 2018
@aboganas
Copy link
Contributor

This is the error. seems key.value in here is undefined

ColorSchemeControl.jsx?002f:53 Uncaught TypeError: Cannot read property 'value' of undefined
    at ProxyComponent.renderOption (ColorSchemeControl.jsx?002f:53)
    at ProxyComponent.renderOption (react-hot-loader.development.js?c2cb:693)
    at eval (react-select.es.js?f059:144)
    at Array.map (<anonymous>)
    at menuRenderer (react-select.es.js?f059:111)
    at ProxyComponent.menuRenderer$$1 (react-select.es.js?f059:2379)
    at ProxyComponent.menuRenderer$$1 (react-hot-loader.development.js?c2cb:693)
    at ProxyComponent.renderMenu (react-select.es.js?f059:1710)
    at ProxyComponent.renderMenu (react-hot-loader.development.js?c2cb:693)
    at ProxyComponent.renderOuter (react-select.es.js?f059:1801)
renderOption @ ColorSchemeControl.jsx?002f:53
startTimer @ react-hot-loader.development.js?c2cb:693
(anonymous) @ react-select.es.js?f059:144
menuRenderer @ react-select.es.js?f059:111
menuRenderer$$1 @ react-select.es.js?f059:2379
startTimer @ react-hot-loader.development.js?c2cb:693
renderMenu @ react-select.es.js?f059:1710
startTimer @ react-hot-loader.development.js?c2cb:693
renderOuter @ react-select.es.js?f059:1801
startTimer @ react-hot-loader.development.js?c2cb:693
render @ react-select.es.js?f059:1901
hotComponentRender @ react-hot-loader.development.js?c2cb:728
proxiedRender @ react-hot-loader.development.js?c2cb:748
finishClassComponent @ react-dom.development.js?61bb:14301
updateClassComponent @ react-dom.development.js?61bb:14264
beginWork @ react-dom.development.js?61bb:15082
performUnitOfWork @ react-dom.development.js?61bb:17820
workLoop @ react-dom.development.js?61bb:17860
callCallback @ react-dom.development.js?61bb:149
invokeGuardedCallbackDev @ react-dom.development.js?61bb:199
invokeGuardedCallback @ react-dom.development.js?61bb:256
replayUnitOfWork @ react-dom.development.js?61bb:17107
renderRoot @ react-dom.development.js?61bb:17979
performWorkOnRoot @ react-dom.development.js?61bb:18837
performWork @ react-dom.development.js?61bb:18749
performSyncWork @ react-dom.development.js?61bb:18723
interactiveUpdates$1 @ react-dom.development.js?61bb:18992
interactiveUpdates @ react-dom.development.js?61bb:2169
dispatchInteractiveEvent @ react-dom.development.js?61bb:4876
react-dom.development.js?61bb:15749 The above error occurred in the <Select> component:
    in Select (created by CreatableSelect)
    in CreatableSelect (created by ColorSchemeControl)
    in div (created by ColorSchemeControl)
    in ColorSchemeControl (created by Control)
    in div (created by Control)
    in Control (created by ControlPanelsContainer)
    in div (created by ControlSetRow)
    in div (created by ControlSetRow)
    in ControlSetRow (created by ControlPanelsContainer)
    in div (created by Panel)
    in div (created by Panel)
    in Transition (created by Collapse)
    in Collapse (created by Panel)
    in div (created by Panel)
    in Panel (created by ControlPanelSection)
    in ControlPanelSection (created by ControlPanelsContainer)
    in div (created by TabPane)
    in Transition (created by Fade)
    in Fade (created by TabPane)
    in TabPane (created by Tab)
    in Tab (created by ControlPanelsContainer)
    in div (created by TabContent)
    in TabContent (created by Tabs)
    in div (created by Tabs)
    in TabContainer (created by Tabs)
    in Tabs (created by Uncontrolled(Tabs))
    in Uncontrolled(Tabs) (created by ControlPanelsContainer)
    in div (created by ControlPanelsContainer)
    in div (created by ControlPanelsContainer)
    in ControlPanelsContainer (created by Connect(ControlPanelsContainer))
    in Connect(ControlPanelsContainer) (created by ExploreViewContainer)
    in div (created by ExploreViewContainer)
    in div (created by ExploreViewContainer)
    in div (created by ExploreViewContainer)
    in ExploreViewContainer (created by Connect(ExploreViewContainer))
    in Connect(ExploreViewContainer) (created by App)
    in div (created by App)
    in Provider (created by App)
    in App (created by HotExportedApp)
    in AppContainer (created by HotExportedApp)
    in HotExportedApp

React will try to recreate this component tree from scratch using the error boundary you provided, AppContainer.
logCapturedError @ react-dom.development.js?61bb:15749
logError @ react-dom.development.js?61bb:15783
callback @ react-dom.development.js?61bb:16678
callCallback @ react-dom.development.js?61bb:11164
commitUpdateEffects @ react-dom.development.js?61bb:11203
commitUpdateQueue @ react-dom.development.js?61bb:11194
commitLifeCycles @ react-dom.development.js?61bb:15991
commitAllLifeCycles @ react-dom.development.js?61bb:17262
callCallback @ react-dom.development.js?61bb:149
invokeGuardedCallbackDev @ react-dom.development.js?61bb:199
invokeGuardedCallback @ react-dom.development.js?61bb:256
commitRoot @ react-dom.development.js?61bb:17458
completeRoot @ react-dom.development.js?61bb:18912
performWorkOnRoot @ react-dom.development.js?61bb:18841
performWork @ react-dom.development.js?61bb:18749
performSyncWork @ react-dom.development.js?61bb:18723
interactiveUpdates$1 @ react-dom.development.js?61bb:18992
interactiveUpdates @ react-dom.development.js?61bb:2169
dispatchInteractiveEvent @ react-dom.development.js?61bb:4876
react-hot-loader.development.js?c2cb:285 TypeError: Cannot read property 'value' of undefined
    at ProxyComponent.renderOption (ColorSchemeControl.jsx?002f:53)
    at ProxyComponent.renderOption (react-hot-loader.development.js?c2cb:693)
    at eval (react-select.es.js?f059:144)
    at Array.map (<anonymous>)
    at menuRenderer (react-select.es.js?f059:111)
    at ProxyComponent.menuRenderer$$1 (react-select.es.js?f059:2379)
    at ProxyComponent.menuRenderer$$1 (react-hot-loader.development.js?c2cb:693)
    at ProxyComponent.renderMenu (react-select.es.js?f059:1710)
    at ProxyComponent.renderMenu (react-hot-loader.development.js?c2cb:693)
    at ProxyComponent.renderOuter (react-select.es.js?f059:1801)
error @ react-hot-loader.development.js?c2cb:285
componentDidCatch @ react-hot-loader.development.js?c2cb:1292
callback @ react-dom.development.js?61bb:16679
callCallback @ react-dom.development.js?61bb:11164
commitUpdateEffects @ react-dom.development.js?61bb:11203
commitUpdateQueue @ react-dom.development.js?61bb:11194
commitLifeCycles @ react-dom.development.js?61bb:15991
commitAllLifeCycles @ react-dom.development.js?61bb:17262
callCallback @ react-dom.development.js?61bb:149
invokeGuardedCallbackDev @ react-dom.development.js?61bb:199
invokeGuardedCallback @ react-dom.development.js?61bb:256
commitRoot @ react-dom.development.js?61bb:17458
completeRoot @ react-dom.development.js?61bb:18912
performWorkOnRoot @ react-dom.development.js?61bb:18841
performWork @ react-dom.development.js?61bb:18749
performSyncWork @ react-dom.development.js?61bb:18723
interactiveUpdates$1 @ react-dom.development.js?61bb:18992
interactiveUpdates @ react-dom.development.js?61bb:2169
dispatchInteractiveEvent @ react-dom.development.js?61bb:4876

conglei pushed a commit to conglei/incubator-superset that referenced this issue Jan 7, 2019
john-bodley pushed a commit that referenced this issue Jan 11, 2019
* [SIP-3] Scheduled email reports for Slices / Dashboards (#5294)

* [scheduled reports] Add support for scheduled reports

* Scheduled email reports for slice and dashboard visualization
  (attachment or inline)
* Scheduled email reports for slice data (CSV attachment on inline table)
* Each schedule has a list of recipients (all of them can receive a single mail,
  or separate mails)
* All outgoing mails can have a mandatory bcc - for audit purposes.
* Each dashboard/slice can have multiple schedules.

In addition, this PR also makes a few minor improvements to the celery
infrastructure.
* Create a common celery app
* Added more celery annotations for the tasks
* Introduced celery beat
* Update docs about concurrency / pools

* [scheduled reports] - Debug mode for scheduled emails

* [scheduled reports] - Ability to send test mails

* [scheduled reports] - Test email functionality - minor improvements

* [scheduled reports] - Rebase with master. Minor fixes

* [scheduled reports] - Add warning messages

* [scheduled reports] - flake8

* [scheduled reports] - fix rebase

* [scheduled reports] - fix rebase

* [scheduled reports] - fix flake8

* [scheduled reports] Rebase in prep for merge

* Fixed alembic tree after rebase
* Updated requirements to latest version of packages (and tested)
* Removed py2 stuff

* [scheduled reports] - fix flake8

* [scheduled reports] - address review comments

* [scheduled reports] - rebase with master

* Typo: Fixed link (#6087)

* Update contributing.md with latest local dev instructions (#6513)

* Fix malformed table in docs/visualization.rst (#6409)

* Update requests version (#6510)

* Update requests version

* Run pip-compile --output-file requirements.txt

* [warm] Enforcing consistent form-data (#6531)

* Avoid resetting margin to 0 (#6536)

* Avoid resetting margin to 0

* Fixing margin for pie chart

* Refactor teradata to new time_grain_functions spec (#6539)

* Refactor teradata to new time_grain_functions spec

* Add test for time_grain_functions

* Add docker files to gitignore (#6507)

* add docker files to gitignore

* Update .gitignore

* adding in a dependency version to fix an error with Flask CLI (#6547)

* Fix string value displaying NaN (#6534)

* Documentation Correction to use http.server for Python3 (#6549)

* Remove note about snowflake-sqlalchemy stable version regression (#6398)

* filter_values documentation fix (#5977)

* Pass security manager to QUERY_LOGGER (#6548)

* Pass security manager to log_query

* Fix lint

* Increase size of column `name` in table `ab_view_meu` (#6532)

* Create migration script

* Use batch operation for ALTER COLUMN

* fix addr_str format bug (#6551)

* Fix deck.gl Polygon not show (#6545)

* Fix deck.gl Polygon not show

* Replace "//" to "// "

* Secure unsecured views and prevent regressions (#6553)

* Secure views and prevent regressions

* Force POST on shortner

* Fix tests

* [cosmetic] add css no-wrap on CRUD's last modified (#6522)

* [RfC] Fix URL too long (#6519)

When a URL gets too long (usually happens with controls that allow
free form text), it creates an array of bugs.
* bug when creating a short URL, because the POST request's referrer
field is too long
* a bug when saving a chart (when the modal shows up) also because of
the referrer being too long

Some work has been done in the past to mitigate this, and I'm unclear if
it's some sort of regression because of the Flask upgrade or some
browser change, or whether these bugs have always been around.

This is a request for comment on an approach that works. Let me know if
you can think of better ideas as to how to manage this.

My current solution looks for 8000+ characters URLs and shrinks them to
only `/superset/explore/?URL_IS_TOO_LONG_TO_SHARE&form_data=...` and we
only keep the formData keys for `datasource` and `viz_type`. Not super
elegant but does the trick.

* minor, auto tune debug mode when use flask_env (#6550)

* minor, auto tune debug mode when use flask_env

* update changes

* Make owner a m2m relation on datasources (#6544)

* Make owner a m2m relation on datasources

* Fix pylint

* Make migration work in mysql & sqlite

* Fix multiple db_migrations heads (#6560)

* [SIP-14] remove dependency on yarn in favor of npm (#6541)

* [SIP-14] remove dependency on yarn in favor of npm

Find more details here
#6217

* Add core-js to dev deps

* lint

* fix cypress

* break down cypress_build.sh

* fix cypress

* Use 'npm ci' in place of 'npm install'

* Bump npm req to >=6.5.0

* Enforcing  npm@'>=6.5.0'

* Using latest lts of nvm

* Make cache settings global

* remove uneeded 'npm run test' as 'npm run cover' takes care of that

* Prefix with 'time'

* Trying to upgrade babel-eslint instead of downgrading

* upgrading babel-polyfill to '@babel/polyfill'

* Moving to babel 7

* remove unused packages

* Make boto3/botocore installation optional (#6540)

* Make boto3 installation optional

* pylinting

* [SQL Lab] Allow running multiple statements (#6112)

* Allow running multiple statements from SQL Lab

* fix tests

* More tests

* merge heads

* fix heads

* Adding missing slash (#6567)

* [refactor] moving some datasource-related code to the frontend (#5769)

* [refactor] moving some datasource-related code to the frontend

* fix js tests

* fix tests

* fix test

* json_iso_dttm_ser use for TableViz (#6563)

* fix #6530 and add some other chinese translation (#6569)

* Fix: updated required cryptography version to 2.4.2 to resolve #6509 (#6516)

* Fix: updated required cryptography version to 2.4.2 to resolve #6509

* Fix: updated cryptography version to 2.4.2 to resolve #6509

* Fix: updated cryptography version to 2.4.2 to resolve #6509

* Revert "Fix: updated required cryptography version to 2.4.2 to resolve #6509"

This reverts commit b57b08c.

* Fix: updated cryptography version to 2.4.2

* Fix multi/dual when no right y axis (#6571)

* [design] use angle icons instead of carets for expandable panels (#6564)

* [design] use angle icons instead of carets for expandable panels

Also moving to the right to conform to the material design specs

* Fix cypress test

* fixing issue #6572 with Oracle date handling (#6580)

* fix Oracle engine specs for dates issue #6572

* fix Oracle engine specs for dates issue #6572

* fix Oracle engine specs for dates issue #6572, removing comment

* ng a trailing space

* Change margin for slice description in charts for the dashboard view (#6575)

Changed margin for the slices description in dashboard view, previously the margin was 5px for all the sides but for improve the view just apply margin for top and bottom.

* [bugfix] moving from reactable to reactable-arc fork (#6576)

* Using batch_op in db migration 0b1f1ab473c0 (#6581)

As I needed to downgrade from db migration 0b1f1ab473c0, I realized I
needed to use batch_op against SQLLite.

* Finish move to babel 7 (#6573)

* Finish move to babel 7

* Bump jest to 23.6.0

* Address comments

* Enhance Docker (#6504)

Refactored deprecated functionalities:
  - Used 'celery worker' command instead of 'superset worker' which is
    deprecated since 0.26.0
  - Used 'gunicorn' command instead of 'superset runserver'

* add chinese translate (#6592)

* Fix bug: some word not translate in js. (#6598)

delete the 'null,' in messages.json,
so that word can be translate in js.

* shift labels down along y-axis (#6596)

* Fix 'Uncaught TypeError: Cannot read property 'value' of undefined' #6556 (#6574)

closes #6556

* added get_data
;

* added cache logic

* added cache logic

* added cache key logic

* add missing part

* revised the metric part

* added to_dict

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix flake8

* fix invalid name

* fix invalid name

* fix invalid name

* enable worldcloid

* working version

* rebase

* fixed expore link issue

* add endpoint

* added migration script WIP

* fixed lint

* remove migration script

* fix flake8

* fix tesT

* fix tesT

* fix tesT

* fix typo

* fixed metric format

* fixed metric format

* fixed metric format

* fixed tests

* fixed test

* fixed druid test

* fixed more tests

* fixed more tests

* fix test for viz

* fixed js tests

* fixed ts test

* fixed ts test

* fixed cypress test

* fixed the metric format in filterViz
xtinec pushed a commit that referenced this issue Feb 4, 2019
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead v0.29
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants