Migrate only published reditect

Created on 24 April 2025, 6 days ago

I used this to migrate redirect from Drupal 7 to Drupal 10.4.5, it worked good but, shouldn't we check for published redirects?
https://www.drupal.org/project/redirect/issues/2715807 β†’

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rpayanm

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

Comments & Activities

  • Issue created by @rpayanm
  • @rpayanm opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States rpayanm

    Please review.

  • πŸ‡ΊπŸ‡ΈUnited States rpayanm

    Just a note: I was able to do it with the migrate_conditions module and this code:

    process:
      skip_on_unpublished:
        plugin: skip_on_condition
        condition:
          plugin: equals
          value: 0
        source: status
        method: row
    
Production build 0.71.5 2024