You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
repository: maybe provide a Repository.get_delegating_role() #2552
I wonder if Repository.get_delegating_role(role: str) -> str would be useful
In my implementations I end up looking up the delegating role of a role quite a lot.
if this existed, Repository could also offer QOL things like Repository.get_verification_result(role, md)
The reason this does not exist is that we can't really provide a fully generic implementation: Repository does not maintain a delegation tree. So we could
Require all Repository implementations to provide the method OR
Provide a default implementation that assumes max one level of targets delegations (and require more complex implementations to provide their own) OR
Provide a default implementation that adds a delegation tree into Repository
changed the title [-]repository: maybe provide a Repository.get_delegate_role()[/-][+]repository: maybe provide a Repository.get_delegating_role()[/+]on Feb 9, 2024
Oh this is going to be a nightmare if we allow "diamond" delegation structure (mutliple roles in different delegating metadata delegating to same name)
Activity
[-]repository: maybe provide a Repository.get_delegate_role()[/-][+]repository: maybe provide a Repository.get_delegating_role()[/+]jku commentedon Feb 9, 2024
Oh this is going to be a nightmare if we allow "diamond" delegation structure (mutliple roles in different delegating metadata delegating to same name)
lukpueh commentedon Feb 12, 2024
cc #660