Entry initialization with an option that not added to a datapack #831
Labels
topic: data
Issue about data loader modules and data processing related
topic: ontology
All issues related to ontologies in core, top and base_ontology
Is your feature request related to a problem? Please describe.
Every time I create a new ontology entry type, when I implement and test the new entry, I have to add code in DataPack and DataStore to test its behavior or pass CI test. I think we should have an option here such that we can "not adding entry to datapack".
Describe the solution you'd like
solution1: make
pack: ContainerType
optional and when it is None, we don't add entry to datapack.Describe alternatives you've considered
solution2: add a boolean parameter
skip_add
, and when it'sTrue
we don't add entry to datapack.Additional context
We might also want to raise warnings in some places when an entry is standalone and users call some datapack-dependent methods.
The text was updated successfully, but these errors were encountered: