Skip to content

Added typed RPM Publication API Client - #318

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

Added typed RPM Publication API Client#318
Redtigercod4 wants to merge 32 commits into
pulp:mainfrom
Redtigercod4:feat/rpm-publication-api-client

Conversation

@Redtigercod4

Copy link
Copy Markdown

Summary

Built out a fully-typed API client for RPM publications, extending the pattern from RPM Repository, Remote, and Distribution clients. Covers the CRDL endpoints RpmPublicationViewSet and models against Pulp Core.

Changes

  1. Added typed RPM Publication API client (list, retrieve, create, delete) built off RpmPublicationSerializer.
  2. Added RPMPublicationUpsertType for narrowing checksum_tpye similar to RPM Repository client.
  3. Added GenericPublicationFilterParams to common.ts for filtering.
  4. Extracted shared RPM enum types into a new plugins/rpm/types.ts file.
  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
  4. Added typed RPM Distribution API Client #312

Linked issue

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

Sources

  1. https://github.com/pulp/pulpcore
  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