Skip to content

Batch tutorial: create placements directly - #332

Open
vangberg wants to merge 1 commit into
mainfrom
direct-batch-placements
Open

Batch tutorial: create placements directly#332
vangberg wants to merge 1 commit into
mainfrom
direct-batch-placements

Conversation

@vangberg

Copy link
Copy Markdown
Contributor

I think the batch tutorial predates the Placement class. Currently it creates placements implicitly by setting Name#parent and Name#incertae_sedis, which then creates placements via Name#ensure_consistent_placement which is invoked as an after_save hook.

In preparation for #173 I have refactored the batch tutorial to create placements directly and added a bunch of tests verifying current behavior.

Comment thread test/fixtures/names.yml
rank: species
status: 20 # ICNP

nanobdellaceae:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I feel some tension between using fixtures with names that describe the fixture (e.g. valid_name or unpublished_name) and then just using the name like here. Not sure what direction to go in.

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