Provide a rewritten date_all_day_update_7200() that updates all appropriate data to use the is_all_day element of date fields added in #3202962: Expand field specification with new element for "all day".

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

liam morland’s picture

Issue summary: View changes

Made link in summary work.

solideogloria’s picture

Just a note that the first line of the function has // Get all fields provided by the Data module., and it should be Date module. Might as well fix that here, too.

damienmckenna’s picture

I think the db_update() query could also be modified to update all records with the same value instead of doing it one record at a time, and then just flush all entity caches when it's finished.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new1.66 KB

This is what I'm thinking of.

damienmckenna’s picture

Status: Needs review » Needs work

Still needs sandbox processing to be added, and test coverage to be expanded.

damienmckenna’s picture

FYI there's a separate issue at #3201981: Update to 7.x-2.11 "broke" repeating all-day dates for fixing the logic itself, for this update script I'd like to focus on the sandbox & performance logic.

damienmckenna’s picture

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new9.15 KB

Rerolled after #3206100.

damienmckenna’s picture

damienmckenna’s picture

Title: Update date_all_day_update_7200() to use a sandbox » Provide update script to update all-day fields
Issue summary: View changes
Status: Needs review » Needs work

Rewriting the purpose of this issue.

jrochate’s picture

I don't if it's related, but my previous date field all-day with start and end, could no longer be used as a filter on views using the end_date.

The trick was to resave the node, and now the view works again.

damienmckenna’s picture

A lot of work has gone into #3202962 focused on making the functionality work correctly, so this one will be focused on on updating existing data.

damienmckenna’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
damienmckenna’s picture

damienmckenna’s picture

joseph.olstad’s picture

joseph.olstad’s picture

kevin morse’s picture

What is still remaining for this issue?

It seems this is the only issue blocking https://www.drupal.org/project/date/issues/3308472

joseph.olstad’s picture

@Kevin Morse,
The remaining work is to adapt patch 10 to use the approach mentioned/linked in comment #11