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

feat: user recent openings backend #451

Merged
merged 4 commits into from
Nov 8, 2024
Merged

Conversation

jazzgrewal
Copy link
Collaborator

@jazzgrewal jazzgrewal commented Nov 7, 2024

Description

Feature: Recent Openings History for the nr-silva Application

This pull request implements the backend logic to track and retrieve recently viewed openings by users in the nr-silva application.

Changes Made:
User Interaction Tracking:

Whenever a user views an opening, the interaction is logged in the user_recent_openings table within the PostgreSQL database.
This table stores data such as the opening ID and the lastViewTime to track the user's recent activities.
Recent Openings Retrieval:

A backend service has been added to retrieve the list of recently viewed openings for a specific user, sorted by lastViewTime.
This functionality is intended to be used by the frontend to display a "Recent Openings" table, though it is not part of this PR.

Fixes #
SILVA-524: https://apps.nrs.gov.bc.ca/int/jira/browse/SILVA-524

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit Test
  • Local Test

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Further comments


Thanks for the PR!

Any successful deployments (not always required) will be available below.

Backend: https://nr-silva-451-backend.apps.silver.devops.gov.bc.ca/actuator/health
Frontend: https://nr-silva-1-frontend.apps.silver.devops.gov.bc.ca

Once merged, code will be promoted and handed off to following workflow run.
Main Merge Workflow

@paulushcgcj paulushcgcj changed the title Feat/user recent openings backend feat: user recent openings backend Nov 7, 2024
@paulushcgcj paulushcgcj merged commit 78336c9 into main Nov 8, 2024
18 checks passed
@paulushcgcj paulushcgcj deleted the feat/userRecentOpeningsBack branch November 8, 2024 17:10
DerekRoberts added a commit that referenced this pull request Nov 19, 2024
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.

2 participants