Details
-
New Feature
-
Resolution: Fixed
-
Major
-
1.0.1
-
None
-
-
Empty show more show less
-
Yes
-
Yes
-
Kromeriz 143, Kromeriz 144
-
5
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.
Checklists
Acceptance criteria
Attachments
Issue Links
- mentioned in
-
Page Loading...