Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Support loading manifests from remote locations #87

Merged

Conversation

nicholasyager
Copy link
Owner

@nicholasyager nicholasyager commented Oct 5, 2024

Description and Motivation

This PR supports issue #86, enabling the use of generic URLs in addition to file paths for referencing manifest file locations. This opens the door to allowing for more flexible hosting arrangements that are not constrained by S3 or other specific service providers.

To accomplish this, I modified the FileReferenceConfig type to have a urllib ParsedResult type, added a pre-validation step to convert strings to this type, and then split out load_from_local_filesystem to use load_from_path, which checks the URL scheme to decide on which scheme-specific loader to use. For now, this is only file-based schemes or http(s) schemes. In the future, the options may grow.

To-do

  • Add tests
  • Update documentation

@nicholasyager nicholasyager added the enhancement New feature or request label Oct 5, 2024
@nicholasyager nicholasyager self-assigned this Oct 5, 2024
@nicholasyager nicholasyager linked an issue Oct 5, 2024 that may be closed by this pull request
@nicholasyager nicholasyager marked this pull request as ready for review October 6, 2024 01:14
dbt_loom/config.py Outdated Show resolved Hide resolved
@nicholasyager nicholasyager requested a review from luiherch October 8, 2024 00:12
Copy link
Contributor

@luiherch luiherch left a comment

Choose a reason for hiding this comment

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

Tested and working as expected!
Luis

@nicholasyager nicholasyager merged commit 2eb08a4 into main Oct 9, 2024
3 checks passed
@nicholasyager nicholasyager deleted the 86-support-loading-manifests-from-remote-locations branch January 6, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support loading manifests from remote locations
2 participants