hackclub / hackclub/hcb

[Card Grant] Add max expiration date

Open
#13,896 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
870
Forks
138
Avg merge
1d 14h
Merged PRs (30d)
208

Description

Card grants must expire within a certain time frame. For example, I don't want to allow a card grant to expire 100 years from now.

Let's set this max value to 3 years from now.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Card Grant creation or update entry point and any existing expiration validation, then inspect how dates are represented. Enforce the three-year maximum and verify boundary cases with the relevant test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
payments
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.