Skip to content
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

ENH Allow File.keep_archived_assets to show files archive tab #301

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Aug 7, 2023

Issue #300

This should have been checked File.keep_archived_assets all along, instead of AssetControlExtension

AssetControlExtension is an extension added to DataObject which is how the keep_archived_assets config is on File, so I can see why people though the config should have been read from there, though I think it was an error. We should that config working though for BC

Documentation has it on File - https://docs.silverstripe.org/en/4/developer_guides/files/file_management/#configuring-file-archiving

All the unit-tests that reference 'keep_archived_assets' use File::config()->set('keep_archived_assets')

  • silverstripe/assets RedirectKeepArchiveFileControllerTest
  • silverstripe/assets NormaliseAccessMigrationHelperWithKeepArchivedTest
  • silverstripe/assets SS4KeepArchivedFileMigrationHelperTest

src/Extensions/FileArchiveExtension.php Outdated Show resolved Hide resolved
src/Extensions/FileArchiveExtension.php Show resolved Hide resolved
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, will merge when the remaining PRs are ready

@GuySartorelli GuySartorelli merged commit 546cb53 into silverstripe:1.13 Aug 8, 2023
@GuySartorelli GuySartorelli deleted the pulls/1.13/config branch August 8, 2023 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants