Skip to content
New issue

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

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

Already on GitHub? # to your account

Develop Backend API for Contacts Page #142

Closed
4 tasks done
mahid797 opened this issue Dec 25, 2024 · 0 comments · Fixed by #144
Closed
4 tasks done

Develop Backend API for Contacts Page #142

mahid797 opened this issue Dec 25, 2024 · 0 comments · Fixed by #144
Assignees
Labels
Backend Backend Related Issue Core Work to do on the core system of the App New Feature New feature to be implemented
Milestone

Comments

@mahid797
Copy link
Collaborator

mahid797 commented Dec 25, 2024

Develop a backend API to support the Contacts Page functionality by retrieving visitor details. This includes visitor activity, document access logs, and sorting options.

Tasks

  • Rename the LinkRecipients table to LinkVisitors.
  • Implement an API endpoint to fetch contact details:
    • Retrieve visitor data (first_name, last_name, email) from the LinkVisitors table.
    • Include:
      • Last Viewed Link: Fetch friendlyName from the Link table. Fallback to LinkID if unavailable.
      • Last Activity: Use the updatedAt field from LinkVisitors.
      • Total Visits: Calculate the total number of accesses by each visitor.
    • Group data by email to avoid duplicates.
  • Validate backend logic:
    • Ensure the API correctly associates Last Viewed Link with the most recent link accessed.
  • Handle edge cases:
    • Return N/A for missing Name or Email.
    • Provide error responses for failed queries.

Notes

@mahid797 mahid797 added New Feature New feature to be implemented Backend Backend Related Issue Core Work to do on the core system of the App labels Dec 25, 2024
@mahid797 mahid797 added this to the 1.0 milestone Dec 25, 2024
@parwatcodes parwatcodes linked a pull request Dec 26, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Backend Backend Related Issue Core Work to do on the core system of the App New Feature New feature to be implemented
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants