Transekt (Abschnitte) vorschlagen
As a registered user I want to be able to create draft sections and transects and thus propose new transects. FE application will be able to list all drafts that have status = -1
, decide to change status to confirmed or rejected and make corresponding (existing) mutation requests to create transect and section using data from draft entities.
Jira story: https://ufz-jira.scolution.de/browse/MWB-357
Data model: https://confluence.digitalearth-hgf.de/pages/viewpage.action?pageId=16716827
AC
-
add field transect.status -
add field section.status -
Possible values for status are: - -1 (draft - default value)
- 1 (confirmed)
- 2 (rejected)
-
add field section.description -
only admin/project lead can create transect with status 1 or 2 -
only admin/project lead can create section with status 1 or 2 -
transect code is optional on transect creation -
when status is changed to 1, transect code must be supplied -
inspections and observations cannot be attached to transect that have status other than 1 -
transect and section can be created by all users, but can be updated only by adimin/project lead -
check existing queries that use sections and transects, to include only the ones with status 1 -
Tests
Review
-
add field transect.status -
add field section.status -
Possible values for status are: - -1 (draft - default value)
- 1 (confirmed)
- 2 (rejected)
-
add field section.description -
only admin/project lead can create transect with status 1 or 2 -
only admin/project lead can create section with status 1 or 2 -
transect code is optional on transect creation -
when status is changed to 1, transect code must be supplied -
inspections and observations cannot be attached to transect that have status other than 1 -
transect and section can be created by all users, but can be updated only by adimin/project lead -
check existing queries that use sections and transects, to include only the ones with status 1 -
Tests
Edited by Michael Voigt