Skip to content

analytics: scope the dashboard-visibility setup delete by tenant - #9

Merged
cliftonc merged 1 commit into
mainfrom
fix/analytics-scoped-test-delete
Sep 30, 2026
Merged

cliftonc merged 1 commit into
mainfrom
fix/analytics-scoped-test-delete

Conversation

@cliftonc

Copy link
Copy Markdown
Contributor

Fixes #8.

  • dashboard-visibility.test.ts removes a page's last group grant with and(eq(tenantId), eq(pageId)), where it used to match on pageId alone. The kit's unscoped-allowlist scan now passes with no allow-list entry. This is the issue's option 2.
  • Adds an analytics porting note in unreleased.md. It includes a step to delete any temporary CORE_UNSCOPED_ALLOWLIST entry an app added.

Why CI missed it: the kit's scanners read git ls-files, and plugin CI never staged the installed plugin, so plugin files were never scanned. That is fixed in rocketflare-dev/rocketflare#39 (plugin-ci.yml runs git add -A after the install). In a scratch kit clone with all four plugins installed and staged, the scan flagged the unfixed 3.4.1 file and passed with this change. Every other config scanner also passed for all four plugins. The only failures were plugin-check's "no migration" errors, because I didn't run db:generate there.

The fix reaches apps only after a release (3.4.2).

🤖 Generated with Claude Code

The kit's unscoped-allowlist scan walks every tracked file under src/,
plugin tests included, and flagged the delete by pageId alone.

Fixes #8.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@cliftonc
cliftonc merged commit 27aebcb into main Sep 30, 2026
9 checks passed
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.

analytics 3.4.1: dashboard-visibility.test.ts fails the host kit's unscoped-allowlist test

1 participant