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-39831] - added forward slash check for file upload #144

Conversation

ddl-tanner-green
Copy link
Contributor

@ddl-tanner-green ddl-tanner-green commented Aug 17, 2022

Link to JIRA

DOM-39831

What issue does this pull request solve?

When a file that is being uploaded does not have a forward slash at the beginning it throws an error

What is the solution?

Added a checker to make sure the file still gets uploaded either way.

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

References (optional)

@ddl-tanner-green ddl-tanner-green requested a review from a team August 17, 2022 23:48
@ddl-olsonJD
Copy link
Collaborator

Can we also update the changelog

domino/domino.py Outdated
@@ -667,6 +667,8 @@ def files_list(self, commitId, path="/"):
return self._get(url)

def files_upload(self, path, file):
if path[0] != "/":
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit picking here, but can we use startswith instead?

@ddl-olsonJD ddl-olsonJD changed the title DOM-39831 added forward slash check for file upload [DOM-39831] - added forward slash check for file upload Aug 18, 2022
@ddl-olsonJD ddl-olsonJD merged commit 2dc547a into dominodatalab:master Aug 18, 2022
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.

None yet

2 participants