-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add deprecation messages in FlysystemAssetStore #521
Comments
What's been deprecated, why and what the alternative is (if any)Legacy filenamePrior to the 4.4 release, there was something called legacy filename that would allow you to output filename without the hash. That was completely busted and become redundant once we enable NaturalFileIDs. We kept some of the methods around because they were part of the API but they effectively do nothing now. These should be deprecated and throw warning from now on.
silverstripe-assets/src/Flysystem/FlysystemAssetStore.php Lines 1226 to 1229 in ce9464b
Methods that became part of the FileID helpersAsset Store used to be very directive because it would assume that all the files would be contained hashes. Those methods were moved to file ID helpers. But some hackish implementation were kept on the asset store ... because SEMVER. These methods should throw warnings now and be removed altogether.
This method is not currently marked as deprecated, but should be.
Task that need to be removedThese task are no longer needed and should be deprecated/removed
Legacy File resolutionTo be able to migrate and resolve SS3 file URLs, we had to create a lot of of legacy abstraction (aka replicating the SS3 file resolution logic in SS4). That legacy logic is no longer needed. This class should be deprecated: LegacyFileIDHelper.php This bit of config can be simplified in CMS5:
This will however mean that everyone who wants to upgrade to CMS5 and had a site created prior to CMS4.4 will have to had run the FileMigrationHelper at some point. silverstripe-assets/_config/asset.yml Lines 26 to 43 in ce9464b
Scope creep to annoy @emteknetnzIn CMS4.4, I introduced ParsedFileID. Until then, we would use
Even more scope creepFlysystem's This would open some possibilities for some people #368 |
This PR will handle the deprecations: #525 I'll spin up my other side concerns into their own card. |
@max please create a PR for the 4.12.0 changelog for the things that are being newly deprecated. |
This is all done |
This is currently blocking #522
There are a bunch of
@deprecated 1.4.0
phpdoc's on methods in FlysystemAssetStoreAs part of silverstripe/silverstripe-framework#10531, we need to add standardized message to all phpdocs. i.e.
* @deprecated 1.4.0 My message
Use either of the following standardized messages:
Use <methodname>() instead
Will be removed without equivalent functionality to replace it
Acceptance criteria
@deprecated
phpdoc's in FlystemAssetStore with missing messages have message addedPull request
The text was updated successfully, but these errors were encountered: