Commit Graph

23 Commits

Author SHA1 Message Date
6c3ad7b18d progress. 2025-11-09 21:00:45 -08:00
bafa9190e2 much better 2025-11-09 20:44:26 -08:00
662be72f6a feat: Implement comprehensive project data model and synchronization system
- Added ProjectModel class in models/project_model.py to define structure for Filevine project data with proper type hints and conversion methods (to_dict/from_dict)
- Implemented get_firestore_document() helper function in app.py for retrieving specific Firestore documents
- Enhanced dashboard pagination in app.py with improved error handling and debugging output for property contacts and project IDs
- Overhauled sync.py with:
  * Parallel processing using ThreadPoolExecutor for efficient project synchronization
  * Comprehensive extraction of project data from Filevine forms (newFileReview, datesAndDeadlines, propertyInfo, etc.)
  * Improved error handling and logging throughout the sync process
  * Proper handling of date conversions and field mappings from Filevine to Firestore
  * Added property contacts email extraction and viewing_emails array population
  * Added support for filtering projects by specific ProjectId (15914808) for targeted sync
- Added proper initialization of Filevine client in worker threads using thread-local storage
- Improved handling of optional fields and default values in ProjectModel
- Added detailed logging for progress tracking during synchronization

This implementation enables reliable synchronization of Filevine project data to Firestore with proper data modeling and error handling, supporting the dashboard's data requirements.
2025-11-09 20:21:53 -08:00
Bryce
0d0d0554a6 Update app.py to reflect latest changes in API routing and error handling 2025-11-09 19:47:09 -08:00
Bryce
903ffbbf42 progress 2025-11-09 19:41:37 -08:00
Bryce
5a61777128 extracted client 2025-11-09 15:57:22 -08:00
66e44d42a9 changes 2025-11-09 15:45:51 -08:00
a776ac2383 pagination 2025-11-07 16:50:11 -08:00
e25ace802e multi 2025-11-07 15:06:25 -08:00
cfd7020e1b multi 2025-11-07 15:03:20 -08:00
76e966fb0b fixes 2025-11-07 14:35:46 -08:00
30c5613937 progress 2025-11-07 10:02:33 -08:00
0022bb5abe most feedback applied. 2025-11-06 22:00:43 -08:00
dd13ed1711 separates syncing 2025-11-05 21:58:36 -08:00
81a1a32eb3 progress 2025-11-05 20:13:00 -08:00
a123d4e93b progress 2025-11-05 19:46:21 -08:00
0f0e2866be Actually looking up data entry 2025-11-05 13:46:43 -08:00
982c101259 caches 2025-10-31 11:22:19 -07:00
8c31125d5b progress 2025-10-31 11:19:49 -07:00
9e2e0bec36 implements cache 2025-10-31 10:19:43 -07:00
79a156c5ec progress 2025-10-31 10:02:46 -07:00
b1849bc111 ok good 2025-10-29 09:11:53 -07:00
Bryce
2383d1ad9a Initial 2025-10-22 17:34:13 -07:00