In the D7 version of Scheduler we had a feature intended for a rare edge case: it allowed people to clean up their database tables in case they had deleted some scheduled nodes when the Scheduler module was temporarily disabled. This would cause orphaned database rows to remain behind in the scheduler table.

This edge case cannot occur any more in Drupal 8 since it is no longer possible to disable modules.

We should remove the _scheduler_delete_row_confirm() form, its submit handler and all references to it.

Original report by legovaer

There is now an abstract base class(ConfirmFormBase) that implements FormInterface with specific methods that represent the parameters used by confirm_form().

The confirm_form() function has thus been removed.

Read more about FormInterface here: http://drupal.org/node/1932058

Change records: Removed confirm_form() in favor of \Drupal\Core\Form\ConfirmFormBase

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

legovaer’s picture

Status: Active » Needs review
FileSize
3.69 KB

Created new class DeleteForm inside namespace Drupal\scheduler\Form

pfrenssen’s picture

Title: Replace confirm_form() in favor of \Drupal\Core\Form\ConfirmFormBase » Remove _scheduler_delete_row_confirm()
Issue summary: View changes
Status: Needs review » Needs work

This conversion looks very good but I'm afraid that we will not need this functionality any more in Scheduler 8.x-1.x.

This was a feature intended for a rare edge case: it allowed people to clean up their database tables in case they had deleted some scheduled nodes when the Scheduler module was temporarily disabled. This would cause orphaned database rows to remain behind in the scheduler table.

This edge case cannot occur any more in Drupal 8 since it is no longer possible to disable modules.

I suggest we change the scope of this to remove this form and all references to it.

pfrenssen’s picture

Assigned: legovaer » Unassigned
Status: Needs work » Needs review
FileSize
3.85 KB

  • pfrenssen committed 1f42b4d on 8.x-1.x
    Issue #2422825 by pfrenssen, legovaer: Remove...
pfrenssen’s picture

Status: Needs review » Fixed

Committed to 8.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.