-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛♻️ Deleting a project now removes its files #2777
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2777 +/- ##
========================================
- Coverage 78.9% 77.8% -1.1%
========================================
Files 670 670
Lines 27236 27250 +14
Branches 2678 2679 +1
========================================
- Hits 21495 21219 -276
- Misses 4981 5284 +303
+ Partials 760 747 -13
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Very nice!
Please just add a tenacity retrial instead of a hard-coded sleep time in your test.
services/web/server/src/simcore_service_webserver/projects/projects_api.py
Outdated
Show resolved
Hide resolved
services/web/server/tests/integration/01/test_project_delete_cleanup.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/projects_api.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/projects_api.py
Outdated
Show resolved
Hide resolved
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.
Good catch of the bug and nice refactoring of the tests.
I still have some questions and extra suggestions. I am happy to zoom to clarify but i think there are a couple of important points to deal with.
thx
Right now, the link is done as follows: There are two solutions here:
I would go for approach number 2 |
I would also go for number 2 and ask for a bit of frontend coordination. I would make it so that when the user selects such a file in the file picker, an API on the backend is called to do the copy. I think this might be the simplest solution. |
Such an API already exists: What I don't know is if it still works. Ideally it should somewhere provide some copy progress info. |
# assert settings # nosec | ||
# return settings | ||
# ANE -> PC: how was this working before? | ||
return ExporterSettings() |
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 thought this was clear by but I see there are still doubts ... so let's talk next week and clarify still doubts.
In the meantime:
ExporterSettings()
works on its own because is aBaseCustomSettings
so with the constructor it will capture the env settings- Nonetheless, the new settings approach enforces all settings to be captured at the same time as fields of
ApplicationSettings
which is then saved inapp[APP_SETTINGS_KEY].WEBSERVER_EXPORTER
- Now, if you did the test fixture right, both
app[APP_SETTINGS_KEY].WEBSERVER_EXPORTER
andExporterSettings()
should work
In 2., if I understand it correctly, besides copying the file to
|
In that case a lock should be shown in the UI and the user should not be able to pick that file. |
After discussing with @sanderegg we agreed on the following:
|
@pcrespov I think this is no longer relevant with the work you already did. Should we just drop it? |
If that is the case make sure to add a |
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.
this gets replaced.
replaced by #2967 |
What do these changes do?
integration/01
for the webserverRelated issue/s
How to test
Checklist