perf(organizations): speed up filtered API lists
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 28s
CI/CD Pipeline / Build and Push Images (push) Successful in 10s
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Successful in 1s

This commit is contained in:
2026-05-14 17:08:03 +02:00
parent df89e498cc
commit 19a7d5a91c
10 changed files with 360 additions and 62 deletions

View File

@@ -99,6 +99,10 @@ class OrganizationDataSnapshotRefreshServiceTest(TestCase):
snapshot.data["industrial"][0]["certificate_number"],
"SNAPSHOT-BATCH-CERT",
)
self.assertEqual(
snapshot.data_source_counts,
[{"source": "industrial", "count": 1}],
)
def test_refresh_for_fns_batch_matches_by_ogrn(self):
organization = Organization.objects.create(