Skip to content
Max Albrecht edited this page Aug 22, 2018 · 17 revisions

Temporary Documentation Collection

Request States

  • There are 4 possible States of a Request

    1. NEW: not inspected yet, e.g. no approved_quantity was entered
    2. APPROVED: the approved_quantity is at least the requested_quantity
    3. PARTIALLY_APPROVED: the approved_quantity is less than the requested_quantity
    4. DENIED: the approved_quantity is 0
  • Admins and Inspectors can always see and filter for all 4 States.

  • Requesters are only allowed to see/filter for States depending on the selected Budgetperiod(s)

    • ❓❓❓in requesting phase: the State is always shown as NEW (independent of the actual entered data)❓❓❓
    • in inspecting phase: the last 3 States are only allowed to be viewed/filtered for as an aggregate state IN_APPROVAL
    • past: all States allowed
  • In the UI, all possible State-Filters are offered. State-Filters that are not allowed for a BudgetPeriod are ignored in the API.

Scenarios

⚠️ Those are not automatic tests, just text in a similar format, while we collect them and evaluate the testing strategy.

Creating Request for Another User

NOTE: same is true when editing/updating a Request

For category inspectors

When I am Inspector of a Category
  And I create a new Request for this Category
Then I see a 'Requester' User-Selector
  And the User-Selector is prefilled with my Name
  And I can search for, find and select a Requester
  And I can search for, but NOT find and NOT select a non-Requester

Not as a requester only

When I am Requester of a Category
  And I create a new Request for this Category where I am not Inspector
Then I do NOT see a 'Requester' User-Dropdown

Not as inspector of different category

When I am Inspector of a Category
  And I create a new Request for a Category where I am not Inspector
Then I do NOT see a 'Requester' User-Dropdown

Schema Notes

  • there is room.general but not building.general?
Clone this wiki locally