Uploaded image for project: 'LAMS Development'
  1. LAMS Development
  2. LDEV-55

Trigger Tool Content Deletion When Activity Removed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0 Beta 1
    • Fix Version/s: 2.4
    • Component/s: Author, Tools
    • Labels:
      None

      Description

      In authoring, a user adds an activity and saves the learning design. They then remove the activity and save the learning design. The server must detect that the activity has been removed and call removeToolContent(Long toolContentId, boolean removeSessionData) on the tool's service bean to remove any tool content that may have been created.

      To do:
      (1) Check if exists and implement if necessary this functionality in authoring. I think the authoring attempts to delete the activity at the moment (lams_learning_activity table) but the delete fails. I also suspect that it won't try to delete the tool content.

      To delete the tool content, authoring should call LamsCoreToolService.notifyToolToDeleteContent(ToolActivity toolActivity). Problem is, for this to work we also need to add the tool beans to the spring context used by the authoring war.

      (2) Check each tool to make sure removeToolContent(Long toolContentId, boolean removeSessionData) is implemented as per the description given in org.lamsfoundation.lams.tool.ToolContentManager.

        Activity

        Hide
        ernieg Ernie Ghiglione added a comment -
        Fiona, is this doable for before Beta1?

        Ernie
        Show
        ernieg Ernie Ghiglione added a comment - Fiona, is this doable for before Beta1? Ernie
        Hide
        fionam Fiona Malikoff added a comment -
        Probably not doable before Beta1. Not difficult to do but system works without it so better to work on other tasks.
        Show
        fionam Fiona Malikoff added a comment - Probably not doable before Beta1. Not difficult to do but system works without it so better to work on other tasks.
        Hide
        ernieg Ernie Ghiglione added a comment -
        I'm closing this as at the moment, there's no easy way to detect that an activity does not belong to a learning design.

        When we redesign LAMS 3, we can look into clean up activities that aren't linked to a design. But it will have to be a core feature.
        Show
        ernieg Ernie Ghiglione added a comment - I'm closing this as at the moment, there's no easy way to detect that an activity does not belong to a learning design. When we redesign LAMS 3, we can look into clean up activities that aren't linked to a design. But it will have to be a core feature.

          People

          • Assignee:
            ernieg Ernie Ghiglione
            Reporter:
            fionam Fiona Malikoff
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development