Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INE-951 | Delete Applicant (Scramble PII) #701

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

INE-951 | Delete Applicant (Scramble PII) #701

wants to merge 11 commits into from

Conversation

jerry-ey
Copy link
Collaborator

@jerry-ey jerry-ey commented Jan 16, 2025

  • Added new columns to the ien_applicants table:

    • deleted_by_id (UUID, nullable)
    • deleted_date (timestamp, nullable)
    • backup (JSONB, nullable, default: null)
  • Implemented data deletion in the backend, including functionality to scramble personally identifiable information (PII).

  • Introduced a deletion date and corresponding button to the frontend interface.

  • Added subscribers to prevent ATS update the scramble info if applicant was deleted

Screenshots

  • Before Deletion
    CleanShot 2025-01-17 at 10 39 02@2x

  • Deleting
    CleanShot 2025-01-17 at 10 39 39@2x

  • After Deletion
    CleanShot 2025-01-17 at 10 40 16@2x

…numbers from a cryptographically secure source

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…numbers from a cryptographically secure source

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copy link
Collaborator

@dbayly-freshworks dbayly-freshworks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, otherwise this looks good.

})
@UseInterceptors(ClassSerializerInterceptor)
@Delete('/:id')
@AllowAccess(Access.APPLICANT_WRITE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should restrict this to Admins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants