Skip to content

Shravya feature/phase4/Assisted functionality#1874

Open
ShravyaKudlu wants to merge 18 commits into
developmentfrom
Shravya/feature/Phase4/Tagged_Logs_for_Young_Learner_Support
Open

Shravya feature/phase4/Assisted functionality#1874
ShravyaKudlu wants to merge 18 commits into
developmentfrom
Shravya/feature/Phase4/Tagged_Logs_for_Young_Learner_Support

Conversation

@ShravyaKudlu

@ShravyaKudlu ShravyaKudlu commented Nov 1, 2025

Copy link
Copy Markdown
Contributor

Phase 4: Tagged Logs for Young Learner Support - Backend

Description

This backend feature enables Learning Support Team members (for young learners) to create or edit logs on behalf of a student.
Logs will be tagged to provide clear visibility to educators.
605 Phase 4 - Tagged Logs for Young Learner Support - Backend
image

Features

  • Database Updates
    • Modify the ActivityLog table to include:
      • assisted_users – This is an array of all assisted_users where every essisted_user is an object that contains assisted_user_id, assisted_user_firstname and lastname, asstisted_at which is a current date and assistent_type which is an enum of created, edited
      • is_assisted – a Boolean flag.
  • Assistance Tracking
    • When a user with the Young Learner Support role creates or edits a log entry:
      • assisted_by_user_id is populated with their ID.
      • is_assisted is set to true.
  • API Updates
    • Update GET /educator/daily-log/:studentId to include the assistance metadata (assisted flag or assistant's name).

Related PRS (if any):

This branch is checkout from branch #1815

Main changes explained:

  1. Log Creation/Editing
    • Create new endpoints:
      • POST /student/daily-log
      • PUT /student/daily-log/:logId
    • Add validation to ensure only authorized support members can set the is_assisted flag.
  2. Response Enhancement
    • Update the data returned by GET /educator/daily-log to include assistance metadata for better visibility.

How to test:

  1. check into current branch
  2. do npm install and npm run dev to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. verify the endpoints
  • POST /student/daily-log
  • PUT /student/daily-log/:logId
  • GET /educator/daily-log
  1. verify function POST, PUT , GET request
  2. Follow the video for more clarity

Screenshots or videos of changes:

test.mp4

Note:

Currently The role young leaner support is same as admin.

@ShravyaKudlu ShravyaKudlu marked this pull request as ready for review November 1, 2025 21:28
@ShravyaKudlu ShravyaKudlu changed the title Shravya/feature/phase4/Assisted functionality(POST/PUT), Auth Shravya-feature/phase4/Assisted functionality Apr 25, 2026
@ShravyaKudlu ShravyaKudlu changed the title Shravya-feature/phase4/Assisted functionality Shravya feature/phase4/Assisted functionality May 1, 2026
@ShravyaKudlu ShravyaKudlu added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label May 1, 2026
@ShravyaKudlu ShravyaKudlu force-pushed the Shravya/feature/Phase4/Tagged_Logs_for_Young_Learner_Support branch 3 times, most recently from 6190f7d to cc33679 Compare May 2, 2026 03:48
@sonarqubecloud

sonarqubecloud Bot commented May 2, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
13.6% Duplication on New Code (required ≤ 3%)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@ShravyaKudlu ShravyaKudlu force-pushed the Shravya/feature/Phase4/Tagged_Logs_for_Young_Learner_Support branch from 5c25b12 to 20fa769 Compare June 7, 2026 06:06
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant