Skip to content

Commit 448f503

Browse files
committed
fix: add missing IRCC ops breakdowns — new citizens and TRV V-1 approved
Add new_citizens (Canadian citizens by country of birth) and trv_v1_approved (visitor visa V-1 counterfoil) to the ops dataset. Both were already in the CKAN dataset but not in our registry.
1 parent 568cad8 commit 448f503

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

src/mcp_canada/modules/ircc/constants.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,14 @@
304304
"en": BASE_URL + "Open Data - OPS TR Approved en.xlsx",
305305
"fr": BASE_URL + "Open Data - OPS TR Approved fr.xlsx",
306306
},
307+
"trv_v1_approved": {
308+
"en": BASE_URL + "Open Data - OPS TRV V-1 Approved en.xlsx",
309+
"fr": BASE_URL + "Open Data - OPS TRV V-1 Approved fr.xlsx",
310+
},
311+
"new_citizens": {
312+
"en": BASE_URL + "Open Data - New Citizens by COB en.xlsx",
313+
"fr": BASE_URL + "Open Data - New Citizens by COB fr.xlsx",
314+
},
307315
},
308316

309317
# -------------------------------------------------------------------------

src/mcp_canada/modules/ircc/tools.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,18 +421,20 @@ async def ircc_get_asylum(
421421
async def ircc_get_ops(
422422
breakdown: Literal[
423423
"pr_intake", "copr_issued", "study_processed",
424-
"tr_processed", "trv_intake", "tr_approved"
424+
"tr_processed", "trv_intake", "tr_approved",
425+
"trv_v1_approved", "new_citizens"
425426
] = "pr_intake",
426427
recent: int | None = None,
427428
filter: str | None = None,
428429
lang: Literal["en", "fr"] = "en",
429430
) -> dict:
430-
"""Get IRCC operational processing statistics (monthly snapshots).
431+
"""Get IRCC operational processing statistics and citizenship data (monthly snapshots).
431432
432433
Covers PR intake, COPR issued, study permit processing, TR processing,
433-
visitor visa intake, and TR approvals. No year filter — data is monthly.
434-
Use for: IRCC processing times, application intake, operational stats, PR applications, study permit processing, visitor visa, TR approvals, COPR.
435-
Keywords: IRCC operations, processing, intake, application, PR intake, COPR, study permit, TR processing, visitor visa, TRV, approval, monthly, statistics, backlog.
434+
visitor visa intake, TR approvals, visitor visa V-1 approvals, and new Canadian citizens by country of birth.
435+
No year filter — data is monthly.
436+
Use for: IRCC processing times, application intake, operational stats, PR applications, study permit processing, visitor visa, TR approvals, COPR, new citizens, citizenship, naturalization, country of birth.
437+
Keywords: IRCC operations, processing, intake, application, PR intake, COPR, study permit, TR processing, visitor visa, TRV, approval, monthly, statistics, backlog, citizenship, new citizens, naturalization, country of birth.
436438
"""
437439
try:
438440
rows, cached = await fetch_ops(breakdown=breakdown, lang=lang)
@@ -545,7 +547,7 @@ async def ircc_list_datasets(
545547
"ee_invited": "Express Entry invited candidates (ITAs issued)",
546548
"tr_to_pr": "Temporary resident to permanent resident transitions",
547549
"asylum": "Asylum claimants",
548-
"ops": "Operational processing statistics (monthly snapshots)",
550+
"ops": "Operational processing statistics + new citizens (monthly snapshots)",
549551
"afghan": "Afghan refugees admitted to Canada",
550552
"adhoc_pr": "Ad-hoc historical PR data 1980-2023 (English-only)",
551553
}

0 commit comments

Comments
 (0)