Skip to content

Generate new Ids for BagPart embedded elements#19165

Open
hishamco wants to merge 5 commits intomainfrom
hishamco/embedded-elements-ids
Open

Generate new Ids for BagPart embedded elements#19165
hishamco wants to merge 5 commits intomainfrom
hishamco/embedded-elements-ids

Conversation

@hishamco
Copy link
Copy Markdown
Member

Fixes #8185

}

public override async Task CloningAsync(CloneContentContext context, AutoroutePart part)
public override async Task ClonedAsync(CloneContentContext context, AutoroutePart part)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We might need to change the OC.Flow startup order instead

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, I think is better to keep this in Cloning and change the startup order.

@gvkries
Copy link
Copy Markdown
Member

gvkries commented Apr 21, 2026

Did you consider the notes from this comment: #8185 (comment)?

@hishamco
Copy link
Copy Markdown
Member Author

Did you consider the notes from this comment: #8185 (comment)?

A lot of things :) But I will revise it one more time

@sebastienros
Copy link
Copy Markdown
Member

Note for myself, if the PR hasn't progressed in two weeks, let's close it, I fear it will get idle as this is more complicated than expected.

@hishamco hishamco requested a review from gvkries April 24, 2026 00:00
@gvkries
Copy link
Copy Markdown
Member

gvkries commented Apr 24, 2026

Maybe we should do this for v4, to have more time understanding possible side effects.

Comment on lines +143 to +145
var cloneContentContext = new CloneContentContext(existingContentItem, contentItem);

await _contentHandlers.InvokeAsync((handler, context) => handler.CloningAsync(context), cloneContentContext, _logger);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure if we can do this, it seems to contradict what is commented above (IDs are expected to be kept).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloning doesn't generate new id's for embedded elements

3 participants