Remove commented-out Azure Blob Storage dead code - #61
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Document references to Azure services in code base
Remove commented-out Azure Blob Storage dead code
Jul 13, 2026
oldtopos
force-pushed
the
copilot/check-azure-services-references
branch
from
August 16, 2026 16:47
48c2f86 to
c6511c9
Compare
oldtopos
marked this pull request as ready for review
August 18, 2026 15:19
There was a problem hiding this comment.
Pull request overview
Removes long-commented Azure Blob Storage upload code from the socialmedia app’s create_media helper, aligning the web frontend with its current GCP App Engine deployment and eliminating unused, misleading legacy scaffolding.
Changes:
- Deleted commented Azure Blob Storage client initialization and upload snippets from
create_media. - Removed a now-pointless media-extension computation that only supported the commented Azure path.
- Simplified the
Media.objects.create(...)call by removing the commentedfile_cloud_pathassignment.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
585
to
589
| return Media.objects.create( | ||
| content_hash=content_hash, | ||
| uploaded_by=request.user, | ||
| is_video=is_video, | ||
| # file_cloud_path=blob_client.url, # Azure blob disabled | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The codebase contained leftover Azure Blob Storage references in
create_media(socialmedia/views.py) — fully commented out and never executed. The project has no Azure dependencies and deploys on GCP App Engine.Changes
siteapps/socialmedia/views.py— stripped the following dead code fromcreate_media:BlobServiceClientinit withAZURE_STORAGE_ACCOUNT_NAME/DefaultAzureCredentialblob_service_client.get_blob_client(container=AZURE_STORAGE_CONTAINER_NAME, ...)blob_client.upload_blob(...)file_cloud_path=blob_client.urlassignment (commented as "Azure blob disabled")_ = "MP4" if is_video else "JPEG"— existed solely to compute the blob file extensionBefore:
After: