dedis / popstellar

Proof-of-personhood System
GNU Affero General Public License v3.0
35 stars 8 forks source link

Add the list of linked organizations to the database #1981

Open quadcopterman opened 1 month ago

quadcopterman commented 1 month ago

Description (Actual behavior)

On FE2, the federation protocol is not persistent as the list of linked organizations is not added to the database. This means that the app might forget that there was a linked organization if it is closed and reopen.

Expected behavior

The linked organization should stay even after closing and reopening the app.

How to reproduce

  1. Go to the linked organizations page
  2. Link to another organization
  3. The organization is displayed in the list of linked organizations (in the linked organizations page)
  4. Close and open the app
  5. The organization is not displayed anymore in the linked organizations page

How to solve this issue

It should be as simple as adding the linkedLaos map from LinkedOrganizationsRepository.kt to the database. The other variables of this repository are temporary for the connection so they don't need to be persistent.