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

SAK-51055 Samigo cc+ import issues with embedded image in CKEditor #13423

Merged
merged 6 commits into from
Mar 11, 2025

Conversation

csev
Copy link
Contributor

@csev csev commented Mar 8, 2025

There are three steps to this change - they are separate commits below:

  1. Make it so that "Import from Site" fixes embedded images in the correct and incorrect feedback.
  2. Make it so that "Import from Site" handles embedded LTI links (shipping cart) in all RTE areas
  3. Make it so that "Lessons - Import from CC+" also works across all RTE areas and attachments

To do this, I extended the calling sequences for internal methods for updateEntityReferences() and migrateText() so they can handle the "Import from Site" or "merge()" use cases. The method signatures got a little long but I really wanted to avoid duplicating the complex code that goes through and finds all the RTE areas post copy or post merge. It seemed more reliable in the long run the have a few more parameters and if tests that a lot of intricate code duplicated.

@stetsche Since this touched your work on performance improvement on Samigo site copy - I think it needs a review from you.

Comments welcome.

@csev csev requested a review from stetsche March 8, 2025 16:10
@csev csev marked this pull request as draft March 8, 2025 16:10
@csev
Copy link
Contributor Author

csev commented Mar 9, 2025

@stetsche Since this touched your work on performance improvement on Samigo site copy - I think it needs a review from you.

@csev csev marked this pull request as ready for review March 9, 2025 16:45
@csev csev requested a review from bbbbgarcia March 10, 2025 07:27
Copy link
Contributor

@stetsche stetsche left a comment

Choose a reason for hiding this comment

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

@csev , thanks for the improvements! I left a few comments regarding some context and your changes. Do you think we should do another iteration of performance testing with the added code, or do you think it's really light additions?
CC: @bgarciaentornos

@csev csev requested a review from stetsche March 11, 2025 04:44
Copy link
Contributor

@stetsche stetsche left a comment

Choose a reason for hiding this comment

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

Looks pretty good now, the diff is also pretty readable now. One suggestion and a doubt:

@ern ern changed the title SAK-51055 T&Q cc+ import issues with embedded image in CKEditor SAK-51055 Samigo cc+ import issues with embedded image in CKEditor Mar 11, 2025
@csev
Copy link
Contributor Author

csev commented Mar 11, 2025

@stetsche I do think that a quick test of the performance fixes is in order. I do not think that my changes change it in any material way. I think that the test is more to insure no regressions. cc: @bgarciaentornos

@csev csev merged commit 79ca05e into sakaiproject:master Mar 11, 2025
5 checks passed
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.

3 participants