You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently folders and templates are owned by the user. We can now get project affiliation information from the AAI in backend, and we can implement an ownership change where folders and templates are owned by projects, so that people in the same project can see and edit the same submissions.
Projects are mandatory
If a user does not have any project affiliations, they will be redirected to /noproject (name up for debate) by the backend. This page will explain, that the user needs to get project affiliation before being able to use the submitter. This page should include links to relevant resources to help the user get a project affiliation.
When updating a template, instead of 2 requests, only 1 request is now required, with tags and index that used to be in PATCH /userbeing put into the same request with PATCH /template
This is a living issue that has not been thoroughly scoped yet
This backend branch can be used as a counterpart for developing
https://github.com/CSCfi/metadata-submitter/tree/feature/project-ownership
Background
Currently
folders
andtemplates
are owned by the user. We can now get project affiliation information from the AAI in backend, and we can implement an ownership change where folders and templates are owned by projects, so that people in the same project can see and edit the same submissions.Projects are mandatory
If a user does not have any project affiliations, they will be redirected to
/noproject
(name up for debate) by the backend. This page will explain, that the user needs to get project affiliation before being able to use the submitter. This page should include links to relevant resources to help the user get a project affiliation.Deprecations
GET /users/current
folders
andtemplates
keys will be deprecatedNew Features
Endpoint changes
GET /users/current
projects
that contain list of projectsprojectId
is the internal id that will be used in requests to the backendprojectNumber
is the human-friendly name that comes from AAIPOST /folders and /templates
projectId
that is extracted from the current selected projectGET /folders and /templates
projectId
that is extracted from the current selected projectNew
templates
endpoint returns the sametemplates
-array that was previously in user dataNo Changes
GET/PUT/PATCH/DELETE /folders/{folderId} and /templates/{schema}/{templateId}
The text was updated successfully, but these errors were encountered: