isConfigGenerated is false when pulling a module
line 431 in viewer/pages/component.py we have
if component_type in ["module", "ob_loaded_module_cell"]:
branches = ["warm", "cold", "LP"]
is_config_created = True
is_valid_rd53_module = False
with contextlib.suppress(AssertionError):
is_valid_rd53_module = [chip_serial_number_to_uid(chip) for chip in chips]
for chip in chips:
for branch in branches:
cfg = localdb.fe_configs.find_one(
{
"serialNumber": chip,
"stage": this_component_doc.get("stage"),
"branch": branch,
}
)
if not cfg:
logger.warning(
f' ==> cfg not found for ({chip}, {this_component_doc.get("stage")}, {branch})'
)
is_config_created = False
continue
if not cfg.get("current_revision_id"):
logger.warning(" ==> current_revision_id not found")
is_config_created = False
localdb.component.update_one(
{"_id": ObjectId(component_id)},
{"$set": {"isConfigGenerated": is_config_created}},
)
this_component_doc["is_config_created"] = is_config_created
if I pull a module from the PDB I won't have the chip config revision history per stage, thus isConfigGenerated will be updated to False in mongoDB and I cannot upload any YARR scans.
related to not being able to upload YARR scans due to isConfigGenerated being False
Tagging @msaimper