elixir-luxembourg / daisy

Data Information System (DAISY) is a data bookkeeping application designed to help Biomedical Research institutions with their GDPR compliance.
GNU Affero General Public License v3.0
12 stars 10 forks source link

Support for multiple publishing channels #412

Closed neoflex closed 1 year ago

neoflex commented 1 year ago

Is your feature request related to a problem? Please describe.

Data stewards need the be able to select from a list of channels were the dataset or project will be published when they click on the publish button.

Describe the solution requested

It should be possible to register special "clients" or "dissemination channels" in Daisy. Then, when publishing a dataset or a project, Daisy would display allow the data steward to select one or several of those channels were the entity should be published.

The api endpoints for datasets and projects would only exposed the entities that have been marked as being published for the client doing the api call.

Describe possible alternatives

Other info context

neoflex commented 1 year ago

access to /datasets and /projects api endpoints using global api key should give return the full list of datasets and projects, even not published

neoflex commented 1 year ago
nirmeen commented 1 year ago
neoflex commented 1 year ago

to get the list of form_ids from REMS, maybe it's not worth using the remsPythonClient to avoid adding an extra dependency. As it's a rather simple request it seems, maybe we should do directly using the requests package.

HesamKorki commented 1 year ago
  • [ ] new model for endpoints (id, name: unique, api_key, [ips]) (ips if time permit)
  • [ ] new model for publication <-- find a better name (entity_id, entity_type, form_id, date, user, endpoint_id)

@vildead asked for the feature we talked about (the link to the resource page on the endpoint). there will be a url_pattern column for the endpoint model

HesamKorki commented 1 year ago
HesamKorki commented 1 year ago
  • [ ] new model for endpoints (id, name: unique, api_key, [ips]) (ips if time permit)
  • [ ] new model for publication <-- find a better name (entity_id, entity_type, form_id, date, user, endpoint_id)

@vildead asked for the feature we talked about (the link to the resource page on the endpoint). there will be a url_pattern column for the endpoint model

one thing to note about this feature is, if the user does not provide the URL pattern which is optional, the chips would not be clickable

nirmeen commented 1 year ago

Limit the user from choosing the same endpoint twice with different forms in UI