Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Preserve an explicit zero tenant file size limit on update

Closed Beginner friendly
#1,592 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@hsusul is already working on this.

Since Oct 22, 2026.

  • #1595 by @hsusul — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
postgresql, typescript
Domain
api, backend, databases

Research direction

Find the admin PUT /tenants/:tenantId route and inspect how it adds fileSizeLimit to the tenant update. Preserve an explicitly supplied zero while omitting the field only when it is absent. Confirm the stored limit becomes zero after updating a tenant that had a positive limit.

Written by the indexing model from the issue text.

Description

Bug

The admin PUT /tenants/:tenantId route silently ignores fileSizeLimit: 0. Its schema accepts any finite number, the tenant column is a non-null bigint, and the file-size limit calculation treats zero as a real upper bound. But the route only copies the value into the update when if (fileSizeLimit) is truthy.

Reproduction

Create a tenant with a positive file-size limit, then update it with fileSizeLimit: 0. The request succeeds, but the stored limit remains unchanged.

Expected

Persist an explicitly supplied zero limit. Omit the database field only when fileSizeLimit is absent.

Dominant language
TypeScript
Stars
1.3k
Forks
314
Avg merge
1d 12h
Merged PRs (30d)
88

Getting set up

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.

More from supabase/storage

All issues in supabase/storage

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.