Skip to content

Client view Job Candidate Notification #475

Closed
@maxceem

Description

@maxceem

Background

We would like to send a email notification to the Job Candidate when client has viewed they profile.

To indicate that client has viewed Job Candidate profile we would use the event when client has downloaded Job Candidate resume in TaaS App.

image

The resume URL comes from the DB and it just a third party URL. We don't know when someone clicks that URL and downloads the resume. So we would need so kind of a proxy endpoint which would trigger notification and redirect to resume dwonloading.

Task

  • Implement endpoint "GET /jobCandidates/:id/resume" which we could use to trigger notification and which would redirect/trigger resume downloading from URL which we have in DB JobCandiate.resume.

  • Send email notification if endpoint "GET /jobCandidates/:id/resume" is called by the customer user:

  • Update email template so it can render this type of notification with the text:

    Hi {jobCandidateUserHanle}.
    
    Your resume for the job "{Job Name}" has been viewed by the client.
    
    • type of notification: taas.notification.job-candidate-resume-viewed
  • We already have a special script to demo Email notifications https://github.com/topcoder-platform/taas-apis/tree/dev/scripts/demo-email-notifications. Run it and it would listen to the Kafka topic notifications.action.create and render emails with data from the Kafka message into out folder.

  • Important: this notification should come only once for the Job Candidate. I guess the only way to make it only one time is add a new column to the JobCandidate model where we would track if this JobCandidate has been already viewed by the customer or no, like viewedByCustomer = true/false.

  • Update Postman/Swagger

  • Create migration script

  • Update ES mapping in both repositories. Update ES processor.

Branch to work

feature/notifications-api

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions