Skip to content

Fix/streak freeze unlimited stockpile - #1540

Closed
Midoriya-w wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Midoriya-w:fix/streak-freeze-unlimited-stockpile
Closed

Midoriya-w wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Midoriya-w:fix/streak-freeze-unlimited-stockpile

Conversation

@Midoriya-w

Copy link
Copy Markdown
Contributor

Closes #1476

Summary

Added a pending freeze count check before creating a new streak freeze.

Changes

  • Count existing pending freezes for the authenticated user
  • Enforce a maximum of 1 pending freeze
  • Return HTTP 409 when the limit is exceeded
  • Prevent users from stockpiling unused freezes

Result

Users can no longer accumulate unlimited pending freezes and are restricted to a single pending freeze at a time.

@vercel

vercel Bot commented May 29, 2026

Copy link
Copy Markdown

@Midoriya-w is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 type:bug GSSoC type bonus: bug fix labels May 29, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@Priyanshu-byte-coder

Copy link
Copy Markdown
Owner

Closing as duplicate: #1542 addresses the same streak freeze stockpile issue and additionally fixes the response status code (200 vs 201 for already-existing freezes). #1542 is the more complete fix.

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

Labels

type:bug GSSoC type bonus: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] No limit on future streak freeze creation users can stockpile unlimited freezes

2 participants