We re-implement the logic of traversing an Entry graph multiple times in our codebase, performing a different action at each node or tracking different metadata. These use cases could potentially be streamlined by implementing an EntryVisitor class containing the common logic, with subclasses performing the different specific functions.
We re-implement the logic of traversing an
Entry
graph multiple times in our codebase, performing a different action at each node or tracking different metadata. These use cases could potentially be streamlined by implementing anEntryVisitor
class containing the common logic, with subclasses performing the different specific functions.Possible visitor subclasses:
FillUUIDVisitor
SearchVisitor
(forFilestoreBackend
/TestBackend
)SnapVisitor