Add an action to bulk delete imported items

Created on 14 August 2020, over 4 years ago
Updated 15 February 2023, almost 2 years ago

Problem/Motivation

Removing items related with feed entries en masse to easily prepare multiple feeds for a reimport.

Proposed resolution

An action plugin and a kernel test that covers the action plugin should be written.

The action plugin

Add a file to src/Plugin/Action and implement an action plugin that triggers the deletion of all imported items for every feed that is passed to the action plugin.

The kernel test

The kernel test could be written as follows:

  1. Create feed type. I think using the parser "syndication" (for parsing RSS feeds) is the easiest for this test.
  2. Create two feeds: one that imports drupalplanet.rss2 and another one that imports googlenewstz.rss2. These RSS feeds are found in tests/resources/rss.
  3. Import content for both feeds.
  4. Assert that content has been imported.
  5. Apply the action plugin.
  6. Assert that all content was deleted.

Remaining tasks

User interface changes

New entry in the 'With selection' dropdown menu:

Feature request
Status

Fixed

Version

3.0

Component

User interface

Created by

🇬🇧United Kingdom mxmilkiib

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024