Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExpMaterialTable: consistent initialization #5348

Merged
merged 4 commits into from
Mar 21, 2024

Conversation

labkey-nicka
Copy link
Contributor

@labkey-nicka labkey-nicka commented Mar 20, 2024

Rationale

Initialization of the ExpMaterialTableImpl is inconsistent and makes it difficult to track how/what initialized the table. This updates ExpMaterialTable interface to not include populate, setMaterials nor setSampleType. Setting materials in this way is not necessary and the single usage, ParentChildView, has been refactored to generate an IN clause as a base filter.

Related Pull Requests

Changes

  • Setting the ExpSampleType is now done via the constructor and consistently initialized.
  • ExpMaterialTableImpl.populate no longer takes an ExpSampleType and initializes the sample type because it is done via construction.
  • ExpMaterialTableImpl.setMaterials setting materials in this way is not necessary and the single usage, ParentChildView, has been refactored to generate an IN clause as a base filter.
  • ExpMaterialTableImpl no longer accepts a name since we always want to initialize it to "Materials". Can still be set after initialization via setName.
  • Miscellaneous nits

@labkey-nicka labkey-nicka force-pushed the fb_material_interface branch from a45da85 to 4246833 Compare March 21, 2024 16:39
@labkey-nicka labkey-nicka merged commit c31d374 into develop Mar 21, 2024
9 of 10 checks passed
@labkey-nicka labkey-nicka deleted the fb_material_interface branch March 21, 2024 19:10
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.

3 participants