Skip to content

refactor: rename preview terminology to free tier cloud - #52

Merged
fkdosilovic merged 2 commits into
masterfrom
refactor/rename-preview-to-free-tier-cloud
Aug 31, 2026
Merged

refactor: rename preview terminology to free tier cloud#52
fkdosilovic merged 2 commits into
masterfrom
refactor/rename-preview-to-free-tier-cloud

Conversation

@ijelacicbot

Copy link
Copy Markdown
Contributor

Summary

  • Replace leftover "preview" wording with free tier cloud / free tier cloud client across the SDK, tests, and docs.
  • Rename JUDGE0_SUPPRESS_PREVIEW_WARNING to JUDGE0_SUPPRESS_FREE_TIER_CLOUD_WARNING.
  • Rename PreviewClientLimitError to FreeTierCloudClientLimitError.
  • Rename _get_preview_client and the rate-limit decorator to the matching free-tier-cloud names.

Same commits as #46, opened from judge0/judge0-python so Test judge0-python can receive repository secrets.

Motivation

Closes #45

The unauthenticated Judge0 Cloud fallback is the free tier, not a preview client. The old wording is incorrect in user-facing warnings, docs, and the suppression env var.

Changes

  • src/judge0/__init__.py: env var, warning flag, fallback helper, and warning text
  • src/judge0/api.py: get_client docstring
  • src/judge0/errors.py: exception rename
  • src/judge0/utils.py: decorator and rate-limit error text
  • src/judge0/clients.py: decorator import and 9 usages
  • tests/conftest.py: fixture names
  • tests/test_free_tier_cloud.py: unit coverage for the new error type and removed preview names
  • docs/source/in_depth/client_resolution.rst, AGENTS.md, CHANGELOG.md

No compatibility alias is added. The package is 0.1.0.dev0, and the issue accepts a direct rename. PreviewClientLimitError was not exported from __all__.

Test Plan

  • Local uv run pytest tests on this branch: 96 passed
  • Test judge0-python on this same-repo PR (live JUDGE0_* secrets)

Notes for Reviewers

This is a breaking rename of the warning env var and the limit error class. No temporary alias for JUDGE0_SUPPRESS_PREVIEW_WARNING was added.

Fork PR: #46

ijelacicbot and others added 2 commits August 24, 2026 01:06
Replace preview-client wording with free tier cloud across the SDK,
docs, and tests. Rename JUDGE0_SUPPRESS_PREVIEW_WARNING to
JUDGE0_SUPPRESS_FREE_TIER_CLOUD_WARNING and PreviewClientLimitError
to FreeTierCloudClientLimitError.

Closes #45
Signed-off-by: Filip Karlo Došilović <filipk.dosilovic@gmail.com>
@ijelacicbot
ijelacicbot requested a review from a team August 31, 2026 18:54
@fkdosilovic fkdosilovic self-assigned this Aug 31, 2026

@fkdosilovic fkdosilovic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fkdosilovic
fkdosilovic merged commit 42ea651 into master Aug 31, 2026
1 of 2 checks passed
@fkdosilovic
fkdosilovic deleted the refactor/rename-preview-to-free-tier-cloud branch August 31, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename "preview" terminology to "free tier cloud" and rename the warning env var

2 participants