This project has moved and is read-only. For the latest updates, please go here.

upgrade from SLK 1.5 to SLK 1.7

Topics: Developer Forum
Jul 3, 2015 at 2:45 PM
Hi Richard,

I made a web part using SLK 1.5 api years ago but when I upgraded to SLK 1.7, some API functions seem to have been changed.

class SlkStore In SLK 1.5
public void SetAssignmentProperties(AssignmentItemIdentifier assignmentId, AssignmentProperties newProperties);

now has been changed to:
public void UpdateAssignment(AssignmentProperties assignment, bool corePropertiesChanged, SlkUserCollectionChanges instructorChanges, SlkUserCollectionChanges learnerChanges);

If I want to add a new learner to the assignment, I guess the right approach should be:
UpdateAssignment(current_assignment, false, null, learnerChanges), am I right?

Thank you!
Jul 3, 2015 at 3:32 PM
I checked the source code and found that "instructorChanges" can not be null. so I guess it should be
UpdateAssignment(current_assignment, false, instructorChanges, learnerChanges)
Jul 21, 2015 at 12:01 AM
Yes, I haven't been keeping backwards compatibility with the api.

SLK Coordinator
Jul 22, 2015 at 9:38 PM
thanks Richard, I have been able to upgrade my webpart from SLK 1.5 TO 1.7.1