Skip to content

Refactor component loading/finding logic#176

Merged
pedro-psb merged 1 commit intopulp:mainfrom
pedro-psb:feat/add-openapi-spec-find-mechanism
Feb 6, 2026
Merged

Refactor component loading/finding logic#176
pedro-psb merged 1 commit intopulp:mainfrom
pedro-psb:feat/add-openapi-spec-find-mechanism

Conversation

@pedro-psb
Copy link
Member

@pedro-psb pedro-psb commented Jan 30, 2026

This is preparing to implement a finding mechansim for the component openapi-specs.

It creates the following components with more scoped responsabilities:

  • ComponentLoader:
    Takes a pulp config (in mkdocs.yml pulp plugin section) and return loaded components with additinal component data (gathered from repos), as well what plugins were missing.
  • RepositoryFinder:
    Takes a list of lookup paths and find for a specific repository following scope rules. E.g only look for pulpcore in pulpcore@/tmp/dir
  • DataExtrctor:
    Groups methods that should extract extra information from components. E.g, package versions, git info, etc...

Closes #177

@pedro-psb pedro-psb linked an issue Jan 30, 2026 that may be closed by this pull request
@pedro-psb pedro-psb force-pushed the feat/add-openapi-spec-find-mechanism branch from e113837 to f862e0d Compare January 30, 2026 20:35
@pedro-psb pedro-psb changed the title Refactor component finding logic Refactor component loading/finding logic Feb 6, 2026
@pedro-psb pedro-psb force-pushed the feat/add-openapi-spec-find-mechanism branch from 78ff3d2 to 080c1c4 Compare February 6, 2026 13:19
This is preparing to implement a finding mechansim for the
component openapi-specs.

It creates the following components with more scoped responsabilities:

- ComponentLoader:
    Takes a pulp config (in mkdocs.yml pulp plugin section) and return
    loaded components with additinal component data (gathered from repos),
    as well what plugins were missing.
- RepositoryFinder:
    Takes a list of lookup paths and find for a specific repository
    following scope rules. E.g only look for pulpcore in pulpcore@/tmp/dir
- DataExtrctor:
    Groups methods that should extract extra information from components.
    E.g, package versions, git info, etc...
@pedro-psb pedro-psb force-pushed the feat/add-openapi-spec-find-mechanism branch from 080c1c4 to ceb2f04 Compare February 6, 2026 13:21
@pedro-psb pedro-psb merged commit f559f16 into pulp:main Feb 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop depending on docs-data branch Refactor component loading and finding logic

1 participant