varsis opened a new pull request, #8701: URL: https://github.com/apache/incubator-devlake/pull/8701
Fixes #8497 ## Summary Fixed CircleCI plugin incremental data collection failure due to column naming inconsistency. ## Root Cause - CircleCI API v2 returns `created_at`/`updated_at` (snake_case) - Pipeline model used `CreatedDate`/`UpdatedDate` → DB columns `created_date`/`updated_date` - Workflow/Job models correctly use `CreatedAt`/`UpdatedAt` → DB columns `created_at`/`updated_at` - Collectors queried workflows/jobs with wrong column name `created_date` (didn't exist in those tables) ## Changes - Fixed workflow/job collector queries: `created_date` → `created_at` - Standardized pipeline model fields to match API: `CreatedDate`/`UpdatedDate` → `CreatedAt`/`UpdatedAt` - Created DB migration to rename pipeline table columns - Updated archived model for consistency - Fixed test CSV headers and removed obsolete ignore fields ## Breaking Changes - DB schema change (column renames for pipelines table) - Requires migration for existing deployments - No API contract changes ## Test Plan - [x] Code builds successfully - [x] Migration handles both MySQL and PostgreSQL - [x] Safe for clean installs (checks column existence before renaming) - [x] Preserves data during migration 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
