Skip to content

chore(logs): deprecate the --end-user-only flag - #644

Merged
BrandonRomano merged 2 commits into
mainfrom
brandonromano/core-4466-deprecate-the-clis-end-user-only
Nov 23, 2026
Merged

BrandonRomano merged 2 commits into
mainfrom
brandonromano/core-4466-deprecate-the-clis-end-user-only

Conversation

@BrandonRomano

@BrandonRomano BrandonRomano commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The Backend API now ignores end_user_facing_only, so clerk logs --end-user-only returns every event while looking like a filtered result. This keeps the flag working but marks it deprecated in the help and README, and prints a warning when someone passes it.

Relates to CORE-4466

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The logs list and get commands now describe --end-user-only as deprecated. When the option is set, filter resolution logs a warning and still adds end_user_facing_only=true. Tests cover the warning and parameter behavior. The logs documentation and changeset describe the deprecation.

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

Possibly related PRs

  • clerk/cli#615: Introduces the event filter flags and the resolveFilters mapping that this change updates.
Merge Risk: Minimal · up to ae205

This change marks the logs --end-user-only flag as deprecated and prints a warning when it is used, while the flag still works as before. No meaningful merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description check Passed The description states the reason for the change: the Backend API ignores end_user_facing_only, so the flag returns all events. It also says the flag stays functional, is marked deprecated in the he…
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.
Title check Passed The title "chore(logs): deprecate the --end-user-only flag" matches the main change. The changeset, README, filters.ts, filters.test.ts, and index.ts all mark --end-user-only as deprecated, and the fl…
Full details: Description check

Explanation

The description states the reason for the change: the Backend API ignores end_user_facing_only, so the flag returns all events. It also says the flag stays functional, is marked deprecated in the help and README, and prints a warning. These points match the changed files. The description also links the ticket CORE-4466.

Full details: Title check

Explanation

The title "chore(logs): deprecate the --end-user-only flag" matches the main change. The changeset, README, filters.ts, filters.test.ts, and index.ts all mark --end-user-only as deprecated, and the flag now prints a warning. The prefix "chore" is a minor mismatch for a user-facing deprecation, but the title still describes the primary change accurately.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 6 repositories. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: 7c20d13c-ea3e-4ea9-839a-49c4353bda98
Commits

Reviewing files that changed from the base of the PR and between 9880c58 and ae205a7.

Files selected for processing: 5

  • .changeset/logs-end-user-only-deprecated.md
  • packages/cli-core/src/commands/logs/README.md
  • packages/cli-core/src/commands/logs/filters.test.ts
  • packages/cli-core/src/commands/logs/filters.ts
  • packages/cli-core/src/commands/logs/index.ts
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 9 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ae205a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
clerk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@BrandonRomano
BrandonRomano marked this pull request as ready for review November 23, 2026 17:32
@BrandonRomano
BrandonRomano requested a review from Jibaru November 23, 2026 17:32
@blacksmith-sh

blacksmith-sh Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Matches clerk logs --end-user-only warns it is deprecated

Head help says 'Deprecated: has no effect' and the run prints the deprecation warning; base did neither. The request still carries end_user_facing_only=true, and no warning appears without the flag.

Merge-base

Base: no warning

This PR ae205a77

Head: deprecation warning

Proof on ae205a77 · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@BrandonRomano BrandonRomano changed the title [CORE-4466] Deprecate clerk logs --end-user-only Deprecate clerk logs --end-user-only Nov 23, 2026
@BrandonRomano BrandonRomano changed the title Deprecate clerk logs --end-user-only chore(logs): deprecate the --end-user-only flag Nov 23, 2026
@BrandonRomano
BrandonRomano merged commit 13b58c3 into main Nov 23, 2026
11 checks passed
@BrandonRomano
BrandonRomano deleted the brandonromano/core-4466-deprecate-the-clis-end-user-only branch November 23, 2026 17:52
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