Multiple/bulk actions in the content navigator

Description

Background

Sometimes a large amount of documents need to be changed, for example: migrate 100 articles to another category, add the keyword "big bird" to all articles found when searching for "pino".

Limits

This functionality will currently be limited to 1000 content items, to avoid the use of background tasks / crons. When we have improved features in Integrated for background tasks this feature will be extended to be used with more items.

Functional requirements

Please see the screens for each step

  • Step 1: menu option in Content Navigator, Tools -> Bulk change this selection

  • Step 2: display a list of titles marked with a checkbox. The user can de-select items he do not want. If over 1000 items are in the selection only the first 1000 will be displayed. A red message will appear on top "Bulk change is limited to 1000 items at once. Only the first 1000 items have been included.".

  • Step 3: for every relation add a "Add" and "Remove" select2, conform the select2 on the content edit page (note: in the future other options (for example migrate to another content type, or change a workflow status) will be added here)

  • Step 4: confirm page

  • After confirm a flash message confirms the migration. The migration will be started after that (in the front or as a background process)

  • The buttons need to be styled conform the content edit page (Next in orange, Previous in grey)

Technical requirements

  • A bulk action will be executed immediately, not as background task

  • Please use services to be able to use them in code (maybe for migration scripts will over 1000 items) and for background tasks in the future

Technical tasks

None

Deployment actions

None

Activity

Show:
Marijn Otte
July 12, 2017, 8:30 AM

I summarized the feedback:

Feedback:

  • The relation chooser for add / remove a relation (for example a keyword or image) is different from the one on the content edit page. Isn't the form type reused? The bulk action version does not have an "Add" button and doesn't show images. When easy to change, please do. Otherwise this will be separate issue for a future release.

  • Workflow rights are not applied. When an article is readonly for the user it can be changed with a bulk action, while is shouldn't. If this is not easy to fix let me know and it will be a separate issue.

Jeroen van Leeuwen
July 12, 2017, 8:34 AM

thanks, I will look into it asap!

Jeroen van Leeuwen
July 12, 2017, 10:42 AM

the workflow solr query also checks on the write status.

The form type that is used in the content edit page needs a content type, this form should be refactored in order to make it work in this situation, can you make a separate issue for this?

Jeroen van Leeuwen
July 13, 2017, 5:39 AM

update skeleton so we can deploy this issue on the test env.

Jeroen van Leeuwen
July 13, 2017, 8:00 AM

issue is deploy on the test environment. Can you test this issue today?

Assignee

Unassigned

Client

Integrated Marijn

Epic Link

Sprint

None

Fix versions

Configure