Skip to content

Conversation

@cristinamullin
Copy link
Collaborator

Pull Request Checklist

Preparation

  • Update your branch from the latest develop and resolve any merge conflicts

  • Before creating a pull request trigger the format-update GitHub Action on your branch to format the code

Documentation

  • Add/update inline and/or block comments to clarify complexity, context and intent

  • Add/update function documentation (roxygen), include working examples, build docs locally using devtools::document(), and inspect added/updated help pages for content and format

  • Add/update vignettes for corresponding changes in functionality, list these under articles in _pkgdown.yml, and ensure added/updated vignettes run and build with proper formatting locally

Maintenance & Data Refresh

  • Add new dependencies to DESCRIPTION and document appropriately

  • Run spelling maintenance in requiredMaintenance.R

  • If changes affect other package or the shiny app functions, update those impacted functions accordingly

  • If columns were added/updated, add/update them in RequiredCols.R

  • Run .TADA_UpdateRefFiles() and .TADA_UpdateExampleData() locally via MaintenanceScheduled.R or trigger the Component File Update GitHub Action

  • If new example data files were added, document them in ExampleData.R and include them in MaintenanceScheduled.R for regular refresh

Tests and checks

  • Add/update tests in tests/testthat to cover changes

  • Run devtools::test() to verify new and existing tests pass

  • Run devtools::check() and address any errors, warnings or notes

Pull Request Description

  • Includes a summary of the changes made

  • Includes relevant context/motivation

  • Includes links to related issues or pull requests (keywords like "Closes #issue_number" automatically close related issues when pull request is merged)

Review

  • Review the bot-commented coverage-report generated by test-coverage to confirm all changes are covered by tests

  • Review/accept any bot-suggested format changes

  • Request review from at least one developer team member

@github-actions
Copy link
Contributor

coverage-report

File Coverage Missing
All files 35%
R/ATTAINSCrosswalks.R 25% 63-859 1069-1084 1088-1092 1097-1102 1107 1113-1133 1139-1142 1147-1168 1179-1194 1247-1250 1425-1481 1488-1740 1925-1937 1941-1944 1949 1977-1980 1992-1995 2003-2007 2023-2027 2043-2049 2057-2072 2077 2083-2096 2116-2119 2275-2284 2289-2299 2459-2732 2924-3428 3583-3602 3606-3609 3618-3631 3638-3658 3666-3670 3683-3687 3718-3828 3880-4037 4042-4045 4052-4195
R/ATTAINSRefTables.R 0% 24-625
R/autoClean.R 89% 152-153 248-254 413-414 424-428
R/autoFilter.R 45% 31-228 332 354-356 362 393 427-439
R/CensoredDataSuite.R 86% 52-53 142 181-182 253-259 373-381 494-495 500-502 505-507 515 562-569 572-573 579-584 601-603
R/CriteriaComparison.R 87% 173-177 182 191-193 240-265
R/CriteriaMethods.R 17% 226-237 241-243 260-262 267-269 274-276 286-299 307-334 503-507 523-527 633-791 818-868 874-1418 1436-1751
R/CriteriaRefTables.R 0% 22-195
R/DataDiscoveryRetrieval.R 32% 199 210-213 230-233 246-249 255 259 276-736 750-752 760 762 767-774 782 788 790 794 796 802 806 808 818 820 824 830 832 836 838 843 845 849 856-863 871 883-897 908-914 943-957 971-985 1004 1101-1132 1237-1244 1342-1378 1471-1474 1543-1721
R/DepthProfile.R 0% 102-2020
R/Figures.R 0% 64-1521
R/GeospatialFunctions.R 26% 114-118 193-195 223-225 283-287 309 341-566 582-584 724 730-733 803-808 812 820-1248 1434-1440 1447-2368 2620-2630 2636-2667 2732 2736 2740 2762-2810 2881-2950 2955-2989 3082-3860
R/MaintenanceScheduled.R 0% 42-448
R/Maps.R 8% 26-488 579 681 708-1295
R/RequiredCols.R 20% 386-629
R/ResultFlagsDependent.R 56% 60-62 67 109-118 143-150 253 290-294 316-319 326-329 345-361 422 445-447 453-454 460 508-519 525-532 595-598 610 626-637 662-664 677-683 754-881 951-954 999 1066-1078 1102-1104 1108-1110 1116-1125
R/ResultFlagsIndependent.R 71% 70-72 78 124-125 144-157 265-267 272 276 280 290 388-391 403-435 525-527 532-534 543 663-681 696-721 810-812 817-819 828 956-966 981-1168 1213 1235-1254 1267-1272 1375 1379 1437-1452 1457 1461-1468 1532-1533 1628-1644 1842-1856
R/Tables.R 93% 19-30
R/TADAGeospatialRefLayers.R 0% 8-13
R/TADARefTables.R 85% 86-88 105-111
R/Transformations.R 86% 76-77 82-84 221-232 394-395 444-447 515 792 822-837 924-925 942 973-984 987-1004 1008-1016
R/UnitConversions.R 82% 147 421 428 435 442-444 451 458-460 469-472 482-484 634-716 738-784 807 855 868-882 1115-1119 1199 1276-1279 1321
R/Utilities.R 55% 12-16 477 595-596 600 605-607 702 831-842 903-904 911 996-997 1027-1031 1136-1137 1141-1142 1152-1156 1161-1166 1208-1567 1593-1594 1607-1610 1681-2104 2305-2333
R/WQPWQXRefTables.R 67% 21-95 119 131 137-143 154-158 180 192 198-206 278-282 304 316 322-328 423-427 448 460 466-472 618-622 644 656 662-668 685-689 712 724 730-736 1056-1283

Minimum allowed coverage is 10%

Generated by 🐒 cobertura-action against 344ce3c

github-actions bot and others added 4 commits December 31, 2025 20:31
Make TADA_FindQCActivities type-stable and consistent with its documentation:

Support the documented “clean” argument options ("none", "all", "duplicates", "blanks", "calibrations", "other") while keeping backward compatibility with logical TRUE/FALSE.
Avoid using .data$ inside dplyr verbs (this shadows dplyr’s pronoun and can cause bugs). Use bare column names or the actual data object name.
Handle NA ActivityTypeCode by assigning “Not Reviewed” (so filtering and messaging work cleanly).
Use message() instead of print() for user-facing informational output.
When flaggedonly = TRUE and there are no QC rows, return a zero-row dataframe with the same schema (slice(flag.data, 0)).
Guard downstream calls (e.g., TADA_CreateComparableID and TADA_OrderCols) to avoid NULL handling issues.
Make TADA_OrderCols safer:

Already guarded NULL input and missing ResultIdentifier in your updated version; additionally, use dplyr::arrange when available for clarity.
Optionally return a zero-row dataframe with the same schema as input when .data is NULL (if you prefer schema consistency), but your current approach is fine.
The function now always returns a data frame/tibble and never NULL.
For zero-row inputs, it adds an empty character column and returns immediately.
Character coercion ensures robust concatenation if any of the input columns are factors.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

air

[air] reported by reviewdog 🐶

cristinamullin and others added 4 commits January 2, 2026 09:17
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants