Skip to content

Validate application before sending #3411

@meericsc

Description

@meericsc

Bigpicture would want to validate that there are specific datasets on the application and/or that applicant already has rights to specific dataset before application is sent.

We could do this with validate plugin and add the plugin to

  • shopping cart (validate on apply before creating application) and
  • the application form. (validate on send application)

REMS would validate 1. when user selects apply in the shopping cart 2. on the application form when user clicks send application.
If the user has not selected the right datasets and the user hasn't previously applied for the main dataset, user would see an error saying why the sending of application failed

  • Send application to plugin, plugin answers is application is OK
  • From where does REMS check the earlier permissions? Plugin could get earlier accepted applications / entitlements straight as a parameter (from cache)
  • Plugin should only check specific resources, in specific category that you define in config.edn
  • If not ok, show error to user
  • Datasets are validated based on resource id. Issue Catalogue item hierarchy support (sub-dataset) #3412
  • Plugin should get 1. application 2. catalogue item references either directly or it can also make an API call to get the info
  • Tests + documentation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions