Skip to content

Avoid checking the storage class directly - #1506

Open
dralley wants to merge 1 commit into
pulp:mainfrom
dralley:storage-class
Open

dralley wants to merge 1 commit into
pulp:mainfrom
dralley:storage-class

Conversation

@dralley

@dralley dralley commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Use the Domain's stable backend identifier when serving published Python indexes so storage implementation paths can change without breaking them.

Pass through repository replication fields from the base replicator and accept its keyword arguments.

Assisted-by: OpenAI Codex

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

Use the Domain's stable backend identifier when serving published
Python indexes so storage implementation paths can change without
breaking them.

Pass through repository replication fields from the base replicator
and accept its keyword arguments.

Assisted-by: OpenAI Codex
def repository_extra_fields(self, remote, **kwargs):
fields = super().repository_extra_fields(remote, **kwargs)
fields.update({"autopublish": False})
return fields

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a separate PR or at least commit... but it also relied on a newer version of pulpcore hence why I hadn't submitted it.

Let me know if you really want to keep this separate and to what degree.

Comment thread pulp_python/app/models.py
elif path.match("pypi/*/json"):
name = path.parts[1]
elif len(path.parts) and path.parts[0] == "simple":
# Temporary fix for PublishedMetadata not being properly served from remote storage

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary fix from 2021 lol

Can we eliminate this check entirely?

This branch has not been deployed

No deployments
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