Tracking original IDs or general order #1420
Labels
discussion
Needs discussion or is being discussed.
scope: core
Core VersionPress functionality like tracking actions, creating Git commits, etc.
During work on test infrastructure we found a problem with order of posts on cloned site. When there are several posts (or other items) published at the same time and ordered by that time, their order can be different on original and cloned site, see example in #1409 (comment).
Order on original site is based on ID (order from database storage), but cloned site depends on loading
.ini
files through iterators:versionpress/plugins/versionpress/src/Storages/DirectoryStorage.php
Lines 157 to 168 in e220983
And VersionPress ignores original IDs, so there is currently no way to order posts by their original ID on cloned sites.
Maybe there is a time to start tracking original IDs (VP could make a clean clone with original IDs which could be helpful in some cases) or general order (VP could generally know order of created items at least).
The text was updated successfully, but these errors were encountered: