Skip to content

taxonomic_resources: Rename tables to snake_case, add family, add structure tests - #272

Merged
dfalster merged 3 commits into
masterfrom
rename_resources
Mar 23, 2026
Merged

taxonomic_resources: Rename tables to snake_case, add family, add structure tests#272
dfalster merged 3 commits into
masterfrom
rename_resources

Conversation

@dfalster

@dfalster dfalster commented Mar 23, 2026

Copy link
Copy Markdown
Member

Closes #271

  • Renames APC list (accepted)APC_accepted, APC list (known names)APC_synonyms and APNI namesAPNI_names throughout the codebase, and updates all references in align_taxa.R, match_taxa.R, and update_taxonomy.R.
  • adds family to the columns selected in taxonomic_resources
  • adds tests for the structure of tables in taxonomic_resources

…ance structure tests

- Renames `APC list (accepted)` → `APC_accepted` and
`APC list (known names)` → `APC_synonyms` throughout the codebase,
and updates all references in align_taxa.R, match_taxa.R, and
update_taxonomy.R.
- adds `family` to the columns selected in taxonomic_resources
- adds tests for the structure of tables in taxonomic_resources

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the taxonomic_resources interface and downstream consumers to use simpler snake_case table names, includes family in APC-derived accepted/synonym tables, and adds structure tests to prevent regressions.

Changes:

  • Renamed resources$APC list (accepted)/resources$APC list (known names) to resources$APC_accepted / resources$APC_synonyms and updated references across alignment/matching/updating code.
  • Added family to the columns selected for APC species/infraspecific resource subsets.
  • Added a new test file asserting expected resource table names and key column sets.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
R/load_taxonomic_resources.R Adds family to APC subset selection and renames generated resource list elements to APC_accepted / APC_synonyms.
R/align_taxa.R Updates APC accepted-name lookup to use resources$APC_accepted.
R/match_taxa.R Updates all APC accepted/known-name matching paths to use APC_accepted / APC_synonyms.
R/update_taxonomy.R Updates APC accepted/known-name references to the renamed resource tables.
tests/testthat/test-taxonomic_resources_structure.R Adds tests asserting resource list names and expected columns for key tables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/update_taxonomy.R Outdated
Comment thread R/load_taxonomic_resources.R
Comment thread tests/testthat/test-taxonomic_resources_structure.R Outdated
ehwenk
ehwenk previously approved these changes Mar 23, 2026

@ehwenk ehwenk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks! This looks good.

dfalster and others added 2 commits March 23, 2026 20:51
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

@ehwenk ehwenk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Prefect! Ready to merge.

@dfalster
dfalster merged commit d0f1239 into master Mar 23, 2026
4 checks passed
@dfalster
dfalster deleted the rename_resources branch March 23, 2026 10:40
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.

minor package edits - column names

3 participants