ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Specification

GraphQL

Purpose

This WS is designed to review and update assign merge_request.

Statements 

  1. Assignee can postpone merge_request change its status to POSTPONE
  2. POSTPONE is not final status and must be changed to one of MERGE, SPLIT, TRASH
  3. MERGE, SPLIT, TRASH are final statuses
  4. In case one of MERGE, SPLIT, TRASH for one merge_request reached decision_amount value this request must be processed
    1. Decisions with status SPLIT and TRASH changes Merge Candidates to PROCESSED
    2. Decisions with status MERGE changes Merge Candidates to PROCESSED and creates Merge Job

Authorize

    1. Verify the validity of access token
      1. in case of error return 401 ('Access denied')
    2. Check user scope merge_request:review in order to perform this action
      1. in case of error generate 401 response ('Invalid scopes')

Verify role

Extract from token:

  1. Validate client_id (is_blocked=false)
    1. in case of error return 403 Error ('Client is blocked')
  2. Check user_roles by client_id 
    1. check whether exist role NHS_REVIEWER 
      1. in case of error return 403 Error ('User doesn't have required role')

Validate request

  • No labels