CAN should keep a name to address indexΒΆ
CAN's notebook should keep an up-to-date index of note names to addresses, to allow for situations where CAN needs to map a name to an address.
The index should consist of a directory name-address
in the notebook. Each name currently present should have a file containing the address of the note with that name.
The index should be built in full on start-up and should be maintained as changes to names and notes occur. The underlying metadata files in each note should remain the source of truth, but all effort should be made to keep the index up-to-date.
The name-address-index-builder handler should maintain the index as events are fired across the system.
- the handler should rebuild the index on system start-up
- the handler should add a new mapping when the NOTE_CREATED event is fired