Skip to content

test: Pages API is exempt from routeAllowList - #10659

Merged
mtrezza merged 1 commit into
parse-community:alphafrom
mtrezza:tests/route-allow-list-pages-exemption
Sep 9, 2026
Merged

test: Pages API is exempt from routeAllowList#10659
mtrezza merged 1 commit into
parse-community:alphafrom
mtrezza:tests/route-allow-list-pages-exemption

Conversation

@mtrezza

@mtrezza mtrezza commented Sep 9, 2026

Copy link
Copy Markdown
Member

Issue

The Pages API is not covered by routeAllowList, but unlike the file routes and the GraphQL API, this exemption was neither documented nor covered by tests.

Tasks

  • Add tests
  • Add changes to documentation (guides, repository pages, code comments)

@parse-github-assistant

Copy link
Copy Markdown

🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review.

Tip

  • Keep pull requests small. Large PRs will be rejected. Break complex features into smaller, incremental PRs.
  • Use Test Driven Development. Write failing tests before implementing functionality. Ensure tests pass.
  • Group code into logical blocks. Add a short comment before each block to explain its purpose.
  • We offer conceptual guidance. Coding is up to you. PRs must be merge-ready for human review.
  • Our review focuses on concept, not quality. PRs with code issues will be rejected. Use an AI agent.
  • Human review time is precious. Avoid review ping-pong. Inspect and test your AI-generated code.

Note

Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect.

Caution

Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code.

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: 5e38e35d-a548-42e3-b60a-089f4417a7a9

📥 Commits

Reviewing files that changed from the base of the PR and between bdb21ee and 88ed42f.

📒 Files selected for processing (5)
  • README.md
  • spec/RouteAllowList.spec.js
  • src/Options/Definitions.js
  • src/Options/docs.js
  • src/Options/index.js

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The change documents and tests that Pages API routes are excluded from routeAllowList. Pages routes remain accessible while restricted REST routes remain forbidden.

Changes

Pages API route allowlist coverage

Layer / File(s) Summary
Pages exemption validation
spec/RouteAllowList.spec.js
Tests verify verification, password-reset, resend-email, and static Pages routes under restricted REST configurations. The tests also verify the email verification flow.
Allowlist documentation alignment
README.md, src/Options/...
Documentation states that Pages API routes, file routes, and GraphQL are excluded from routeAllowList coverage.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 88ed4

Pages routes remain available for email verification and password-reset flows when REST routes are restricted, with documentation now describing that behavior consistently. No merge-blocking risk is identified.

Suggested reviewers: dblythy


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

❌ Failed checks (1 error)

Check name Status Explanation Resolution
Description check ❌ Error No pull request description was provided. The required Issue, Approach, and Tasks sections are missing, along with the applicable task details. Add a pull request description that follows the repository template. Include the issue or related context, describe the test changes, and mark the applicable tasks as complete.
✅ Passed checks (6 passed)
Check name Status Explanation
Title check ✅ Passed The title begins with the required test: prefix, uses capitalization correctly, and accurately describes the Pages API route allowlist exemption tests.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 4…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Security Check ✅ Passed The pull request changes only README/documentation and spec/RouteAllowList.spec.js; it does not change runtime routing, authentication, Pages, or route-allow-list code. The base-to-HEAD diff confirm…
Engage In Review Feedback ✅ Passed PASS. The pull request has no review feedback that requires engagement. GitHub reports 0 submitted reviews and 0 inline review comments. The five issue comments are automated setup/status messages, Co…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Some tools did not complete. Review the errors below.

🔧 Biome (2.5.10)
src/Options/index.js

File contains syntax errors that prevent linting: Line 18: Expected a type but instead found '?'.; Line 18: Expected a property, or a signature but instead found ';'.; Line 21: Expected a statement but instead found '?'.; Line 24: Expected a statement but instead found '?'.; Line 27: Expected a statement but instead found '?'.; Line 30: Expected a statement but instead found '?'.; Line 32: Expected a statement but instead found '?'.; Line 34: Expected a statement but instead found '?'.; Line 35: Expected a statement but instead found '}'.; Line 37: type alias are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 38: type alias are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 39: type alias are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 40: type alias are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Li

... [truncated 16757 characters] ...

found '?'.; Line 912: Expected a statement but instead found '?'.; Line 914: Expected a statement but instead found '?'.; Line 915: Expected a statement but instead found '}'.; Line 929: Expected a type but instead found '?'.; Line 929: Expected a property, or a signature but instead found ';'.; Line 930: Expected a statement but instead found '}'.; Line 936: Expected a type but instead found '?'.; Line 936: Expected a property, or a signature but instead found ';'.; Line 940: Expected a statement but instead found '?'.; Line 944: Expected a statement but instead found '?'.; Line 948: Expected a statement but instead found '?'.; Line 952: Expected a statement but instead found '?'.; Line 956: Expected a statement but instead found '?'.; Line 957: Expected a statement but instead found '}'.


Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.80%. Comparing base (ad00f82) to head (88ed42f).
⚠️ Report is 1 commits behind head on alpha.

Additional details and impacted files
@@           Coverage Diff           @@
##            alpha   #10659   +/-   ##
=======================================
  Coverage   93.80%   93.80%           
=======================================
  Files         192      192           
  Lines       16863    16863           
  Branches      252      252           
=======================================
  Hits        15818    15818           
  Misses       1023     1023           
  Partials       22       22           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mtrezza

mtrezza commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@mtrezza

mtrezza commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai approve

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
✅ Action performed

Comments resolved and changes approved.

@mtrezza
mtrezza merged commit 383d3e5 into parse-community:alpha Sep 9, 2026
42 of 43 checks passed
@mtrezza
mtrezza deleted the tests/route-allow-list-pages-exemption branch September 9, 2026 16:29
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.

1 participant