Remove API calls from init methods in Node and Asset classes and move into from_id classmethod. Trying to make init able to construct both directly from data as well as from partial data + API call was leading to unnecessary complexity. We now leave the init class for directly instantiating via the inherited schema init and explicity call from_id or search to retrieve from the API.
Checklist
[x] Dependencies install correctly in a clean environment and code executes;
[x] Test coverage extended; created tests fail without the change (if possible);
Description
Remove API calls from init methods in Node and Asset classes and move into
from_id
classmethod. Trying to make init able to construct both directly from data as well as from partial data + API call was leading to unnecessary complexity. We now leave the init class for directly instantiating via the inherited schema init and explicity callfrom_id
orsearch
to retrieve from the API.Checklist