Closed LucianBuzzo closed 6 years ago
@LucianBuzzo the "title:true" thing is problematic, as it can be made true for multiple fields. We need a single place where the title field is explicitly defined.
What we settled on is converting the schema to an array of objects, and using the first element in the array as the title. The conversion process will create a schema field named title
and place it at the beginning of the schema array.
I've edited my original post to reflect this ^^
Current state
At present, the underlying data structure used in Pensieve is an object. A key-value store where the title of a document entry is the key.
Problems
This has a number of problems:
Proposed state
What I propose is that we switch the structure to an array and add a new attribute to schema objects,title: boolean
that can be used to specify which field is used as the entry titleEdit: 2017-21-11
What I propose is switching the underlying data structure of the document to an array and converting the schema to an array. The first element in the schema array is used as the title field.
The new data structure would look something like this:
With the schema looking like this:
Upgrading existing Pensieve installations
As there are a number of Pensieve installations in existence we should provide a simple upgrade path to the new format.