question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Data Source picker always disabled

See original GitHub issue

Describe the bug The layer data source picker is always disabled

Expected behavior The data source picker should be visible and enabled when there are multiple datasets

Additional context It seems that the data source picker is always disabled because of this check layer.type && config.columns. Since most layers have required columns, it’s not possible to change the data source for a layer, even if the default chosen is not at all suitable for that layer’s data.

Additionally, i’m getting the warning Warning: Failed prop type: Invalid prop 'disabled' of type 'object' supplied to 'ItemSelector', expected 'boolean'. Perhaps this is why it’s evaling to true?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
bskrtcommented, Jul 19, 2019

Noticed this too a while back, it’s not always disabled though; If you have multiple datasets loaded and create a new layer, you can’t select the dataset once you have selected a layer type. Though, if you press the 3 dots to expand the layer menu (before selecting a layer type), you will be able to select any loaded dataset.

I do totally agree that this feels like a bug, and it should be possible to change the dataset of an already set layer.

1reaction
bskrtcommented, Jul 25, 2019

Not necessarily a must have feature, but I would expand the UI group by default, so the dataset dropdown is visible. Right now it’s very easy to miss. To go a step further I would put the dataset field above the layer type. From a UX perspective it would be way clearer.

On Tue, 23 Jul 2019, 21:50 Shan He, notifications@github.com wrote:

The problem is if you change the dataset of an already set layer, the base column of that layer will not be valid anymore, unless kepler tries to find column with the same name in the new dataset. This goes on to all the color / radius / height based on columns. As a lazy solution, we simply disabled select dataset in a layer once it’s set.

If you think this is a must have feature, please create a feature request for “Allow Replacing source dataset in layers”

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/keplergl/kepler.gl/issues/617?email_source=notifications&email_token=AAFWODSP67DVOBNPOJFTJN3QA5OJTA5CNFSM4IE6VNV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2UHWOA#issuecomment-514358072, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFWODSF2E4BSBX2QC7XKQDQA5OJTANCNFSM4IE6VNVQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I change the Data Source in Power BI (di...
So, first we need to understand the logic that Power BI uses and why this option appears disabled. Everything happens within Power Query,...
Read more >
6 Common Google Data Studio Problems and How to Fix Them
Because Data Studio is a new product, its properties are constantly changing, and you may encounter some strange error messages. The messages are...
Read more >
cloud-init doesn't start when no data source is present
I am using KVM (via libvirt). 1. I take bionic-server-cloudimg-amd64.img from cloud-images.ubuntu.com. 2. I create a simple user-data file
Read more >
Data source disabled unexpectedly - IBM
But if collector does not recognize the error and cannot recover automatically, the data source was disabled. This action keeps the collector from ......
Read more >
Improved data source selection and Common Data Service ...
When the app has data sources, the data source picker shows those used in ... The view will always be executed on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found