Skip to content
Snippets Groups Projects
Forked from briar / briar
Source project has a limited visibility.
  • Torsten Grote's avatar
    b03d0a20
    Add Message Dependencies to Database · b03d0a20
    Torsten Grote authored
    This adds a new table to the database to hold message dependencies.
    It introduces two more message states: pending and delivered
    The valid column in the database was renamed to state to better reflect
    its new extended meaning.
    
    The DatabaseComponent was extended with three methods for:
    * adding dependencies
    * getting dependencies of a message
    * getting messages that depend on a message (dependents)
    * getting messages to be delivered (by startup hook)
    * getting pending messages to be possibly delivered (by startup hook)
    
    In order to reflect the new states, things that were previously true for
    VALID messages have been changed to now be true for DELIVERED messages.
    
    Since pending messages should not be available to clients, many database
    queries have been modified to only return results for delivered
    messages.
    
    All added methods and changes should come with updated unit tests.
    
    Please note that the database version was bumped in this commit.
    b03d0a20
    History
    Add Message Dependencies to Database
    Torsten Grote authored
    This adds a new table to the database to hold message dependencies.
    It introduces two more message states: pending and delivered
    The valid column in the database was renamed to state to better reflect
    its new extended meaning.
    
    The DatabaseComponent was extended with three methods for:
    * adding dependencies
    * getting dependencies of a message
    * getting messages that depend on a message (dependents)
    * getting messages to be delivered (by startup hook)
    * getting pending messages to be possibly delivered (by startup hook)
    
    In order to reflect the new states, things that were previously true for
    VALID messages have been changed to now be true for DELIVERED messages.
    
    Since pending messages should not be available to clients, many database
    queries have been modified to only return results for delivered
    messages.
    
    All added methods and changes should come with updated unit tests.
    
    Please note that the database version was bumped in this commit.