Skip to content

Added typed RPM Distribution API Client - #312

Draft
Redtigercod4 wants to merge 27 commits into
pulp:mainfrom
Redtigercod4:feat/rpm-distribution-api-client
Draft

Added typed RPM Distribution API Client#312
Redtigercod4 wants to merge 27 commits into
pulp:mainfrom
Redtigercod4:feat/rpm-distribution-api-client

Conversation

@Redtigercod4

Copy link
Copy Markdown

Summary

Built out a fully-typed API client for RPM Distributionsm extending the pattern from RPM Repository & Remotes. Covers standard CRUDL endpoints from RpmDistributionViewSet and models against Pulp Core.

Changes

  1. Added typed RPM Distribution API Client (list, retrieve, create, update, delete) built off RpmDistributionSerializer.
  2. create() used asynchronous 202 - DispatchedTaskResponse.
  3. Added GenericDistributionFilterParams to common.ts for filtering.
  4. Added createAndWaitResource helper to the shared test client, generic for both async and sync operations.
  5. Added integration tests against a live pulp instance using node:test.

Out of Scope

  1. UI/component consumption of this client

Blockers (In order)

  1. Add shared base types for Repositories, Publications, Remotes and Distributions #307
  2. Added typed RPM Repository API Client #308
  3. Added typed RPM Remote API Client #311

Linked issues

  1. epic: Typed API Client for RPM Plugin #309

Sources

  1. https://github.com/pulp/pulpcore/tree/main
  2. https://github.com/pulp/pulp_rpm

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.

1 participant