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

"Files" tab in archive admin is missing #300

Closed
jenniferaslan opened this issue Aug 3, 2023 · 4 comments
Closed

"Files" tab in archive admin is missing #300

jenniferaslan opened this issue Aug 3, 2023 · 4 comments
Assignees
Labels

Comments

@jenniferaslan
Copy link

jenniferaslan commented Aug 3, 2023

The documentation shown here describes functionality that is not showing in a SilverStripe 4.13 site I recently built and launched:

https://github.com/silverstripe/silverstripe-userhelp-content/blob/4/docs/en/02_Creating_pages_and_content/05_Archive.md#restoring-content-to-your-website

I have added the following to my app.yml file:

SilverStripe\Assets\File:
 keep_archived_assets: true
 show_history: true

However, after flushing, there is no Files tab in the Archive, nor is there any Archive option on files themselves in the Files interface. Is this functionality deprecated or broken?

Acceptance criteria

  • Validate that this was not removed intentionally.
  • Make sure user help in in line with the capabilities of the CMS.
  • If the capability is restored, make sure it is driven by the keep_archived_assets flag.

Notes

  • If you don't have the keep_archived_assets flag set to true, this feature will be less useful because you won't have any files to restore. Maybe it got intentionally remove because of that.

PRs

@GuySartorelli GuySartorelli changed the title File archive is missing "Files" tab in archive admin is missing Aug 3, 2023
@GuySartorelli GuySartorelli transferred this issue from silverstripe/silverstripe-userhelp-content Aug 3, 2023
@GuySartorelli
Copy link
Member

Thanks for reporting this. I've moved this to the versioned-admin repository, as it seems like a genuine regression.

@emteknetnz
Copy link
Member

I've raised a PR to get the SilverStripe\Assets\File.keep_archived_assets config working properly as documented.

Note that SilverStripe\AssetAdmin\Forms\FileFormFactory.show_history is an asset-admin setting, the example in the original issue description incorrectly has this on SilverStripe\Assets\File

@emteknetnz emteknetnz removed their assignment Aug 7, 2023
@GuySartorelli GuySartorelli self-assigned this Aug 7, 2023
@GuySartorelli
Copy link
Member

@emteknetnz To satisfy the acceptance criteria "Make sure user help in in line with the capabilities of the CMS." the screenshot(s) on the linked userhelp page showing an "archive" button should be updated to show a "delete" button, and the docs should explain that "delete" means "archive" if old versions of files are retained.
Alternatively, the "delete" button should be replaced with an "archive" button when keep_archived_assets is true.

@GuySartorelli
Copy link
Member

This issue has now been resolved and will be automatically tagged once CI has finished running on the branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants