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

DMS| Preprod | API | Not able to see multiple company when candidate logged in

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Company:
      All Clients/Multiple Clients

      Description

      DMS| Preprod | Not able to create candidate through API for multiple company

      steps:

      1. Create candidate through below API
        corporate/dms/api/candidateProfile
        Email id- prateek.saxena@careerbuilder.com ( Existing candidate for CB internal Beta, user id- SAPR, Pwd- SAPR)
        UserDid: featuretestuser1
        AccountDid: CBATSFEATURETEST2
        o/p -->Candidate id 997 ( create new candidate)
      2. now create same candidate
        corporate/dms/api/candidateProfile
        UserDid: ABC
        AccountDid: A7F0PT78MTMZ470WBBT
        o/p->
        "error": "Signer already exist."
      3. When we login with candidate, we are not able to see company name in drop down

        Attachments

          Activity

          PrateekS Prateek created issue -
          PrateekS Prateek made changes -
          Field Original Value New Value
          Description DMS| Preprod | Not able to create candidate through API for multiple company

          steps:
           # Create candidate through below API
          corporate/dms/api/candidateProfile
          UserDid: featuretestuser1
          AccountDid: CBATSFEATURETEST2
          o/p -->Candidate id 997
           # now create same candidate
          corporate/dms/api/candidateProfile
          UserDid: ABC
          AccountDid: A7F0PT78MTMZ470WBBT
          o/p->
           "error": "Signer already exist."
          DMS| Preprod | Not able to create candidate through API for multiple company

          steps:
           # Create candidate through below API
           corporate/dms/api/candidateProfile
          Email id- [prateek.saxena@careerbuilder.com|mailto:prateek.saxena@careerbuilder.com] ( Existing candidate for CB internal Beta, user id- SAPR, Pwd- SAPR)
           UserDid: featuretestuser1
           AccountDid: CBATSFEATURETEST2
           o/p -->Candidate id 997 ( create new candidate)
           # now create same candidate
           corporate/dms/api/candidateProfile
           UserDid: ABC
           AccountDid: A7F0PT78MTMZ470WBBT
           o/p->
           "error": "Signer already exist."
           # When we login with candidate, we are not able to see company name in drop down
          PrateekS Prateek made changes -
          Attachment Candiidate login.JPG [ 131221 ]
          PrateekS Prateek made changes -
          Summary DMS| Preprod | API | Not able to create candidate through API for multiple company DMS| Preprod | API | Not able to see multiple company when candidate logged in
          narendra.kumar Narendra Kumar made changes -
          Assignee Harshveer Singh [ harshveer.singh ] Narendra Kumar [ narendra.kumar ]
          narendra.kumar Narendra Kumar made changes -
          Sprint Winter-2020 Sprint 7 [ 193 ]
          narendra.kumar Narendra Kumar made changes -
          Assignee Narendra Kumar [ narendra.kumar ] Harshveer Singh [ harshveer.singh ]
          narendra.kumar Narendra Kumar made changes -
          Assignee Harshveer Singh [ harshveer.singh ] Narendra Kumar [ narendra.kumar ]
          narendra.kumar Narendra Kumar made changes -
          Remaining Estimate 8h [ 28800 ]
          Original Estimate 8h [ 28800 ]
          narendra.kumar Narendra Kumar made changes -
          Assignee Narendra Kumar [ narendra.kumar ] Nalin.Bhayana [ nalinb ]
          NalinB Nalin.Bhayana (Inactive) made changes -
          Status To Do [ 10000 ] In Progress [ 3 ]
          NalinB Nalin.Bhayana (Inactive) logged work - 27/Jan/20 04:12 AM
          • Time Spent:
            4h
             
            <No comment>
          NalinB Nalin.Bhayana (Inactive) made changes -
          Remaining Estimate 8h [ 28800 ] 4h [ 14400 ]
          Time Spent 4h [ 14400 ]
          Worklog Id 223693 [ 223693 ]
          narendra.kumar Narendra Kumar made changes -
          Sprint Winter-2020 Sprint 7 [ 193 ] Winter-2020 Sprint 7, Winter-2020 Sprint 8 [ 193, 197 ]
          Hide
          NalinB Nalin.Bhayana (Inactive) added a comment -

          AccountDid is not a parameter for this API and is discarded when sent as input. API simply adds the candidate to the company user is logged into, so if same candidate (with different AccountDid) is passed again as parameter it will show error saying already exist.

          Company was not getting mapped when only email of Candidate was passed. Issue fixed. PR: https://github.com/cbdr/DMS/pull/979

          Show
          NalinB Nalin.Bhayana (Inactive) added a comment - AccountDid is not a parameter for this API and is discarded when sent as input. API simply adds the candidate to the company user is logged into, so if same candidate (with different AccountDid) is passed again as parameter it will show error saying already exist. Company was not getting mapped when only email of Candidate was passed. Issue fixed. PR:  https://github.com/cbdr/DMS/pull/979
          NalinB Nalin.Bhayana (Inactive) logged work - 28/Jan/20 03:14 AM
          • Time Spent:
            3h
             
            <No comment>
          NalinB Nalin.Bhayana (Inactive) made changes -
          Remaining Estimate 4h [ 14400 ] 1h [ 3600 ]
          Time Spent 4h [ 14400 ] 7h [ 25200 ]
          Worklog Id 223905 [ 223905 ]
          NalinB Nalin.Bhayana (Inactive) made changes -
          Status In Progress [ 3 ] Code Review [ 11801 ]
          narendra.kumar Narendra Kumar made changes -
          Sprint Winter-2020 Sprint 7, Winter-2020 Sprint 8 [ 193, 197 ] Winter-2020 Sprint 7, Winter-2020 Sprint 8, Winter-2020 Sprint 9 [ 193, 197, 198 ]
          Ashish.Durani Ashish Durani made changes -
          Status Code Review [ 11801 ] In QA Testing [ 11901 ]
          Ashish.Durani Ashish Durani made changes -
          Assignee Nalin.Bhayana [ nalinb ] Prateek [ prateeks ]
          PrateekS Prateek logged work - 10/Feb/20 02:16 AM
          • Time Spent:
            0.5h
             
            <No comment>
          Hide
          PrateekS Prateek added a comment -

          We had logged with SAPR/SAPR on Stage Env, found still list of company is not displaying in the drop down

          Show
          PrateekS Prateek added a comment - We had logged with SAPR/SAPR on Stage Env, found still list of company is not displaying in the drop down
          PrateekS Prateek made changes -
          Status In QA Testing [ 11901 ] QA Reopen [ 11306 ]
          PrateekS Prateek made changes -
          Remaining Estimate 1h [ 3600 ] 0.5h [ 1800 ]
          Time Spent 7h [ 25200 ] 7.5h [ 27000 ]
          Worklog Id 226386 [ 226386 ]
          PrateekS Prateek made changes -
          Assignee Prateek [ prateeks ] Nalin.Bhayana [ nalinb ]
          NalinB Nalin.Bhayana (Inactive) logged work - 18/Feb/20 02:57 AM
          • Time Spent:
            2h
             
            <No comment>
          Hide
          NalinB Nalin.Bhayana (Inactive) added a comment -

          Did some code changes in SavePDFData API that was being called from the UI.

          https://github.com/cbdr/DMS/pull/1012

          Show
          NalinB Nalin.Bhayana (Inactive) added a comment - Did some code changes in SavePDFData API that was being called from the UI. https://github.com/cbdr/DMS/pull/1012
          NalinB Nalin.Bhayana (Inactive) made changes -
          Remaining Estimate 0.5h [ 1800 ] 0h [ 0 ]
          Time Spent 7.5h [ 27000 ] 9.5h [ 34200 ]
          Worklog Id 227877 [ 227877 ]
          NalinB Nalin.Bhayana (Inactive) made changes -
          Status QA Reopen [ 11306 ] Code Review [ 11801 ]
          NalinB Nalin.Bhayana (Inactive) made changes -
          Assignee Nalin.Bhayana [ nalinb ] Harshveer Singh [ harshveer.singh ]
          narendra.kumar Narendra Kumar made changes -
          Sprint Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2 [ 193, 197, 198 ] Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2, Spring-2020 - Sprint 3 [ 193, 197, 198, 199 ]
          Ashish.Durani Ashish Durani made changes -
          Status Code Review [ 11801 ] In QA Testing [ 11901 ]
          Ashish.Durani Ashish Durani made changes -
          Assignee Harshveer Singh [ harshveer.singh ] Prateek [ prateeks ]
          narendra.kumar Narendra Kumar made changes -
          Sprint Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2, Spring-2020 - Sprint 3 [ 193, 197, 198, 199 ] Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2, Spring-2020 - Sprint 3, Spring-2020 - Sprint 4 [ 193, 197, 198, 199, 200 ]
          narendra.kumar Narendra Kumar made changes -
          Sprint Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2, Spring-2020 - Sprint 3, Spring-2020 - Sprint 4 [ 193, 197, 198, 199, 200 ] Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2, Spring-2020 - Sprint 3, Spring-2020 - Sprint 4, Spring-2020 - Sprint 5 [ 193, 197, 198, 199, 200, 202 ]
          narendra.kumar Narendra Kumar made changes -
          Sprint Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2, Spring-2020 - Sprint 3, Spring-2020 - Sprint 4, Spring-2020 - Sprint 5 [ 193, 197, 198, 199, 200, 202 ] Winter-2020 Sprint 7, Winter-2020 Sprint 8, Spring-2020 - Sprint 2, Spring-2020 - Sprint 3, Spring-2020 - Sprint 4, Spring-2020 - Sprint 5, Spring-2020 - Sprint 6 [ 193, 197, 198, 199, 200, 202, 203 ]
          narendra.kumar Narendra Kumar made changes -
          Hide
          narendra.kumar Narendra Kumar added a comment -

          Hi Samir

          Now able to see multiple companies when login. 

          Refer to this screenshot.

          Closing this ticket.

          Show
          narendra.kumar Narendra Kumar added a comment - Hi Samir Now able to see multiple companies when login.  Refer to this screenshot. Closing this ticket.
          narendra.kumar Narendra Kumar made changes -
          Assignee Prateek [ prateeks ] Nalin.Bhayana [ nalinb ]
          narendra.kumar Narendra Kumar made changes -
          Resolution Done [ 10000 ]
          Status In QA Testing [ 11901 ] Done [ 10001 ]
          Transition Time In Source Status Execution Times
          Nalin.Bhayana (Inactive) made transition -
          To Do In Progress
          17d 2h 14m 1
          Nalin.Bhayana (Inactive) made transition -
          In Progress Code Review
          1d 5h 36m 1
          Prateek made transition -
          In QA Testing QA Reopen
          5d 20h 8m 1
          Nalin.Bhayana (Inactive) made transition -
          QA Reopen Code Review
          8d 1h 5m 1
          Ashish Durani made transition -
          Code Review In QA Testing
          9d 21m 2
          Narendra Kumar made transition -
          In QA Testing Done
          40d 2h 26m 1

            People

            Assignee:
            NalinB Nalin.Bhayana (Inactive)
            Reporter:
            PrateekS Prateek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 8h Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 9.5h
                9.5h