fix: fail fast; include put in jira -> CSV

This commit is contained in:
Christopher Gondek 2025-09-05 14:57:13 +02:00
parent e1618c9ffb
commit 949a3c97ae
2 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ class TicketSharepointSyncInterface:
# 2. Transform tasks according to task_sync_definition
audit_log.append("Step 2: Transforming JIRA data...")
transformed_tasks = self._transform_tasks(tickets)
transformed_tasks = self._transform_tasks(tickets, include_put=False)
jira_data = [task.data for task in transformed_tasks]
audit_log.append(f"JIRA issues transformed: {len(jira_data)}")
audit_log.append("")

View file

@ -42,10 +42,10 @@ async def perform_sync_jira_delta_group():
# Basic validation (credentials will be added later)
if not all([sharepoint_client_id, sharepoint_client_secret, sharepoint_site_url]):
logger.warning("SharePoint credentials not configured - sync will fail")
raise ValueError("SharePoint credentials not configured")
if not all([jira_username, jira_api_token]):
logger.warning("JIRA credentials not configured - sync will fail")
raise ValueError("JIRA credentials not configured")
# Define the task sync definition
task_sync_definition = {