Problem/Motivation
We will heavily change the way we manage Instance entity history:
- From #3577791: Adopt Field API for Instance entity data, it is using 3 "step" base fields:
past,present&future - From #3562989: Implements RevisionLogInterface for Instance entity, we will use the Revision API
We need to prepare this change, reducing the gap by adding an abstraction. Good news, there is already some methods which are long expected in the project, so we can just add them now : HistoryInterface::getPast() & HistoryInterface::getFuture().
Proposed resolution
Once #3577791: Adopt Field API for Instance entity data is merged:
- Replace
HistoryInterface::getCountPast()by::getPast() - Replace
::getCountFuture()by::getFuture() - Update
LogsPanel - Update tests
Issue fork display_builder-3578224
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pdureau commentedComment #3
pdureau commentedComment #4
pdureau commentedComment #6
pdureau commentedDone. But kept on my side until #3577791: Adopt Field API for Instance entity data is merged
Comment #7
pdureau commentedComment #10
mogtofu33 commented