Skip to content

refactor(marketplace): extract ref-propagation helpers from resolve_marketplace_plugin #1917

Description

@danielmeppiel

Context

Follow-up deferred from the apm-review-panel on #1880 (python-architect lens).

#1880 adds registered---ref propagation logic inline in resolve_marketplace_plugin (GitHub canonical #ref suffix; GitLab DependencyReference injection; main/HEAD exclusion guards; dict-source non-overwrite guard). The logic is correct and tested, but the ref-resolution concern is now spread across the resolver and would read more clearly extracted into a shared, independently-testable helper.

Why deferred (not folded into #1880)

Architectural refactor beyond bug-fix scope. Tracked here so the panel verdict on #1880 carries no loose follow-up.

Suggested scope

  • Extract the ref-propagation/exclusion/non-overwrite logic into a small shared utility used by both GitHub-family and GitLab paths.
  • Behavior-preserving; the existing TestMarketplaceRegisteredRefPropagation suite should pass unchanged.

Source: panel recommendation on #1880

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/marketplacemarketplace.json schema, federation, authoring suite, source parity.priority/lowAccepted but not time-sensitivestatus/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.type/refactorInternal restructure, no behavior change.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions