As a inspector or on-site manager or home owner, I should be able to get all milestone stages assigned to me, so that I can review the work done and dictate its approval #91
Labels
user story
A brief explanation of a functionality or an interaction with the system, from a user's perspective
Summary
As a
inspector or on-site manager or home owner
, I should be able to get all milestone stages assigned to me, so that I can review the work done and dictate its approval.Acceptance Criteria
Scenario 1: Get all possible milestone stages
GIVEN an
inspector or on-site manager or home owner
is requesting all possible milestone stages in the desktop appWHEN the app hits the
/milestone-stages
endpoint with a valid GET request containing query parameters:project_role_id=some_id
, where some_id is my project role id.THEN the app should receive a status
200
AND in the response, the following information should be returned:
Sample Request/Sample Response
For e.g. my project_role_id is 1
Scenario 2: Get all milestone stages under me filtered by approval status
GIVEN an
inspector or on-site manager or home owner
is requesting all possible milestone stages in the desktop appWHEN the app hits the
/milestone-stages
endpoint with a valid GET request containing query parameters:project_role_id=some_id
, where some_id is my project role id.is_approved="bool"
, where bool is 1 or 0 indicating approval.THEN the app should receive a status
200
AND in the response, the following information should be returned:
Sample Request/Sample Response
For e.g. we want all my milestone stages that haven't been approved yet i.e. is_approved=0, project_role_id=1
Resources
Dev Notes
project_role_id might change to person_perm_id if want to show all assigned milestone stages directly on the dashboard or accessible without entering a project page. Otherwise if we only want to show stages per project then we have to use project_role_id to limit access.
Testing Notes
{notes for QA, with examples if applicable}
The text was updated successfully, but these errors were encountered: