Issue Details (XML | Word | Printable)

Key: SAK-12433
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Tan Nguyen
Reporter: Kristol Hancock
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sakai

Add ability to delete existing site content and replace it with the content from another site during site import

Created: 12-Dec-2007 12:34   Updated: 27-Oct-2009 13:39
Component/s: Entity service (Pre-K1/2.6), Global, Site Info, Worksite Setup
Affects Version/s: 2.5.0
Fix Version/s: 2.6.0

Time Tracking:
Not Specified

File Attachments: 1. PDF File GBImport2.pdf (60 kB)

Issue Links:
Depend
 
Relate

2.6.x Status: None
2.5.x Status: None
2.4.x Status: None


 Description  « Hide
Adding functionality to allow a user to delete existing site content and replace it with the content from another site. This will allow us to do a clean import for Gradebook so that we can include categories with weighting. Mockups are attached.

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Kathryn Propst added a comment - 17-Dec-2007 11:14 - edited
I am testing this on practice.oncourse.iu.edu and am finding the procedure confusing. I am in Site Setup and click on "Import from Site". That takes me to a screen named "Import Grades". That makes it sound like I can only import the *Grades* from other course. If I am not interested in importing Grades per se, this screen title is really confusing. Shouldn't it be something different, like Import Method? And the the options would be "I would like to replace my data" or "I would like to merge my data"?--more like what is in the screen shot attached to this issue!



Peter A. Knoop added a comment - 29-Dec-2007 09:41
Kristol, is there more information available on this change somewhere? You're adding the "delete" behavior during import for all tools in a site, not just Gradebook, correct? Is there any relationship between this work and the recently discussed site template patch on sakai-dev? (See http://www.nabble.com/Create-a-new-site-using-a-template-to14411328.html#a14411328.) It sounds like the goals here may be the same?

Kristol Hancock added a comment - 09-Jan-2008 07:10
Peter, no, this is the extent of the information that we have written about this issue. You are correct, we are adding the "delete" behavior during import for all tools in a site that support delete. This work is not related to the recently discussed site template patch on sakai-dev. That conversation appears to closely resemble the original import from site functionality. However, it appears that rather than performing an import from an already created site, the user is generating the site and then importing the content from the template site.

The work that we are doing allows us to delete content for selected tools in an existing site and replace it with content from a site chosen by the user. This is in answer to a functionality request from our user base to allow them to import categories and weighting in the Gradebook. In order to import categories and weighting, we must first ensure that the Gradebook to which we are importing does not have existing categories and weighting set up. You can imagine a situation where a Gradebook has the following categories and weighting set up:

Homework 50%
Quizzes 25%
Tests 25%
------------------------
Total 100%

If we were to allow a user to import categories and weighting into this Gradebook that already has categories and weighting, we may end up with the following situation:

Homework 50%
Assignments 25%
Quizzes 25%
Mid-Term 25%
Tests 25%
Final 50%
--------------------------
Total 200%

This would cause big problems with calculations in the Gradebook. So, in determining how to allow users to import categories and weighting without running into a problem such as this, we decided that we would first need to delete the existing content in the Gradebook prior to importing content from another site. This model goes against the current site import model, which merely adds content to a site in addition to existing content. Rather than changing a working model and having to explain the difference between the Gradebook import and the rest of the tools, we decided to add a new model for those users who wish to do a 'clean' import. Does this help? Do you have any additional questions? Thanks!

Filter Maintainer added a comment - 03-Jun-2008 07:59
What is the status of this work? I see it is still Open. Is the work being done in a Branch, or has it being finished up in trunk? Thanks.

Tan Nguyen added a comment - 03-Jun-2008 08:18
The change has been merged back to sakai trunk. This task has been completed.

Tan Nguyen

====================================================================================================

content:

svn merge -r 39287:39288 https://source.sakaiproject.org/svn/content/branches/SAK-12433
M 45452 content-impl/impl/src/java/org/sakaiproject/content/impl/BaseContentService.java

svn log -r39288 https://source.sakaiproject.org/svn/content/branches/SAK-12433
-----------------------------------------------------------
r39288 |cwen@iupui.edu | 2007-12-14 15:59:06 -0500 (Fri, 14 Dec 2007) | 1 line

sak-12433.

======================================================================================================

rwiki:

svn merge -r 39291:39292 https://source.sakaiproject.org/svn/rwiki/branches/SAK-12433
M 45491 rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/service/impl/RWikiObjectServiceImpl.java


svn log -r39292 https://source.sakaiproject.org/svn/rwiki/branches/SAK-12433
------------------------------------------------------------------------
r39292 | cwen@iupui.edu | 2007-12-14 17:12:33 -0500 (Fri, 14 Dec 2007) | 1 line

sak-12433.
------------------------------------------------------------------------

=======================================================================================================

sam:

svn merge -r 39316:39317 https://source.sakaiproject.org/svn/sam/branches/SAK-12433
M 45500 samigo-services/src/java/org/sakaiproject/tool/assessment/services/assessment/AssessmentEntityProducer.java


svn log -r39317 https://source.sakaiproject.org/svn/sam/branches/SAK-12433
------------------------------------------------------------------------
r39317 | cwen@iupui.edu | 2007-12-15 14:14:50 -0500 (Sat, 15 Dec 2007) | 1 line

SAK-12433.
------------------------------------------------------------------------

========================================================================================================

announcement:

svn merge -r 39258:39259 https://source.sakaiproject.org/svn/announcement/branches/oncourse_opc_122007
M 45514 announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/BaseAnnouncementService.java

svn log -r39259 https://source.sakaiproject.org/svn/announcement/branches/oncourse_opc_122007
------------------------------------------------------------------------
r39259 | cwen@iupui.edu | 2007-12-14 09:34:28 -0500 (Fri, 14 Dec 2007) | 1 line

SAK-12433
------------------------------------------------------------------------

========================================================================================================

calendar:

svn merge -r 39268:39269 https://source.sakaiproject.org/svn/calendar/branches/oncourse_opc_122007
M 45552 calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/BaseCalendarService.java

svn log -r39269 https://source.sakaiproject.org/svn/calendar/branches/oncourse_opc_122007
------------------------------------------------------------------------
r39269 | cwen@iupui.edu | 2007-12-14 11:16:15 -0500 (Fri, 14 Dec 2007) | 1 line

SAK-12433.
------------------------------------------------------------------------

svn merge -r 39312:39313 https://source.sakaiproject.org/svn/calendar/branches/oncourse_opc_122007
M 45552 calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/BaseCalendarService.java

svn log -r39313 https://source.sakaiproject.org/svn/calendar/branches/oncourse_opc_122007
------------------------------------------------------------------------
r39313 | cwen@iupui.edu | 2007-12-15 12:02:27 -0500 (Sat, 15 Dec 2007) | 1 line

SAK-12433 => apply patch for calendar.
------------------------------------------------------------------------

==========================================================================================================

assignment:

svn merge -r 39301:39302 https://source.sakaiproject.org/svn/assignment/branches/oncourse_2-4-x
M 45555 assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java

svn log -r39302 https://source.sakaiproject.org/svn/assignment/branches/oncourse_2-4-x
------------------------------------------------------------------------
r39302 | cwen@iupui.edu | 2007-12-14 17:47:16 -0500 (Fri, 14 Dec 2007) | 1 line

sak-12433.
------------------------------------------------------------------------

svn merge -r 39555:39556 https://source.sakaiproject.org/svn/assignment/branches/oncourse_2-4-x
M 45555 assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java

svn log -r39556 https://source.sakaiproject.org/svn/assignment/branches/oncourse_2-4-x
------------------------------------------------------------------------
r39556 | tnguyen@iupui.edu | 2007-12-20 13:37:49 -0500 (Thu, 20 Dec 2007) | 1 line

SAK-12433 => fixes for assignment removal authz permission problems.
------------------------------------------------------------------------

===========================================================================================================

entity:

svn merge -r 39286:39287 https://source.sakaiproject.org/svn/entity/branches/SAK-12433
M 45559 entity-api/api/src/java/org/sakaiproject/entity/api/EntityTransferrer.java


svn log -r39287 https://source.sakaiproject.org/svn/entity/branches/SAK-12433
------------------------------------------------------------------------
r39287 | cwen@iupui.edu | 2007-12-14 15:54:10 -0500 (Fri, 14 Dec 2007) | 1 line

SAK-12433.
------------------------------------------------------------------------

===========================================================================================================

site-manage:

svn merge -r 39290:39291 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
M 45582 site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
M 45582 site-manage-tool/tool/src/bundle/sitesetupgeneric.properties
A + - site-manage-tool/tool/src/webapp/vm/sitesetup/chef_site-importSitesMigrate.vm
M 45582 site-manage-tool/tool/src/webapp/vm/sitesetup/chef_site-siteInfo-import.vm
A + - site-manage-tool/tool/src/webapp/vm/sitesetup/chef_site-siteInfo-importSelection.vm
A + - site-manage-tool/tool/src/webapp/vm/sitesetup/chef_site-siteInfo-importMigrate.vm

svn log -r 39291 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
------------------------------------------------------------------------
r39291 | cwen@iupui.edu | 2007-12-14 16:41:56 -0500 (Fri, 14 Dec 2007) | 1 line

sak-12433.
------------------------------------------------------------------------


svn merge -r 39465:39466 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
G site-manage-tool/tool/src/webapp/vm/sitesetup/chef_site-importSitesMigrate.vm

svn log -r 39465:39466 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
------------------------------------------------------------------------
r39466 | tnguyen@iupui.edu | 2007-12-18 16:26:46 -0500 (Tue, 18 Dec 2007) | 1 line

SAK-12480 - Fixed clicking 'back' button in replace will take user back to replace wizard.
------------------------------------------------------------------------


svn merge -r 39470:39471 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
M 45582 site-manage-tool/tool/src/bundle/sitesetupgeneric.properties

svn log -r39471 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
------------------------------------------------------------------------
r39471 | tnguyen@iupui.edu | 2007-12-18 17:00:00 -0500 (Tue, 18 Dec 2007) | 1 line

SAK-12492
------------------------------------------------------------------------


svn merge -r 39818:39819 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
M site-manage-tool/tool/src/bundle/sitesetupgeneric.properties
M site-manage-tool/tool/src/webapp/vm/sitesetup/chef_site-siteInfo-importMigrate.vm

svn log -r 39818:39819 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
------------------------------------------------------------------------
r39819 | tnguyen@iupui.edu | 2008-01-08 11:05:32 -0500 (Tue, 08 Jan 2008) | 1 line

ONC-281 - Site Import / Replace data text change.
------------------------------------------------------------------------


svn merge -r 39869:39870 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
M site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java

svn log -r39870 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
------------------------------------------------------------------------
r39870 | tnguyen@iupui.edu | 2008-01-08 16:20:51 -0500 (Tue, 08 Jan 2008) | 1 line

SAK-12541 - Fix Web Content and News Tools for Import From Site.
------------------------------------------------------------------------


svn merge -r 40142:40143 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
G site-manage-tool/tool/src/bundle/sitesetupgeneric.properties
G site-manage-tool/tool/src/webapp/vm/sitesetup/chef_site-importSitesMigrate.vm

svn log -r40143 https://source.sakaiproject.org/svn/site-manage/branches/SAK-12433
------------------------------------------------------------------------
r40143 | tnguyen@iupui.edu | 2008-01-15 16:18:25 -0500 (Tue, 15 Jan 2008) | 1 line

SAK-12539 - Add text message for Wiki Import From Site to explain the child content will not be removed.

------------------------------------------------------------------------


==========================================================================================

web:

svn merge -r 39871:39873 https://source.sakaiproject.org/svn/web/branches/sakai_2-4-x
G news-impl/impl/src/java/org/sakaiproject/news/impl/BasicNewsService.java
U web-impl/impl/src/java/org/sakaiproject/web/impl/WebServiceImpl.java

svn log -r 39871:39873 https://source.sakaiproject.org/svn/web/branches/sakai_2-4-x
------------------------------------------------------------------------
r39872 | tnguyen@iupui.edu | 2008-01-08 16:35:02 -0500 (Tue, 08 Jan 2008) | 1 line

SAK-12541 - Fix Web Content and News Tools for Import From Site.
------------------------------------------------------------------------
r39873 | tnguyen@iupui.edu | 2008-01-08 16:35:04 -0500 (Tue, 08 Jan 2008) | 1 line

SAK-12541 - Fix Web Content and News Tools for Import From Site.
------------------------------------------------------------------------