Fixing historical traceability for migrated documents with nil values.
This commit is contained in:
parent
60cfd01f0d
commit
6a3c0332b3
@ -35,10 +35,10 @@ LeDatabase >> addPageFromMarkdeep: markdeepDocTree withRemote: externalDocLocati
|
|||||||
latestEditTime: (LeTime new time: (remoteMetadata at: 'modified') asDateAndTime);
|
latestEditTime: (LeTime new time: (remoteMetadata at: 'modified') asDateAndTime);
|
||||||
createEmail: (remoteMetadata at: 'creator');
|
createEmail: (remoteMetadata at: 'creator');
|
||||||
editEmail: (remoteMetadata at: 'modifier').
|
editEmail: (remoteMetadata at: 'modifier').
|
||||||
snippets do: [ :snippet | | currentParent |
|
snippets do: [ :snippet | "| currentParent |"
|
||||||
page addSnippet: snippet.
|
page addSnippet: snippet.
|
||||||
currentParent := page detectParentSnippetWithUid: (snippet metadata at: 'parent').
|
"currentParent := page detectParentSnippetWithUid: (snippet metadata at: 'parent').
|
||||||
snippet parent: currentParent.
|
snippet parent: currentParent."
|
||||||
].
|
].
|
||||||
page children
|
page children
|
||||||
do: [ :snippet |
|
do: [ :snippet |
|
||||||
|
@ -26,8 +26,8 @@ OrderedDictionary >> asLepiterSnippet [
|
|||||||
editTime: (LeTime new time: ((self at: 'modified') asDateAndTime));
|
editTime: (LeTime new time: ((self at: 'modified') asDateAndTime));
|
||||||
editEmail: (self at: 'modifier');
|
editEmail: (self at: 'modifier');
|
||||||
createEmail: (self at: 'creator').
|
createEmail: (self at: 'creator').
|
||||||
response metadata at: 'origin' ifPresent: [ response metadata at: 'origin' put: (self at: 'origin') ].
|
self at: 'origin' ifPresent: [ response metadata at: 'origin' put: (self at: 'origin') ].
|
||||||
response metadata at: 'errata' ifPresent: [ response metadata at: 'errata' put: (self at: 'errata') ].
|
self at: 'errata' ifPresent: [ response metadata at: 'errata' put: (self at: 'errata') ].
|
||||||
^ response
|
^ response
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user