iaso icon indicating copy to clipboard operation
iaso copied to clipboard

IA-3061 IA-2853 IA-3217 Public Registry

Open mathvdh opened this issue 1 year ago • 0 comments

Alpha Version of the public registry. See notes below as this require some configuration to be created via Django Admin

Related JIRA tickets : IA-3061 IA-2853 IA-3217

Self proofreading checklist

  • [x] Did I use eslint and black formatters
  • [x] Is my code clear enough and well documented
  • [x] Are my typescript files well typed
  • [x] New translations have been added or updated if new strings have been introduced in the frontend
  • [x] My migrations file are included
  • [ ] Are there enough tests
  • [x] Documentation has been included (for new feature)

Changes

Creation of a /api/public/registry/ endpoint which return a registry config, and the instances and instance detail with the values redacted according to the corresponding Public Registry Config (Still very basic at the moment)

There are also some modification on DataSource model to have a public flag and also to the APIs so that when a datasource is public you can access its data without being logged in.

Also this includes all the changes made in the frontend to allow for the Public Registry (Setup in a registry plugin)

Documentation

See docs/pages/dev/reference/public_registry/public_registry.md

How to test

You need to create a public registry config via Django Admin. For the moment the registry slug MUST be default_registry as it is hardcoded in the frontend. In the next version this should be passed to the frontend via URL parameter. You need to set the used data source as public via django admin. Then you can visit /registry/ while being UNLOGGED from the site. Then click on the "Explorer les donnees" button and you should see the public registry page which is very similar to the non public registry.

Print screen / video

Screenshot 2024-07-18 at 12 37 08

mathvdh avatar Jul 08 '24 12:07 mathvdh