RealDevSquad / RealDevSquad/website-backend

Create a check in addOrUpdate function to avoid unexpected types and fields in profileDiffs

Open
#2,305 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
74
Forks
276
Avg merge
1d 26m
Merged PRs (30d)
14

Description

Issue Description

In addOrUpdate function in users which updates profileDiffs, we need to check that the profileDiffs does not contain wrong types like null and undefined.

Expected Behavior

Throws an error if profileDiffs contains undefined or null type value

Current Behavior

Not Handled

Screenshots
Severity/Priority
  • Critical
  • High
  • Medium
  • Low

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the addOrUpdate entry point in users and read how profileDiffs is currently updated. Check the expected error behavior for null and undefined values, and consider the work done when those values are rejected as specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.