-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(api,ui-studies): update study move #2239
Conversation
c920964
to
8b9cbca
Compare
8b9cbca
to
23ffc1c
Compare
df59674
to
a6563cf
Compare
4a542af
to
1afbc6b
Compare
780f89a
to
c7cb378
Compare
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.
Ok.
I think the behaviour we have chosen before this fix (to append the ID to the path) is not good from the user point of view, but that would be a separate topic.
study = self.get_study(study_id) | ||
assert_permission(params.user, study, StudyPermissionType.WRITE) | ||
if not is_managed(study): | ||
raise NotAManagedStudyException(study_id) | ||
if folder_dest: | ||
new_folder = folder_dest.rstrip("/") + f"/{study.id}" |
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.
Just a note for later: would probably be best to use PurePosixPath
objects than just strings to represent our paths.
c7cb378
to
6d454f4
Compare
ANT-2390