-
Notifications
You must be signed in to change notification settings - Fork 323
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
Prevent node name collisions when drag-and-dropping multiple files #10979
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving dashboard changes
delayedNodesToCreate.push(options) | ||
// Delay node creation to next tick, batch multiple synchronous createNode calls together | ||
// to avoid node name collisions. | ||
if (delayedNodesToCreate.length === 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A strict === 1
comparison seems suspicious, why not >= 1
? It kinda contradicts the comment which says batch multiple … calls together
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It schedules a flush operation when the queue transitions from empty to non-empty. If the queue is already non-empty (i.e. after adding an element, the queue's new length is 2 or more), a flush has already been scheduled.
…10979) # Important Notes Fixed a few warnings in dashboard caused by missing or misplaced key attributes.
Fixes #10961
Important Notes
Fixed a few warnings in dashboard caused by missing or misplaced key attributes.
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.