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

Migration to add trashed_from_* #41529

Commits on Apr 18, 2024

  1. Migration to add trashed_from_*

    We want to record where things were trashed *from* for two purposes:
    
    - first, we want to be able to put things back if they're "untrashed".
    
    - second, we want to be able to enforce permissions *as if* something is
    still in its previous location. That is, if we trash a card or a
    dashboard from Collection A, the permissions of Collection A should
    continue to apply to the card or dashboard (e.g. in terms of who can
    view it).
    
    To achieve this, collections get a `trashed_from_location` (paralleling
    their `location`) and dashboards/cards get a
    `trashed_from_collection_id` (paralleling their `collection_id`).
    johnswanson committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    09672cb View commit details
    Browse the repository at this point in the history