Skip to content

Reason for deactivating and reactivating a user not showing #7082

@prinzab

Description

@prinzab

Bug description:
Reason for deactivating and reactivating a user not showing in user audit

Steps to reproduce:

  1. Login as an admin (j.campbell)
  2. Go to teams
  3. Click on the 3 dot menu for any user
  4. Click on deactivate
  5. Select a reason for deactivating the user
  6. Click on deactivate to deactivate the user
  7. Observe the status change
  8. Click on the 3 dot menu again
  9. Click on reactivate
  10. Select a reason
  11. Click on the Reactivate button
  12. Observe the status change
  13. Click on the name of the admin that performed the actions (j.campbell) to open the audit page
  14. Validate system actions for both Deactivated user and Reactivated user by clicking on their respective links
  15. Observe

Actual result:

  1. The deactivated user and the reason for deactivating the user does not show on the modal
  2. The reactivated user and the reason for reactivating the user does not show on the modal

Expected result:

  1. The deactivated user and the reason for deactivating the user should show on the modal
  2. The reactivated user and the reason for reactivating the user should show on the modal

Environment:
https://login.farajaland-qa.opencrvs.org/

Version:
v1.5.0

Deactivated user
Screenshot 2024-05-31 at 13 22 01

Reactivated user
Screenshot 2024-05-31 at 13 21 36

Tech tasks

  • Ensure "reason" is written to deactivation and reactivation events properly here.
  • When reading user audit log events, in GraphQL schema, ensure one of the result types is one for these event types. Needs to include the reason field. Relevant code here.
  • Make sure the reason field is properly rendered in the UI modal

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Blocked

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions