Skip to content

[DCP - Ingestion] Match the ingestion path #2047

Merged
gmechali merged 1 commit into
masterfrom
ingestionHelperGcs
May 28, 2026
Merged

[DCP - Ingestion] Match the ingestion path #2047
gmechali merged 1 commit into
masterfrom
ingestionHelperGcs

Conversation

@gmechali
Copy link
Copy Markdown
Contributor

If there is no env var specified, this would be a no-op ensuring this does not change anything for Base DC.
This PR goes in tandem with: datacommonsorg/datacommons#92

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors storage_client.py by introducing a helper method _get_output_dir to centralize the construction of GCS output directory paths, incorporating an optional prefix from the GCS_OUTPUT_PREFIX environment variable. This helper replaces duplicate path-generation logic across multiple methods. The review feedback suggests using posixpath.join instead of os.path.join to prevent platform-specific path separator issues (e.g., on Windows) since GCS paths must always use forward slashes.

Comment thread import-automation/workflow/ingestion-helper/storage_client.py
@gmechali gmechali requested a review from clincoln8 May 28, 2026 20:15
Copy link
Copy Markdown
Contributor

@clincoln8 clincoln8 left a comment

Choose a reason for hiding this comment

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

Thanks!

@gmechali gmechali merged commit 9330eed into master May 28, 2026
13 checks passed
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