pub async fn analysis(
pool: &PgPool,
actor: &Actor,
revision_ids: &[Uuid],
) -> AppResult<(Vec<Dependent>, i64)>Expand description
The dependents of the given revisions that the actor may see, and how many dependents were left out because they belong to restricted groups (the walk does not go on through them): multi-level through BOMs and item references of the latest revisions, plus CAD files that reference their files.
The walk goes up level by level for all revisions at once (one query per level, not one per path or per revision): every dependent is reported on the lowest level it is reached on from each revision’s item, with the relation and the item it depends on there.