Design Suggestions Database Schema and API for Documentation Chunks #1698
Labels
--breaking
Important: a change that will break a public API or user-facing behaviour
p-high
Should be completed in the next sprint
Summary
We need better docs in the IDE. To do that, the language server will generate and store the HTML documentation strings in the suggestions database. This task is to design the database schema allowing to store documentation chunks, and a new API to send the documentation chunks as a part of suggestions database updates.
Value
The language server is able to provide the documentation chunks for the IDE.
Specification
Extend the suggestions database schema to store documentation chunks. Documentation chunks need to be ordered. For a chunk, we should get a list of previous chunks and the chunks after this one.
An example of an index. It's a good idea to keep it normalized. The final list can be assembled in an SQL query (SQLite supports recursive queries).
An example of a doc table.
Extend the suggestion updates API to support the documentation chunks.
Acceptance Criteria & Test Cases
The text was updated successfully, but these errors were encountered: