-
-
Notifications
You must be signed in to change notification settings - Fork 962
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
Conversation
@stetsche Since this touched your work on performance improvement on Samigo site copy - I think it needs a review from you. |
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.
@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
.../src/java/org/sakaiproject/tool/assessment/services/assessment/AssessmentEntityProducer.java
Show resolved
Hide resolved
.../src/java/org/sakaiproject/tool/assessment/services/assessment/AssessmentEntityProducer.java
Outdated
Show resolved
Hide resolved
.../src/java/org/sakaiproject/tool/assessment/services/assessment/AssessmentEntityProducer.java
Outdated
Show resolved
Hide resolved
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.
Looks pretty good now, the diff is also pretty readable now. One suggestion and a doubt:
.../src/java/org/sakaiproject/tool/assessment/services/assessment/AssessmentEntityProducer.java
Outdated
Show resolved
Hide resolved
.../src/java/org/sakaiproject/tool/assessment/services/assessment/AssessmentEntityProducer.java
Outdated
Show resolved
Hide resolved
@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 |
There are three steps to this change - they are separate commits below:
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.