Skip to content

fix(catalog): include NULL group_id files in group queries (#380) - #386

Merged
luabida merged 2 commits into
AlertaDengue:mainfrom
luabida:fix-sih-null-group
Nov 17, 2026
Merged

luabida merged 2 commits into
AlertaDengue:mainfrom
luabida:fix-sih-null-group

Conversation

@luabida

@luabida luabida commented Nov 17, 2026

Copy link
Copy Markdown
Member

fix #380

…gue#380)

Group-filtered queries used an inner join on dataset_groups, silently
dropping files whose group_id was not backfilled. Fall back to the
canonical path group segment, heal group_id on future upserts, and add
an idempotent backfill script for existing catalogs.
@codecov-commenter

codecov-commenter commented Nov 17, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 99.67949% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@5c8d1ae). Learn more about missing BASE report.

Files with missing lines Patch % Lines
pysus/management/scripts/backfill_group_ids.py 98.33% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #386   +/-   ##
=======================================
  Coverage        ?   97.35%           
=======================================
  Files           ?      184           
  Lines           ?    24275           
  Branches        ?        0           
=======================================
  Hits            ?    23634           
  Misses          ?      641           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@luabida
luabida marked this pull request as ready for review November 17, 2026 14:55
Add regression coverage for formatter fallbacks, catalog repairs
and the backfill script's upload and skip branches.
@luabida
luabida merged commit 7b515b8 into AlertaDengue:main Nov 17, 2026
18 checks passed
@luabida
luabida deleted the fix-sih-null-group branch November 17, 2026 15:04
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.12.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ftp.sih(..., group="RD") silently skips files whose group_id is NULL in the catalog (4,526 of 10,946 SIH RD files)

2 participants