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

[DOM-59086] Fix uploading Folder to Dataset on Windows #207

Merged

Conversation

ddl-eric-jin
Copy link
Contributor

@ddl-eric-jin ddl-eric-jin commented Oct 9, 2024

Link to JIRA

DOM-59086

What issue does this pull request solve?

On Windows machines, filepaths contain \ separators whereas the upload endpoint expects Unix-style / separators. This results in files not being uploaded properly on Windows. This is fixed for upload files (PR: #203). But the issue remains for uploading folders.

What is the solution?

Replace Windows-style separators with Unix-style ones when uploading content from a folder.

Testing

Created unit test and manual test for uploading a non-empty folder on a Windows machine to a Dataset.

Pull Request Reminders

@ddl-eric-jin ddl-eric-jin requested a review from a team as a code owner October 9, 2024 06:59
@ddl-eric-jin ddl-eric-jin self-assigned this Oct 9, 2024
@ddl-eric-jin ddl-eric-jin merged commit 51815fb into master Oct 9, 2024
ddl-mmahmoud added a commit that referenced this pull request Oct 9, 2024
### Link to JIRA

[DOM-59086](https://dominodatalab.atlassian.net/browse/DOM-59086)

### What issue does this pull request solve?

This increments the release version for 6.0.0 parity after inclusion of #207

### What is the solution?

_placeholder_

### Testing

Briefly describe how the change was tested. The purpose of this section is that a reviewer can identify a test gap, if any.

_e.g. "I ran an upgrade from 4.2 to 4.6"._

- [ ] Unit test(s)

### Pull Request Reminders

- [ ] Has the [changelog](https://github.com/dominodatalab/python-domino/blob/master/CHANGELOG.md) been updated
- [ ] Has relevant documentation been updated?
- [ ] Does the code follow [Python Style Guide] (https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html)
- [ ] Are the existing unit tests still passing?
- [ ] Have new unit tests been added to cover any changes to the code?
- [ ] Has the JIRA ticket(s) been linked above?

### References (optional)
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