Follow up to #2244513: Move the unmanaged file APIs to the file_system service (file.inc), we need to replace usages of deprecated constants in file.inc with those on FileSystemInterface.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 3023015-patch-14.txt | 2.46 KB | kim.pepper |
| #14 | file-deprecated-constants-3023015-14.patch | 44.01 KB | tinko |
| #12 | 3023015-12-interdiff.txt | 7.28 KB | kim.pepper |
| #12 | 3023015-12.patch | 43.92 KB | kim.pepper |
| #9 | file-deprecated-constants-3023015-9.patch | 42.2 KB | berdir |
Issue fork drupal-3023015
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
berdirThis is unblocked now.
Comment #3
berdirReplaced all usages that I found of "FILE_EXISTS" with "FileSystemInterface::EXISTS", except those in file.inc on the deprecated functions.
Comment #4
jibranApplied the patch locally and had a look and only found contrib usages. We should update the original change record https://www.drupal.org/node/3006851.
Comment #5
kim.pepperI updated the change record to list the constant changes.
Comment #8
berdirMissed when this conflicted, rerolled.
Change record was already updated, so removing that tag. This just does the rename, it doesn't introduce anything new.
Comment #9
berdirLots of conflicts but all pretty simple to resolve.
Comment #10
berdirComment #11
mikelutzAll looks good, only a few documentation nits.
I realize you didn't change this, but this doesn't look right.. EXISTS_REPLACE should replace, EXISTS_ERROR should throw an error, this line conflicts with the
@param int $replacedocumentation below..nit: over 80 characters
nit: over 80 characters.
nit: 80 characters
nit: 80 characters
nit: 80 characters
nit: 80 characters
Drupal\jsonapi\Controller\TemporaryJsonapiFileFieldUploader:190
Also, what are we doing with FILE_STATUS_PERMANENT? It's not deprecated or on the interface yet. Is there another issue for that one?
Comment #12
kim.pepperFixes for #11
See #3021833: Move FILE_STATUS_PERMANENT to \Drupal\file\FileInterface
Comment #13
mikelutznit: looks like two more 80+ char comments, I must have missed in my initial review. :-/
Comment #14
tinko commentedHello,
I've added the changes for comments to the previous patch.
:)
Comment #15
kim.pepperMissing interdiff for #14
Comment #16
tinko commentedThank you, kim.pepper. I'll try to not forget it next time. :)
Comment #17
kim.pepperNo worries! Thanks for your patch!
Comment #18
mikelutzLooks good. You even found one other comment to fix which I had missed!
Comment #19
alexpottCommitted 9aa7d13c9f and pushed to 8.8.x. Thanks!