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

Add mention of replacements and redirects in asset deletion section #4866

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lauraghiorghisor-tw
Copy link
Contributor

@lauraghiorghisor-tw lauraghiorghisor-tw force-pushed the add-mention-of-replacements-on-deletion-section branch from 5fa5f80 to 76b72a9 Compare October 30, 2024 17:46
@@ -19,6 +19,8 @@ For example, for `https://assets.publishing.service.gov.uk/government/uploads/up

## Remove an asset

Some applications, such as Whitehall, might require setting a redirect, rather than deleting the asset. Look out for replacements, or unpublished state of the parent edition, in the publishing application, and set the `replacement_id` or `redirect_url` in asset manager accordingly.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we expand this out into its own "Redirect an asset" section instead? And maybe add some blurb at the top of the doc, where we explain when to redirect and when to simply remove.

I'd love to see this section expanded out with code examples (e.g. how to set the redirect_url? Whether to set replacement_id or redirect_url - which is preferred? etc)

Copy link
Contributor Author

@lauraghiorghisor-tw lauraghiorghisor-tw Nov 1, 2024

Choose a reason for hiding this comment

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

There already is a redirect a section but I wanted to put it in the delete section as a reminder for people like me who totally forgot there are other states and just fixed all zendesk ticket assets with deletion 🙈

I can do an intro section with an explanation of the various states of assets, at least what I understand of it so far. And move this bit in that section, at the top of the file.

The redirect section uses a bit of an odd syntax for the rake task. I'd change that syntax to the usual rake task assets:redirect[]. Rake task seems alright. Never used it though.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good - let me know if you want a hand with syntax etc.

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