Replies: 2 comments
-
Related to #3008 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Design in #3217 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We need to build a way to manage relationship / upload "dependency trees".
This would work in two ways:
1 - relationships TO a document
We should surface all relationships TO a given document when you navigate to the document. For example, if you are viewing a media file, you should see all documents that relate to that given media document when you are viewing the media document itself in the admin UI. This will open up the possibility to, for example, prompt the user upon deletion of the document to say something like "You are about to delete this media document, but these X number of documents relate to the media document."
2 - Relationships ON a document
We should also surface all relationships that a parent document has relations to. For example, if you are editing a post, and it has relationships to X number of media files, and X number of categories, tags, etc - - we should be able to view a list of all dependent relations easily. This will be helpful in cases where, say, you want to "bulk publish" changes to a parent post, but also want to bulk publish changes to all related documents at the same time.
Both of these new features in conjunction will allow us to build dynamic caching / purging down the line as well. For example, let's take an example REST response at
/api/posts/:my-id?depth=2
. If someone wanted to cache this URL, we would need to be able to purge this URL from cache not only when the post itself changes, but also when any of its relations up to 2 levels deep change.Beta Was this translation helpful? Give feedback.
All reactions