Skip to content

Reviews ee - #8954

Open
jvega190 wants to merge 9 commits into
craftersoftware:developfrom
jvega190:reviews-ee
Open

Reviews ee#8954
jvega190 wants to merge 9 commits into
craftersoftware:developfrom
jvega190:reviews-ee

Conversation

@jvega190

@jvega190 jvega190 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

https://github.com/craftersoftware/craftercms-e/pull/1309

Summary by CodeRabbit

  • Documentation
    • Updated the getTree API documentation to reflect supported calling options.
    • Clarified that configuration may be passed as the second argument.
    • Documented the default depth of 1 when depth is omitted.
    • Added examples covering path-only, depth-only, depth-plus-configuration, and configuration-as-second-argument usage.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Essentials

Run ID: d50018be-f575-43de-b339-72152eb9d6db

📥 Commits

Reviewing files that changed from the base of the PR and between 2093304 and 8b59815.

📒 Files selected for processing (1)
  • js-sdk/packages/content/README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • js-sdk/packages/content/README.md

Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


Walkthrough

The content README now documents getTree overloads for depth and configuration arguments. It updates parameter descriptions and examples, including configuration as the second argument with a default depth of 1.

Changes

getTree documentation

Layer / File(s) Summary
Document getTree overloads and examples
js-sdk/packages/content/README.md
The README lists supported getTree overloads and adds examples for default depth, depth-only usage, depth with configuration, and configuration as the second argument.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to 8b598

This change documents existing getTree overloads and examples. No current merge-readiness risk is identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title "Reviews ee" does not describe the documented getTree overload and README changes. It is unrelated to the main change. Replace the title with a concise summary, such as "Document getTree configuration overloads".
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description provides a link to the related Enterprise pull request, which satisfies the template's requirement for a reference. It does not include additional change details, but the reference is …
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 0…
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@jvega190

Copy link
Copy Markdown
Contributor Author

@coderabbitai how does this work look to be merged? Any issues you can point out?

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '--- PR diff summary ---'
git diff --stat HEAD^ HEAD
echo
echo '--- PR diff ---'
git diff --find-renames --find-copies HEAD^ HEAD

echo
echo '--- Candidate getTree source files ---'
fd -t f . | rg '(^|/)(.*[Gg]et[Tt]ree.*|.*[Tt]ree.*|.*[Cc]ontent.*)\.(ts|tsx|md)$' | head -100

echo
echo '--- getTree definitions and call sites ---'
rg -n -P -C 4 '\bgetTree\s*(?:\(|:|=)' --glob '*.{ts,tsx,md}' .

echo
echo '--- Test files that mention getTree ---'
rg -n -P -C 3 '\bgetTree\s*\(' --glob '*.{test,spec}.{ts,tsx}' .

Length of output: 20725


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '--- Branch and merge base ---'
git branch --show-current
base="$(git merge-base HEAD develop)"
printf 'merge base: %s\n' "$base"

echo
echo '--- Complete PR diff from develop ---'
git diff --stat "$base" HEAD
git diff --find-renames "$base" HEAD

echo
echo '--- ContentStoreService API implementation ---'
ast-grep outline js-sdk/packages/content/src/ContentStoreService.ts --items all --type function --match getTree --view expanded
sed -n '1,130p' js-sdk/packages/content/src/ContentStoreService.ts

echo
echo '--- Public content package exports ---'
sed -n '1,180p' js-sdk/packages/content/index.ts
sed -n '1,180p' js-sdk/packages/content/content.ts

echo
echo '--- Existing content getTree test context ---'
sed -n '90,165p' js-sdk/packages/content/test/index.spec.ts

echo
echo '--- GitHub PR state, review status, and checks ---'
gh pr view 8954 --repo craftersoftware/craftercms \
  --json isDraft,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup,changedFiles,commits \
  --jq '{isDraft, mergeable, mergeStateStatus, reviewDecision, changedFiles, commits: [.commits[].messageHeadline], checks: [.statusCheckRollup[] | {name, conclusion, status}]}'

Length of output: 14055


@jvega190 I found no blocking issue in this PR.

The README.md overloads match ContentStoreService.getTree exactly. The examples also match the runtime behavior. When the second argument is a Partial<CrafterConfig>, the implementation sets depth to 1.

The PR is not ready to merge yet because GitHub reports these conditions:

  • The PR is still a draft.
  • Travis CI is still in progress.
  • A required review is pending.
  • GitHub reports the merge state as BLOCKED.

One non-blocking follow-up is available. The content SDK test suite covers getTree(path, depth), but it does not cover getTree(path, config). This is existing coverage debt, not a defect in this documentation-only change.

After CI passes, the PR is marked ready, and the required review is complete, I see no merge blocker.

You are interacting with an AI system.

@jvega190
jvega190 requested a review from rart August 27, 2026 15:10
@jvega190
jvega190 marked this pull request as ready for review August 27, 2026 15:10
@jvega190
jvega190 requested a review from sumerjabri as a code owner August 27, 2026 15:10
Comment thread js-sdk/packages/content/README.md Outdated
@jvega190
jvega190 requested a review from rart September 7, 2026 16:45
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.

2 participants