feat: ignore data from suspended user#848
Conversation
WalkthroughThis PR implements user status filtering for dashboard probe adoption by adding a Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/lib/override/adopted-probes.tsOops! Something went wrong! :( ESLint: 10.4.0 SyntaxError: Unexpected token ':' test/tests/integration/measurement/create-measurement.test.tsOops! Something went wrong! :( ESLint: 10.4.0 SyntaxError: Unexpected token ':' test/tests/integration/probes/get-probes.test.tsOops! Something went wrong! :( ESLint: 10.4.0 SyntaxError: Unexpected token ':' Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@migrations/dashboard/create-tables.js.sql`:
- Line 6: Add a new migration that alters the existing directus_users table to
add the status column for already-deployed databases: create an ALTER TABLE
migration that checks for the absence of column directus_users.status (or safely
attempts to ADD COLUMN IF NOT EXISTS) and sets it to VARCHAR(255) NOT NULL
DEFAULT 'active', and include any required rollback/transaction semantics
consistent with other migrations; reference the directus_users table and status
column in the migration name and description so it runs on upgrades alongside
the existing migrations/dashboard/create-tables.js.sql.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: f2b9ab88-61bf-42bd-b518-e04ebf5d5b86
📒 Files selected for processing (4)
migrations/dashboard/create-tables.js.sqlsrc/lib/override/adopted-probes.tstest/tests/integration/measurement/create-measurement.test.tstest/tests/integration/probes/get-probes.test.ts
Part of jsdelivr/globalping-dash-directus#165