-
Notifications
You must be signed in to change notification settings - Fork 14
Conversation
fix promise
} | ||
} | ||
|
||
public async fetchModifiedTree(): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I came upon this solution given that we couldn't traverse the tree
inside the constructor
@@ -156,3 +141,25 @@ const fetchFilesFromTree = (hash, path) => { | |||
}) | |||
}) | |||
} | |||
|
|||
const fetchOrderedHistory = async (hash, formerHistory) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the final version of this PR, we'll deprecate all of these helper functions in this file and import them from pando.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey ! I added a couple of comment. Also I think the best would be to:
- split this lib into its own package. We may need to use it in other places [especially in the GraphProtocol reducer if we come up with one]
- Write test to make sure of the consistency of the lib. The best would be extract a known IPLD commit history build with pando and, in the test, push it to IPFS and then try to fetch it again / update it. Otherwise i think it will be super tricky to test the behaviour of the lib each time we update it.
author: IAuthorOrCommitter | ||
committer: IAuthorOrCommitter | ||
message: string | ||
parents: ITree[] | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it supposed to be : parents: ILinkedCommitData[]
?
Closing for now since we need to figure out an answer to #50 before ... Will re-open later if needed ... |
Looking for some feedback on this approach before I deprecate IPLD functions inside of
script.js
Todo:
Commit
class back into IPLD format.Resolves #50