Uploaded image for project: 'Content Importer'
  1. Content Importer
  2. MGNLCI-18

Allow to configure User groups who can view and assign the import tasks, not only superuser

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2
    • Labels:
      None
    • Release notes required:
      Yes
    • Documentation update required:
      Yes
    • Sprint:
      Kromeriz 143, Kromeriz 144
    • Story Points:
      5
    • Magnolia Release:
      5.6.6

      Description

      Currently, when having a new/changed file in the content importer folder, the info.magnolia.content.observer.TaskCreatorWatcherCallback#addTask will create and send a task to users to review and import content. But only superuser is received the task:

      Task task = new Task(); task.setName("content"); task.setRequestor("superuser"); task.setStatus(Task.Status.Created); task.setActorIds(Lists.newArrayList("superuser")); task.setComment(changedFile.getName()); String repository = StringUtils.substringBefore(changedFile.getName(), "."); Map<String, Object> content = ImmutableMap.of( "repository", repository, "path", changedFile.getAbsolutePath(), "modificationDate", new Date()); task.setContent(content); tasksManager.addTask(task);
      

      We should get user groups in the configuration and set them to actorIds of the Task.


      Without this change the Content Importer cannot be used on Cloud and so there is no way to automate bootstrapping content on Cloud. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ajuran Antonín Juran
                Reporter:
                thanh.pham Thanh Pham
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: