Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4748 Admin audits UI is slow when x_trx_log table has large numer of rows
  3. RANGER-4769

Admin audit generation: avoid code duplication by moving the implementation to base classes

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Ranger
    • None

    Description

      When an object (like policy, security-zone, role) is updated, admin audit logs are generated with the details of the updated attributes. The logic to compute updated attributes is implemented in 13 classes, as listed below:

      1. RangerPolicyService.getTransactionLog()
      2. RangerRoleService.getTransactionLog()
      3. RangerSecurityZoneServiceService.getTransactionLog()
      4. RangerServiceService.getTransactionLog()
      5. RangerGdsBaseModelService.createTransactionLog()
      6. XAssetService.getTransactionLog()
      7. XAuditMapService.getTransactionLog()
      8. XGroupService.getTransactionLog()
      9. XGroupUserService.getTransactionLog()
      10. XPermMapService.getTransactionLog()
      11. XPortalUserService.getTransactionLog()
      12. XResourceService.getTransactionLog()
      13. XUserService.getTransactionLog()

      To avoid unnecessary code duplication, consider moving implementations in above classes to their base class - like RangerBaseModelService and AbstractBaseResourceService.

      Attachments

        1. RANGER-4769.patch
          271 kB
          Madhan Neethiraj

        Issue Links

          Activity

            People

              madhan Madhan Neethiraj
              madhan Madhan Neethiraj
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: