- Introduced tests for drift operations UI and backend to ensure proper handling of ignore rules and UI elements. - Added tests for email identity API to validate email linking and identity retrieval without updates. - Implemented tests for email purchase link service to verify correct handling of purchase mail links and conflict scenarios. - Created tests for email reply automation to ensure proper routing and processing of replies based on classification. - Developed tests for email sender creation to validate suggestions and handling of existing contacts and companies. - Added tests for email sender identity to ensure correct matching of contacts and domains. - Implemented tests for work desk functionalities to validate task management, meeting registrations, and timer functionalities.
19 lines
743 B
SQL
19 lines
743 B
SQL
-- Structured, reversible ignore rules for Drift devices.
|
|
-- Existing drift_device_blacklist settings remain readable for compatibility.
|
|
CREATE TABLE IF NOT EXISTS drift_ignore_rules (
|
|
id SERIAL PRIMARY KEY,
|
|
source_id INTEGER REFERENCES drift_sources(id) ON DELETE CASCADE,
|
|
external_id VARCHAR(255) NOT NULL,
|
|
device_name VARCHAR(255),
|
|
reason VARCHAR(100),
|
|
ignored_by INTEGER,
|
|
is_active BOOLEAN NOT NULL DEFAULT TRUE,
|
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
UNIQUE (source_id, external_id)
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_drift_ignore_rules_active
|
|
ON drift_ignore_rules (source_id, external_id)
|
|
WHERE is_active = TRUE;
|