# PR Revamping Notes ## Pipeline (for all user types) | Requester tab | condition | state | action | | -------- | ------------- | -------- | ----- | | My Approval | other PRs waiting my approval | created | view | Pending Approval | his PRs | created | view, | Returned | his PRs | returned | view, edit | Approved PRs | his PRs | approved | view | Published PRs | his PRs | published | view | Rejected Approval PRs | his PRs | rejected | view | Drafted PRs | his drafts | draft (draft schema) | view/edit | Admin/Owner | condition | state | action | | -------- | ------------- | -------- | ----- | | My Approval | Current approval | created | view | Pending PRs | See all created PRs | created | view | Returned | See all returned PRs | returned | view | Approved PRs | all approved PRs | approved | view/assign to member | Assigned to me | assignedMember = me | approved | view/publish | Assigned to other | not assigned to me but I'm supervisor in its team | approved | view | Published PRs | all published PRs | published | view | Proc | condition | state | action | | -------- | ------------- | -------- | ----- | | My Approval | Current approval | created | view | Approved PRs | all approved PRs | approved | view/assign to member | Assigned to me | assignedMember = me | approved | view/publish | Assigned to other | not assigned to me but I'm supervisor in its team | approved | view | Published PRs | my published PRs assigned procurement, PRs for his team (supervisor) | published | view - Requester: - My Approval (Current approval) (All users types) (view) - Pending Approval (his PRs, shared with?) (state: created) (view, delete?) - Returned (his PRs, shared with?) (state: returned) (view/edit/ delete?) - Approved PRs (his PRs, shared with?) (state: approved) (view/ delete?) - Published PRs (his PRs, shared with?) (state: published) (view/ delete?) - Rejected Approval PRs (his PRs, shared with?) (state: rejected) (view) - Archived PRs? (not sure still needed or not) (any state) (view ?, restore) - Drafted PRs? - Owner/Admin: - My Approval (Current approval) (All users types) (view) - Pending PRs (See all created PRs for all requests) (view) - Returned PRs (See all returned PRs for all requests) (state: returned) (view) - Approved PRs (Unassigned) (state: Approved) (view, assign to member) - Assigned to me (state: Approved) (view/publish) (Assigned procurement) - Assigned to other (state: Approved) (view) (not assigned to me but I'm supervisor in its team) - All published PRs (state: published) - Proc: - My Approval (Current approval) (All users types) (view) - Returned PRs (PRs he returned) (state: returned) (view) (return user/timestamp/reason) (@TODO need to be reviewed) - Approved PRs (New Unassigned) (supervisor) (state: Approved) (view, assign to member) - Assigned to me (state: Approved) (view/publish) (Assigned procurement) - Assigned to other (state: Approved) (view) (not assigned to me but I'm supervisor in its team) - All published PRs (state: published) (assigned procurement, PRs for his team (supervisor)) (view) ## Changes state - Approve - Reject - Return - Publish ## Search/Filter ## Split PR (Not now)