Skip to content
Max Albrecht edited this page Aug 23, 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 NOT allowed to see/filter for those "real" States for BudgetPeriods that are not past the inspection phase. Instead, the State of those Requests is only dependendent on the current phase of the BudgetPeriod they are in

    • NEW: inspection phase of the BudgetPeriod has not yet started
    • IN_APPROVAL: inspection phase of the BudgetPeriod is ongoing
    • for past BudgetPeriod: all States allowed (like for Inspectors)
  • In the UI, all possible State-Filters are offered. State-Filters that are not allowed for a BudgetPeriod are ignored in the API. Example: If I send a filter it will be applied to all requests in BudgetPeriods where I am allowed to use that filter – and where I am not allowed to use it it has no effect at all (as if I would not have sent it)

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?