hackclub / hackclub/hcb

[User] Deter fake ages

Open
#11,912 0 comments 4 reactions 0 assignees View on GitHub
Beginner Friendly
Dominant language
Ruby
Stars
871
Forks
140
Avg merge
1d 20h
Merged PRs (30d)
201

Description

Image

I'm not saying you can't be 103 years old and using HCB, but i'm fairly certain there are some unreasonable ages in there (espeically given the peak at 100). In fact, there are 6 people who aren't born yet! oh!

We need this: https://www.tiktok.com/@thematchapost/video/7407859609320410410
and strong birthday/age validations in the User model.

Contributor guide

Open the contributing guide

Research direction

Start by locating the User model and reading its existing birthday and age handling. Check the relevant User model tests, then define validation behavior for unreasonable and future birthdays based on the issue's examples. The work is done when invalid ages are rejected and the corresponding tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.