Skip to content

docs(cli): explain why checkly import can find nothing - #855

Merged
hlenke merged 3 commits into
mainfrom
hlenke/docs-import-finds-nothing
Nov 23, 2026
Merged

hlenke merged 3 commits into
mainfrom
hlenke/docs-import-finds-nothing

Conversation

@hlenke

@hlenke hlenke commented Nov 18, 2026

Copy link
Copy Markdown
Member

Requested by Hannes · project thread

Affected Components

  • Content & Marketing
  • Pricing
  • Test
  • Docs
  • Learn
  • Other

Notes for the Reviewer

What changed

Adds "When the import finds nothing" to the checkly import page, with the four reasons it can find no resources and what to do about each.

Why

The page didn't explain why checkly import plan can come back empty.

How each claim was verified

Tested end to end with the published CLI (checkly 10.2.0) against a local stack built from monorepo main (7ff172a1), using two separate CLI projects.

Claim Verified by
Prints No importable resources were found. Output of import plan in a project with nothing to import
A resource committed to one project isn't imported by another Imported and committed in project a, then not found in project b
A resource in an applied, uncommitted plan is skipped, can be imported by ID, and is released by import cancel --all Applied in a and not found in b; found in b with check:<id>; found in b after cancel --all in a
Playwright Check Suites are never imported, not even by ID A suite with no project was left out of the plan, and check:<id> found nothing
checkly whoami shows the account Output shows the account name, ID and plan

Not tested / left out

  • "You're signed in to another account" was not reproduced; only checkly whoami's output was checked.
  • import cancel --all was run in the project that created the plan, and cancelled only that project's plan. In the test, project b also had to cancel its own by-ID plan before a plain plan found the check.

🤖 Generated with Claude Code

@mintlify

mintlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
checkly-422f444a 🟢 Ready View Preview Nov 21, 2026, 2:42 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@hlenke hlenke left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Needs changes · One line to fix: import cancel --all only cancels the plans of the project you run it in, so say to run it in the project that created the plan. The rest of the section matches the CLI and the import API.

The new section sits in a sensible place on the page: after the subcommands it troubleshoots, before the general best practices.

Overlap. #774 (sentence case) also edits cli/checkly-import.mdx. It retitles ## Best Practices, the line right after this insertion, so the two PRs conflict: I merged both heads with git merge-tree and got a content conflict in this file. Whichever lands second needs a rebase. The fix is trivial: keep this section and take #774's ## Best practices.

CI is green and the PR merges cleanly into main.

Inline: 1 important, 1 wording.

What I checked
  • Read the full diff (cli/checkly-import.mdx, +9 lines) from merge base c6fb661 and the whole page at the PR head.
  • pr_impact.py: no findings. main has not changed the file since the merge base.
  • gh pr checks 855: all pass. gh pr view: MERGEABLE, CLEAN.
  • Overlap: gh pr list shows only #774 touching this file. git merge-tree --write-tree of #774 and #855 reports a conflict in cli/checkly-import.mdx.
  • Message No importable resources were found.: checkly-cli origin/main@8076b31, packages/cli/src/rest/projects.ts (NoImportableResourcesFoundError, thrown when the API returns 404 with that message), and packages/cli/src/commands/import/plan.ts, which prints it, then a hint that a resource may be reserved by a pending import and can be imported by ID.
  • Already in a project, in any repository: monorepo origin/main@78812e3, apps/backend/api/src/repositories/projects/importable.ts. The importable read keeps only rows with no mapping row in any project of the account.
  • Applied but uncommitted plans reserve resources, and importing by ID takes them over: same file (an explicitly included ID with a pending mapping is still importable), and apps/backend/api/src/common/services/import-plans/apply.ts, where applying writes the pending mappings. Creating a plan without applying it reserves nothing.
  • import cancel --all is scoped to the current project: checkly-cli packages/cli/src/commands/import/cancel.ts lists plans with findImportPlans(logicalId) from the loaded config, which calls /next/projects/<logicalId>/imports. The PR description reports the same in its own test.
  • Playwright Check Suites are never imported, even by ID: monorepo apps/backend/api/src/repositories/checks/import-plans.ts (excludes the Playwright check type) and apps/backend/api/src/common/services/import-plans/create.ts. This matches the existing note in cli/importing.mdx.
  • checkly whoami shows the account in use: checkly-cli packages/cli/src/commands/whoami.ts.
  • I did not run end-to-end tests: the local app was not started in this run, so the claims were checked against source. The PR description reports an end-to-end run with CLI 10.2.0 against a local stack.
  • Could not verify: nothing outstanding.

Comment thread cli/checkly-import.mdx Resolved
Comment thread cli/checkly-import.mdx Resolved

@hlenke hlenke left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ready to merge · Both suggestions from the last review are applied, and the section now says where to run import cancel --all. The only thing in the way is the failed docs-gate job, which isn't caused by this PR: re-run it.

This review covers the two commits since e0af7ee (both "Apply suggestion"). No merge from main in between.

CI. docs-gate failed after 30 minutes with "Timed out after 30m waiting for Mintlify checks." It waits for Mintlify's vale-spellcheck check, and Mintlify only posted that check about two hours later (04:37 UTC), as neutral, with a Vale configuration error. #853 and #854, pushed in the same few minutes, failed the same way. The gate counts neutral as passing, so a re-run should go green. Because Vale reported an error, it didn't actually spellcheck the page. I read the new text for spelling and found nothing.

Overlap. #774 (sentence case) still conflicts with this PR in cli/checkly-import.mdx: git merge-tree of both heads reports a content conflict. #774 retitles ## Best Practices, the line right after this section. Whichever lands second needs a rebase. Keep this section and take #774's heading.

No inline comments.

What I checked
  • Diff e0af7ee..3d639a5 (2 changed lines) and the full PR diff from merge base c6fb661. main hasn't changed cli/checkly-import.mdx since then.
  • pr_impact.py: no findings.
  • gh pr checks 855: only docs-gate fails. I read its log (gh run view 44857326745 --log-failed) and the vale-spellcheck check run through the API (posted at 04:37 UTC, neutral, "There was an error running Vale").
  • gh pr view: MERGEABLE. The merge state is BLOCKED by the failed check.
  • Overlap: gh pr list shows only #774 touching this file. I ran git merge-tree --write-tree on #855 and #774: conflict in cli/checkly-import.mdx.
  • Claims, re-checked against current source: checkly-cli origin/main@c58d58c1 has no changes to packages/cli/src/commands/import/, rest/projects.ts or whoami.ts since the last review (8076b31). import cancel still lists plans with findImportPlans(logicalId), so it only sees the plans of the project it runs in. Since the last review (78812e3), monorepo origin/main@6f20624069 changed one import file, importable.ts, and only as a refactor: a renamed batch-size constant and a shared helper for the ID list. Which resources count as importable is unchanged.
  • End-to-end: not run. The changed lines restate claims verified against source in the last review, and the review scripts can't drive checkly import against local Checkly. The PR description reports the author's own end-to-end run with CLI 10.2.0.
  • Could not verify: nothing outstanding.

@hlenke
hlenke merged commit 3cc9b9a into main Nov 23, 2026
7 of 8 checks passed
@hlenke
hlenke deleted the hlenke/docs-import-finds-nothing branch November 23, 2026 19:05

This branch was successfully deployed

1 active deployment
staging — 3d639a59 Deployed Nov 21, 2026 by mintlify[bot]
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