[Building Sakai] fixing up references in copy

Charles Hedrick hedrick at rutgers.edu
Mon Jun 18 08:10:04 PDT 2012


SAK-22293

I'll try to listen in on the meeting Thursday. I can take enough time to deal with this issue.

On Jun 18, 2012, at 10:36 AM, Aaron Zeckoski <azeckoski at unicon.net> wrote:

> I think we could patch something like that back into 2.8.x. It seems
> like enough of a bug to warrant the backport.
> Sounds like a good agenda item for the CLE team call this thursday.
> Do you have a ticket for tracking this work yet?
> -AZ
> 
> 
> On Mon, Jun 18, 2012 at 10:15 AM, Charles Hedrick <hedrick at rutgers.edu> wrote:
>> There are many ways to copy content in Sakai: In site info, duplicate site, import content from site, using a site as template when creating a new one, and archive / restore.
>> 
>> When a  tool (I'm thinking specifically of Lessons) refers to instances of another tool, those references need to be updated to refer to the copies in the new site. Duplicate site calls each tool twice. The first time it copies itself. The second time is updateEntityReferences. This causes the tool to update any references to other tools. It is called as part of a second pass, after all tools have copied themselves.
>> 
>> Unfortunately updateEntityReferences is only called by the duplicate site code. None of the other import or restore mechanisms use it. Furthermore, it passes a map of old to new references, which only a few tools build.
>> 
>> Currently Lessons depends upon updateEntityReferences to update references. I use an approach that makes use of the map where there are entries, but uses another approach where there are not. But still, this only works for Duplciate Site. It was quite clear at the Conference that users want it to work for all the cases.
>> 
>> I'd like to see updateEntityReferences called for all types of content copy / import. But it appears that I'm going to need to do a hack, since people want this code to work in 2.8 and earlier.
>> 
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>> 
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
> 
> 
> 
> -- 
> Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile



More information about the sakai-dev mailing list