Commit a1c15ba
committed
Extended
In theory, `Attributes` should be the most authoritative place for accessing the `VersionHistory` since the OnTopic Editor will, at minimum, write a `LastModified` and `LastModifiedBy` attribute for every `Save()`. If a topic is saved programmatically, or an implementation disables the `LastModified` attributes, however, then this won't necessarily be the case.
This is especially a concern now that `Relationships` and `TopicReferences` are both versioned. We don't want updates that don't impact `Attributes` to be excluded from the `VersionHistoryIndex`—and, thus, not available for `Rollback()` in the OnTopic Editor.
This update to the `VersionHistoryIndex` addresses this by pulling versions not just from `Attributes`, but also from `ExtendedAttributes`, `Relationships`, and `TopicReferences`. This resolves #78.VersionHistoryIndex to pull versions from all sources1 parent eb0615f commit a1c15ba
1 file changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
24 | 46 | | |
25 | 47 | | |
26 | 48 | | |
| |||
0 commit comments