Skip to content

fix issue with population in refy#463

Merged
randrescastaneda merged 1 commit intoDEVfrom
PROD
Mar 26, 2026
Merged

fix issue with population in refy#463
randrescastaneda merged 1 commit intoDEVfrom
PROD

Conversation

@randrescastaneda
Copy link
Copy Markdown
Member

@randrescastaneda randrescastaneda commented Mar 26, 2026

Prework

Related GitHub issues and pull requests

  • Ref: #

Summary

Please explain the purpose and scope of your contribution.

Summary by CodeRabbit

  • Bug Fixes

    • Improved error reporting when file reading operations fail, now displaying file path and index information alongside error messages for easier troubleshooting.
  • Chores

    • Enhanced data quality filtering logic in lookup processes.
    • Updated test configurations and debugging utilities.

@randrescastaneda randrescastaneda merged commit a020e55 into DEV Mar 26, 2026
1 check was pending
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 26, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 32d0738a-f67c-4068-b3bf-4f954826a637

📥 Commits

Reviewing files that changed from the base of the PR and between e470950 and 38bd956.

📒 Files selected for processing (3)
  • R/create_lkups.R
  • R/fgt_cumsum.R
  • inst/TMP/TMP_data_testing.R

📝 Walkthrough

Walkthrough

Three files are modified: create_lkups() applies additional filtering to exclude rows with invalid reporting_pop values; load_list_refy() adds error handling around file reads with detailed error reporting; and test code parameters and debug calls are updated for consistency.

Changes

Cohort / File(s) Summary
Data Filtering Enhancement
R/create_lkups.R
Added filtering step to exclude rows where reporting_pop is NA or <= 0 after limiting to lineup_years, reducing invalid lookup records before downstream processing.
Error Handling & Code Formatting
R/fgt_cumsum.R
Added tryCatch() wrapper around fst::read_fst() calls in load_list_refy() with detailed error reporting including file index and path. Multiple functions reformatted with explicit bracing and whitespace adjustments; no semantic logic changes.
Test Code Updates
inst/TMP/TMP_data_testing.R
Added povline = 3 parameter to pip_agg() call; added debug notification; changed test country code from "AUS"/"COL" to "MWI"; removed unused debugonce() line.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A whisker-twitch of filters fine,
Error messages now align,
Test data shifted, cleaned with care,
Bugs be gone—the code's more fair!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch PROD

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@randrescastaneda randrescastaneda deleted the PROD branch March 26, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant