Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-15777

Update the Employee Import to process the Employee

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Sprint:
      2021.R6 CloudLink Sprint 2
    • SCRUM Team:
      Globogym Purple Cobras
    • Story Points:
      3
    • Work Type Classification:
      Sustaining

      Description

      As a system processing the employee import I want the PersonId to populate the new OperatorId column in tbUser

      Notes

      • PersonId is used today, when the user being created is an Operator, to create the Master Level and assign the Operator to that level.
        • The XSLT's for both Operator ALL and Operator INCR already have this in them:
        •         <xsl:attribute name="PersonID">
                    <xsl:value-of select="identity:Identification/identity:PersonID"/>
                  </xsl:attribute>
          
      • Going forward this section will be added to all Employee Import XSLTs
        • When the Audience is Operator, a Master Level will be created and maintained
        • For all file types, including Operator files, the PersonID will be used to provide a unique number to the user in tbUser

      Acceptance Criteria

      1. Confirm that the OperatorId requires a unique value
        • if two records are sent with the same PersonId, the second should be rejected/skipped and the file should continue processing
        • confirm that this duplicate exception is logged
      2. Confirm that the format of the field is an Integer
        • Confirm that if a non integer value is sent, the record is rejected/skipped and the file continues processing10/5/21
        • confirm that this non integer exception is logged
        • 10/5/21 Note: the file fails if an alpha numeric value is received, this value will always be numeric coming from CFA
      3. Confirm that the XSLT is updated the reflect the new field
      4. There are a few different types of file are processed, and all should be tested:
        • Weekly - ALL files
          • Contractor_all
          • LimitedFE_all
          • InterimManager_all
          • Operator_all
          • Staff_all
          • TeamMember_all
        • Daily - Incremental Files
          • Contractor_incr
          • LimitedFE_incr
          • InterimManager_incr
          • Operator_incr
          • Staff_incr
          • TeamMember_incr
      5. Validations:
        • If PersonId is Null in db, insert value from file
          • Confirm that the value is unique, if it is a duplicate, do not insert, and log a validation error
        • If PersonId is populated in db, and the same in the file, do nothing
        • If PersonId is populated in the db, but in the file, it is different, log a validation error

      Notes: 8/24

      • Multi site users. It is possible for the same user to work at two different stores, with the same guid and person id
      • However, only one user record is created in tbUser, and multiple records are created in tbEnityUser
        select * from tbuser with(nolock)
        where UserName = 'aaron.harges1'
        
        select * from tbEntityUser with(nolock)
        where UserID = 785851
        

      Contact Will Englefieldfor the latest set of files, to process from Prod, to build out the data set. We must scrub the records after loading them.

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                Gareth.Leibbrandt Gareth Leibbrandt (Inactive)
                Reporter:
                will.englefield Will Englefield (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 17.5h
                  17.5h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 15h 50m Time Not Required
                  15h 50m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.