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.

[Feature] Expose function determine node should not move to marked disable node

See original GitHub issue

It’s nice to have a function like this

shouldMoveNode = (nextNode, prevNode) => {
    return nextNode.node.is_enable ? true : false;
};

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
fritz-ccommented, Nov 2, 2016
  1. What information is inside prevNode?
  2. Does this get called while dragging?
  3. Does this get called right before dropping?

Making some assumptions here, but: The node itself should remain unchanged, but its parents (and path) will change. I’m pretty confident I could give info on this stuff for a shouldMoveNode API:

draggedNode // The node being moved

prevPath // the previous (current) location in the tree of the node
prevParentNode // the previous (current) parent node

nextPath // The potential next location in the tree of the node
nextParentNode // The potential next parent of the node
0reactions
fritz-ccommented, Mar 24, 2017

I just released the canDrop API with version 0.1.13. I think this should help you do what you’re trying to do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing Nodes | OpenShift Container Platform 3.11
Infrastructure nodes​​ Node A is marked unschedulable and all pods are evacuated. The registry pod running on that node is now redeployed on...
Read more >
Nodes - Kubernetes
Marking a node as unschedulable prevents the scheduler from placing new pods onto that Node but does not affect existing Pods on the...
Read more >
Use node auto-provisioning | Google Kubernetes Engine (GKE)
Enabling node auto-provisioning​​ You enable node auto-provisioning on a cluster with gcloud or the Google Cloud console. Note: If you disable then re-enable ......
Read more >
Node.js v19.3.0 Documentation
It will then check that the promise is not rejected. If asyncFn is a function and it throws an error synchronously, assert.doesNotReject() will...
Read more >
How to fix "The following module is missing from the file ...
This can cause a warning "The following module has moved within the file system", ... https://www.drupal.org/node/2406089 This patch was included and rolled ...
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