-
Notifications
You must be signed in to change notification settings - Fork 7
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(debug): allow files and folder deletion inside debug view #2147
feat(debug): allow files and folder deletion inside debug view #2147
Conversation
cf2eb65
to
b2957c6
Compare
3285bad
to
b9ec2a9
Compare
b9ec2a9
to
3853ea3
Compare
95167ec
to
7067134
Compare
3853ea3
to
03371bb
Compare
7067134
to
3807b73
Compare
03371bb
to
a0a01a5
Compare
3807b73
to
f02fddb
Compare
5a29460
to
bf4ad31
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.
A few change requests
antarest/study/service.py
Outdated
url = [item for item in path.split("/") if item] | ||
if len(url) < 2 or url[0] != "user": | ||
raise FileDeletionNotAllowed(f"the targeted data isn't inside the 'User' folder: {path}") | ||
if url[1] == "expansion": |
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.
We should probablu used registered files instead of hard coding it here
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.
I used RegisteredFile
.
IMO it doesn't bring a lot as the behavior is still a bit hard coded but it has the merit of using the class and showing how for future devs.
81d55f2
to
e0fd6b1
Compare
Introduces a new endpoint inside the back-end to fix [ANT-2083]
Samir will also add the front-end part
NB: I didn't specify inside the endpoint signature that it was for the User folder because I think we might use it for other folders such as the one for .yaml models that comes with Andromede modeling