CSCfi / CSCfi/rems

Implement catalogue item hierarchy in applicant UI

Open
#3,411 0 comments 0 reactions 0 assignees View on GitHub
BigPicture
Dominant language
Clojure
Stars
66
Forks
28
Avg merge
7d 4h
Merged PRs (30d)
2

Description

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 #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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.