-
Notifications
You must be signed in to change notification settings - Fork 71
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
fix: Batch storage split_url
to work with Windows paths
#1043
fix: Batch storage split_url
to work with Windows paths
#1043
Conversation
…-StorageTarget-Split-fix-for-Windows
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1043 +/- ##
==========================================
+ Coverage 83.11% 83.13% +0.01%
==========================================
Files 39 39
Lines 3743 3747 +4
Branches 627 628 +1
==========================================
+ Hits 3111 3115 +4
Misses 470 470
Partials 162 162 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BuzzCutNorman I've added split_url
tests and a marker for Windows. Feel free to change it or add more test cases.
@edgarrmondragon I added a few more tests. I am starting to think the ones without the The one that got me today is if I put a valid PyFilesystem url |
@BuzzCutNorman yeah let's get rid those for now, you're right that users shouldn't end up with that type of URLs in a normal workflow 👍 |
@edgarrmondragon, The windows-local tests with a url not containing the protocol |
Thanks @BuzzCutNorman! |
split_url
to work with Windows paths
A proposed solutions to issue #1042. This fix for
StorageTarget.split()
adds detection of Windows and the presence of\
in url. If it detects both Windows and\
it splits the url and returns the results. The split logic is a rework of the code from fs.path.split .Closes #1042
📚 Documentation preview 📚: https://meltano-sdk--1043.org.readthedocs.build/en/1043/