Problem/Motivation

Follow-up from #2642764: Speed up via shortcutting token file_entity_file_load since it's based on the code there.

alt/title default to not having token replacement, so when those are left as the default, we can skip token_replace(). This saves a lot of time especially with multiple AJAX file uploads.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch created an issue. See original summary.

catch’s picture

And the patch.

catch’s picture

Fabianx’s picture

A new patch for a new patch in the other issue.

marco’s picture

joseph.olstad’s picture

Status: Postponed » Needs review

the related patch in file_entity was committed, so looks like we should have a look at this now.

The last submitted patch, 3: 2650804.patch, failed testing. View results

The last submitted patch, 2: 2650804.patch, failed testing. View results

The last submitted patch, 4: optimize_title_alt-2650804-4.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 5: optimize_title_alt-2650804-5.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 11: optimize_title_alt-2650804-11.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

joseph.olstad’s picture

marco , can you fix this please?

Call to undefined function file_entity_replace_title()

joseph.olstad’s picture

Ok, this patch will start working and passing testing once a tagged release of file_entity with that function is made.
it requires file_entity 7.x-2.23 which has not yet been tagged.

the said function is not present in 7.x-2.22

joseph.olstad’s picture

Assigned: Unassigned » joseph.olstad
Status: Needs work » Postponed
joseph.olstad’s picture

Status: Postponed » Needs work

to finish this off, have to first publish file_entity 7.x-2.23 (soon) as well as the 7.x-3.x branch tag that as well

then have to create a hook_requirements to make sure that file_entity has been updated to 7.x-2.23 or 7.x-3.0-tag or higher

joseph.olstad’s picture

Status: Needs work » Needs review

re-testing this, a tagged release of file_entity is out, these errors should go away, however the patch should have the hook_requirements checks checking for a version of file_entity equal to or greater than (equal or newer than) the current release.

joseph.olstad’s picture

Assigned: joseph.olstad » Unassigned
Status: Needs review » Active

I don't have time to finish this patch right now but perhaps someone else does.
Patch 11 is the rerolled one, base the next patch off of patch 11.

joseph.olstad’s picture

Issue tags: +Performance
joseph.olstad’s picture

Status: Active » Postponed

Had to remove the related code from file_entity
still not ready.