Skip to content

fix: recursive_get_all_names should only get names from DataModel objects#1722

Merged
dbirman merged 1 commit intodevfrom
1721-get_component_names-returning-manufacturers
Feb 4, 2026
Merged

fix: recursive_get_all_names should only get names from DataModel objects#1722
dbirman merged 1 commit intodevfrom
1721-get_component_names-returning-manufacturers

Conversation

@dbirman
Copy link
Member

@dbirman dbirman commented Feb 4, 2026

recursive_get_all_names currently pulls the "name" field from aind-data-schema-model objects like ManufacturerModel. This is a bug, we only intended it to pull names from things that are subclassed from DataModel like Device and subclasses of Device. There's no easy way to identify that something is a subclass of Device specifically, so taking names from anything built off of DataModel is close enough.

@dbirman dbirman linked an issue Feb 4, 2026 that may be closed by this pull request
@dbirman dbirman requested a review from saskiad February 4, 2026 18:40
@dbirman dbirman added this pull request to the merge queue Feb 4, 2026
Merged via the queue into dev with commit cd30435 Feb 4, 2026
5 checks passed
@dbirman dbirman deleted the 1721-get_component_names-returning-manufacturers branch February 4, 2026 23:12
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.

get_component_names() returning manufacturers

2 participants