Torque layer dependencies not correctly registered
See original GitHub issueContext
Due to a confusion with the meaning of Layer.data_layer
and Map.data_layers
(they are not the same), there are a bunch of pieces of code that are incorrect. This ticket illustrates one of them.
Steps to Reproduce
- Create a map
- Add a torque layer on dataset P
- Add a join analysis to the torque layer, with dataset Q
- Try to delete dataset Q
Current Result
You are not warned of a dependency with the map .
Expected result
You should be warned.
Additional info
The problem is that Carto::Map.update_dataset_dependencies
calls data_layers
which does not include torque layers. This mistake is repeated throughout the code (I’m thinking that the layer node style cache might also be affected).
My suggestion here would be to bite the bullet, and instead of fixing this specific issue (it’s as easy as changing data_layers
to carto_and_torque_layers
), changing the behaviour of data_layers
so it behaves consistently with Layer.data_layer?
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
TORQUE Resource Manager - Adaptive
Welcome to the TORQUE Administrator Guide, version 4.2.6. This guide is intended as a reference for both users and system administrators. Note: Advanced...
Read more >Dependence of spin-orbit torque effective fields on ... - Nature
In this work, we report on the dependence of the SOT effective fields on the magnetization uniformity in the wires comprising of Ta/Co/Pt...
Read more >Interfacial spin–orbit torques - AIP Publishing - Scitation
Spin–orbit torques offer a promising mechanism for electrically controlling magnetization dynamics in nanoscale heterostructures. While spin–orbit torques ...
Read more >Using layers with your Lambda function - AWS Documentation
Configuring functions to use layers. You can add up to five layers to a Lambda function. The total unzipped size of the function...
Read more >Diverse high-torque bacterial flagellar motors assemble wider ...
However, the molecular mechanism by which different motors might produce different torques has not been investigated.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is the current status of the layer kind methods:
My proposal is to standardize so:
Alternatively, we could just fix the bug. Looking at how costly would be to change this.
For sure. I forgot about visualization model until I started implementing this. I created the follow up issue here: https://github.com/CartoDB/cartodb/issues/11553 and reflected the need to update the visualization models as well.