- Introduced new endpoints for contact discovery, including scanning, listing, and managing discovered contacts. - Implemented retry logic for handling missing DAV credentials during contact operations. - Added public share functionality for drive API, allowing users to manage public shares, including upload, delete, and rename operations. - Updated Nextcloud configuration to support public share links and improved error handling for public share permissions. - Enhanced logging and validation across contact and drive APIs for better error tracking and user feedback. - Added tests for new contact matching and ranking functionalities to ensure accuracy and reliability.
16 lines
728 B
SQL
16 lines
728 B
SQL
-- Scan job progress + mailbox attribution on discovered profiles.
|
|
|
|
ALTER TABLE contact_discovery_scans
|
|
ADD COLUMN IF NOT EXISTS total_messages INT NOT NULL DEFAULT 0,
|
|
ADD COLUMN IF NOT EXISTS phase TEXT NOT NULL DEFAULT 'pending',
|
|
ADD COLUMN IF NOT EXISTS book_id TEXT NOT NULL DEFAULT 'contacts',
|
|
ADD COLUMN IF NOT EXISTS nc_user_id TEXT NOT NULL DEFAULT '',
|
|
ADD COLUMN IF NOT EXISTS updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW();
|
|
|
|
ALTER TABLE contact_discovered_profiles
|
|
ADD COLUMN IF NOT EXISTS detected_in_accounts JSONB NOT NULL DEFAULT '[]';
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_contact_discovery_scans_active
|
|
ON contact_discovery_scans(user_id, status)
|
|
WHERE status IN ('pending', 'running');
|