Skip to content

Conversation

di
Copy link
Member

@di di commented Feb 28, 2024

@di di requested a review from a team as a code owner February 28, 2024 01:07
Copy link
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

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

One non blocking comment

@@ -95,7 +96,7 @@ def metadata_backfill_individual(request, file_id):
return

base_url = request.registry.settings.get("files.url")
file_url = base_url.format(path=file_.path)
file_url = urllib.parse.quote(base_url.format(path=file_.path), safe=":/")
Copy link
Member

Choose a reason for hiding this comment

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

Probably fine for the backfill, but we've been trying to only use one url parser, and settled on urllib3 - see #14497

Copy link
Member Author

Choose a reason for hiding this comment

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

AFAICT, I'm not actually seeing a way to do this with urllib3. Given that we're going to be deleting this task in ~1 week, I'm just going to merge this as is!

@di di merged commit f87e97d into pypi:main Feb 28, 2024
@di di deleted the quote-backfill-urls branch February 28, 2024 16:29
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.

2 participants