feat: migrate parser data to source records
Some checks failed
CI/CD Pipeline / Quality Gate (push) Failing after 14s
CI/CD Pipeline / Build and Push Images (push) Has been skipped
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 0s

This commit is contained in:
2026-05-19 20:21:31 +02:00
parent 1c7c7238be
commit b8a18d6da4
46 changed files with 2689 additions and 6179 deletions

View File

@@ -6,6 +6,7 @@ from unittest.mock import patch
from apps.core.models import BackgroundJob, JobStatus
from apps.parsers.models import FinancialReport, FinancialReportLine, ParserLoadLog
from django.urls import reverse
from organizations.source_backfill import OrganizationSourceBackfillService
from rest_framework import status
from rest_framework.test import APITestCase
@@ -89,6 +90,7 @@ class SourcesApiE2ETest(APITestCase):
user_id=self.user.id,
meta={"source": ParserLoadLog.Source.INSPECTIONS},
)
OrganizationSourceBackfillService.backfill()
self.client.force_authenticate(self.user)
cards_response = self.client.get(reverse("api_v1:sources:source-cards-list"))