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

Fix #3182: use unique attachment key to allow multiple image paste pe… #3821

Closed
wants to merge 2 commits into from

Conversation

ihnorton
Copy link

@ihnorton ihnorton commented Aug 3, 2018

…r cell

@ihnorton
Copy link
Author

ihnorton commented Aug 8, 2018

Test failure fixed.

@@ -354,9 +354,9 @@ define([
// We generate names for blobs
var key;
if (blob.name !== undefined) {
key = encodeURIandParens(blob.name);
key = utils.uuid() + '_' + encodeURIandParens(blob.name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should avoid UUIDs. They can be a problem when added to documents. Instead, collisions can be detected and avoided through a counter suffix.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't cells already have UUIDs?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, they don't. UUIDs are carefully avoided in the document format.

Looking now, there is a vestigial cell_id attribute in the code that shouldn't be present and isn't used for anything.

@iandanforth
Copy link

This is seriously limiting the utility of notebooks for my usecase. Any chance we can get a compromise solution here?

@gsaurabhr
Copy link

Is this fixed, but not yet released? Pasting two images still does not work.

@blink1073
Copy link
Contributor

As @minrk said above, we don't want to add UUIDs to cells. Closing this one as out of date.

@blink1073 blink1073 closed this Jun 8, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants