Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
#2992833: Add a version negotiation to revisionable resource types makes it possible to request individual revisions of an entity.
In order to find those revisions, a version-history
resource is required which will list all revisions of an entity.
We need to:
- Determine what the URL path should be.
- Figure out how individual resource objects in the collection will link directly to their revision-specific individual route. See #2992836: Provide links to resource versions (entity revisions)
- Implement it!
Comments
Comment #1
gabesullicegabesullice created an issue.
This is postponed on #2992836: Provide links to resource versions (entity revisions)
Comment #2
Wim Leers#2992836: Provide links to resource versions (entity revisions) was blocked on #2992833: Add a version negotiation to revisionable resource types, but #2992833 just reached RTBC, so #2992836 can move forward again. Hence the status of this issue is accurate.
Comment #3
Wim LeersAFAICT this is also blocked on #2725523: Add a revision_parent field to revisionable entities? Fortunately, that is moving forward again as of exactly one week ago, see #2725523-15: Add a revision_parent field to revisionable entities! I already reviewed that patch.
Comment #4
gabesullice#2992836: Provide links to resource versions (entity revisions) landed!
Comment #5
Wim Leershttps://tools.ietf.org/html/rfc5829#section-3.1 defines this as the
version-history
link relation, reflecting that in the title.Comment #6
Wim LeersIt probably makes sense to also handle
predecessor-version
andsuccessor-version
links in this issue, since that is also enabled by #2725523: Add a revision_parent field to revisionable entities.Comment #7
gabesullice@Wim Leers, let's not block this on that issue. Right now, we can deduce predecessors and successors from the
vid
(just sort it) since Drupal does not yet support branching. When it does, we can takerevision_parent
into account in a follow-up.Comment #8
gabesulliceMoving to the core queue.
Comment #9
Wim LeersIIRC deducing it from
vid
now and usingrevision_parent
in the future will lead to behavior changes and hence BC breaks?Comment #14
johnguirgis CreditAttribution: johnguirgis commentedIs there any update on this? I would like to be able to view the version history of node and I'm not sure how I would go about doing that.