Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-485

CBAT : Get Document Status & Return Document Status API

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Integration with CBAT
    • Labels:
      None

      Description

      CBAT : Get Document Status & Return Document Status API

        Attachments

          Activity

          rohan.khandave Rohan J Khandave (Inactive) created issue -
          rohan.khandave Rohan J Khandave (Inactive) made changes -
          Field Original Value New Value
          Epic Link DMS-473 [ 75966 ]
          shashikant.mishra ShashiKant Mishra (Inactive) made changes -
          Remaining Estimate 24h [ 86400 ]
          Original Estimate 24h [ 86400 ]
          shashikant.mishra ShashiKant Mishra (Inactive) made changes -
          Sprint DMS - Sprint 3 [ 152 ]
          samir Samir made changes -
          Assignee Samir [ samir ] Rohan J Khandave [ rohan.khandave ]
          rohan.khandave Rohan J Khandave (Inactive) made changes -
          Sprint DMS - Sprint 3 [ 152 ]
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          As per discussion with Joris. This needs to confirm that any post api at CBAT end. If so (after confirmation) we need to taken into development. 

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - As per discussion with Joris. This needs to confirm that any post api at CBAT end. If so (after confirmation) we need to taken into development. 
          swapnil.pandhare Swapnil Pandhare (Inactive) made changes -
          Sprint DMS - Sprint 4 [ 153 ]
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Hello Shamooka Mohapatra,

          Do you have any updates for this?

          Thanks,
          RohanK

          CC – Samir , Swapnil Pandhare

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Hello Shamooka Mohapatra , Do you have any updates for this? Thanks, RohanK CC – Samir , Swapnil Pandhare
          rohan.khandave Rohan J Khandave (Inactive) made changes -
          Assignee Rohan J Khandave [ rohan.khandave ] Shamooka Mohapatra [ shamooka.mohapatra ]
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Comments from David Vincent on slack.

          Regarding card https://careerbuilder.atlassian.net/browse/AT-1923, I will create an endpoint for you to call with a POST query.
          It will be available at https://system_url/bo.php/rest/dms/candidate/

          {id}

          /documents/status
          {id}

          stands for the candidate_id and I need you to send this payload:

          { "documents": [ "document_id": "int", "status": "string" ], [ "document_id": "int", "status": "string" ], [ "document_id": "int", "status": "string" ] }

          status: new|viewed|signed

          Comments from Alexandre Wuyts on slack.
          Do you think you can add the signature date in the answer for this endpoint: LatestStatus
          It’s misssing, if document is not signed null is fine

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Comments from David Vincent on slack. Regarding card https://careerbuilder.atlassian.net/browse/AT-1923 , I will create an endpoint for you to call with a POST query. It will be available at https://system_url/bo.php/rest/dms/candidate/ {id} /documents/status {id} stands for the candidate_id and I need you to send this payload: { "documents": [ "document_id": "int", "status": "string" ], [ "document_id": "int", "status": "string" ], [ "document_id": "int", "status": "string" ] } status: new|viewed|signed Comments from Alexandre Wuyts on slack. Do you think you can add the signature date in the answer for this endpoint: LatestStatus It’s misssing, if document is not signed null is fine
          samir Samir made changes -
          Sprint DMS - Sprint 4 [ 153 ] DMS - Sprint 5 [ 154 ]
          Hide
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment -

          Comments from Joris on slack

          Hi @Samir Shaikh @Rohan J Khandave,
          FYI: the ATS endpoint to push document updates is not ready yet. I just reviewed the code and there's still some more work to be done before we should share with you the API specs.
          Thanks for your patience.

          Show
          swapnil.pandhare Swapnil Pandhare (Inactive) added a comment - Comments from Joris on slack :  Hi @Samir Shaikh @Rohan J Khandave, FYI: the ATS endpoint to push document updates is not ready yet. I just reviewed the code and there's still some more work to be done before we should share with you the API specs. Thanks for your patience.
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Comments from Joris Berthelot on slack.

          the ATS endpoint spec is the following:

          POST /rest/dms/event    HTTP/1.1

          Host: customer-system.luceosoltions.com

          Content-Type: application/json

          [

              { "id": 1, "event": "Signed" } ,

              { "id": 2, "event": "Opened" } ,

              { "id": 3, "event": "Signed" }

          ]

          This is a demo request.

          Request body is a collection of documents { id, event }

          When a candidate signs a document, you can immediately send us back the event related to the document.

          CC – Shamooka Mohapatra , Samir , Swapnil Pandhare

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Comments from Joris Berthelot on slack. the ATS endpoint spec is the following: POST /rest/dms/event     HTTP/1.1 Host: customer-system.luceosoltions.com Content-Type: application/json [     { "id": 1, "event": "Signed" } ,     { "id": 2, "event": "Opened" } ,     { "id": 3, "event": "Signed" } ] This is a demo request. Request body is a collection of documents { id, event } When a candidate signs a document, you can immediately send us back the event related to the document. CC – Shamooka Mohapatra , Samir , Swapnil Pandhare
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Comments from Joris Berthelot from slack

          Hello @Rohan J Khandave, you can test the ATS callback API with this request:

          ```curl --request POST \
          --url http://php56-sandbox-26.luceosolutions-dev.com/rest/dms/event \
          --header 'Authorization: Basic cGhwNTYtc2FuZGJveC0yNjpwaHA1Ni1zYW5kYm94LTI2' \
          --header 'Content-Type: application/json' \
          --data '[

          {"id": 3, "event": "Signed"}

           ]' 

          Basic Auth is:
          user: php56-sandbox-26
          passwd: php56-sandbox-26

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Comments from Joris Berthelot from slack Hello @Rohan J Khandave, you can test the ATS callback API with this request: ```curl --request POST \ --url http://php56-sandbox-26.luceosolutions-dev.com/rest/dms/event \ --header 'Authorization: Basic cGhwNTYtc2FuZGJveC0yNjpwaHA1Ni1zYW5kYm94LTI2' \ --header 'Content-Type: application/json' \ --data '[ {"id": 3, "event": "Signed"}  ]'  Basic Auth is: user: php56-sandbox-26 passwd: php56-sandbox-26
          Hide
          Joris.Berthelot Joris Berthelot (Inactive) added a comment -

          Hello,

          New endpoint definition:

           

          POST /rest/dms/document/status-event HTTP/1.1
          Host: customer-system.luceosolutions.com
          Content-Type: application/json
          [
              {
                  "id": 1,
                  "status_id": 3,
              },
              {
                  "id": 2,
                  "status_id": 4,
              },
              {
                  "id": 3,
                  "status_id": 66,
              }
          ] 

           

          /rest/dms/event => /rest/dms/document/status-event

          event => status_id

          status_id is now an integer amongst the values you provided

           

          Show
          Joris.Berthelot Joris Berthelot (Inactive) added a comment - Hello, New endpoint definition:   POST / rest /dms/document/status-event HTTP/1.1 Host: customer-system.luceosolutions.com Content-Type: application/json [ { "id" : 1, "status_id" : 3, }, { "id" : 2, "status_id" : 4, }, { "id" : 3, "status_id" : 66, } ]   /rest/dms/event => /rest/dms/document/status-event event => status_id status_id is now an integer amongst the values you provided  
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Assignee Shamooka Mohapatra [ shamooka.mohapatra ] Ramya Tantry [ ramya.tantry ]
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Status To Do [ 10000 ] In Progress [ 3 ]
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Sprint DMS - Sprint 5 [ 154 ] DMS - Sprint 5, DMS - Sprint 6 [ 154, 159 ]
          ramya.tantry Ramya Tantry (Inactive) logged work - 02/Apr/19 05:54 AM
          • Time Spent:
            3.5h
             

            1. Log into document routing when declined - As of now migration is not to be considered of documents that are already declined.
            2. Code to fetch data in the required format of specific document

          ramya.tantry Ramya Tantry (Inactive) made changes -
          Remaining Estimate 24h [ 86400 ] 20.5h [ 73800 ]
          Time Spent 3.5h [ 12600 ]
          Worklog Id 170368 [ 170368 ]
          ramya.tantry Ramya Tantry (Inactive) logged work - 03/Apr/19 03:45 AM
          • Time Spent:
            6h
             
            1. Code to send data to CBAT url
            2. Unit testing
          Hide
          ramya.tantry Ramya Tantry (Inactive) added a comment -

          Task Details

          1. Log into document routing when declined - As of now migration is not to be considered of documents that are already declined.
          2. Code to fetch data in the required format of specific document
          3. Code to send data to CBAT url
          4. Unit testing

          Rohan J Khandave : Please review the PR

          Show
          ramya.tantry Ramya Tantry (Inactive) added a comment - Task Details Log into document routing when declined - As of now migration is not to be considered of documents that are already declined. Code to fetch data in the required format of specific document Code to send data to CBAT url Unit testing Rohan J Khandave : Please review the PR
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Remaining Estimate 20.5h [ 73800 ] 14.5h [ 52200 ]
          Time Spent 3.5h [ 12600 ] 9.5h [ 34200 ]
          Worklog Id 170600 [ 170600 ]
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Status In Progress [ 3 ] Code Review [ 11801 ]
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Assignee Ramya Tantry [ ramya.tantry ] Rohan J Khandave [ rohan.khandave ]
          rohan.khandave Rohan J Khandave (Inactive) made changes -
          Developer Ramya Tantry [ ramya.tantry ]
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Code review done.

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Code review done.
          rohan.khandave Rohan J Khandave (Inactive) made changes -
          Assignee Rohan J Khandave [ rohan.khandave ] Ramya Tantry [ ramya.tantry ]
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Assignee Ramya Tantry [ ramya.tantry ] Priya Dhamande [ priya.dhamande ]
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Status Code Review [ 11801 ] In QA Testing [ 11901 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Attachment image_9V.png [ 103486 ]
          Hide
          priya.dhamande Priya Dhamande (Inactive) added a comment -

          Environment: Preprod

          The jira is verifie fr

          • Review and Sign completet flow
          • Error log for CBATS value.

          Both worked as expected. So, closing jira.

          Ramya Tantry Rohan J Khandave Swapnil Pandhare

          Show
          priya.dhamande Priya Dhamande (Inactive) added a comment - Environment: Preprod The jira is verifie fr Review and Sign completet flow Error log for CBATS value. Both worked as expected. So, closing jira. Ramya Tantry Rohan J Khandave Swapnil Pandhare
          priya.dhamande Priya Dhamande (Inactive) logged work - 08/Apr/19 05:32 AM
          • Time Spent:
            1h
             

            Preprod testing

          priya.dhamande Priya Dhamande (Inactive) made changes -
          Remaining Estimate 14.5h [ 52200 ] 13.5h [ 48600 ]
          Time Spent 9.5h [ 34200 ] 10.5h [ 37800 ]
          Worklog Id 171470 [ 171470 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Resolution Done [ 10000 ]
          Status In QA Testing [ 11901 ] Done [ 10001 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Assignee Priya Dhamande [ priya.dhamande ] Ramya Tantry [ ramya.tantry ]
          Transition Time In Source Status Execution Times
          Ramya Tantry (Inactive) made transition -
          To Do In Progress
          82d 1h 22m 1
          Ramya Tantry (Inactive) made transition -
          In Progress Code Review
          1d 56m 1
          Ramya Tantry (Inactive) made transition -
          Code Review In QA Testing
          2d 35m 1
          Priya Dhamande (Inactive) made transition -
          In QA Testing Done
          3d 1h 11m 1

            People

            Assignee:
            ramya.tantry Ramya Tantry (Inactive)
            Reporter:
            rohan.khandave Rohan J Khandave (Inactive)
            Developer:
            Ramya Tantry (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Time Spent - 10.5h Remaining Estimate - 13.5h
                13.5h
                Logged:
                Time Spent - 10.5h Remaining Estimate - 13.5h
                10.5h