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

Fix trash #4

Merged
merged 4 commits into from
May 6, 2024
Merged

Fix trash #4

merged 4 commits into from
May 6, 2024

Conversation

elisabettai
Copy link
Contributor

Problem

In recent Jupyterlab-based services, including the ones created with the new cookiecutter for jupyterlabs, when the user deleted a file in the Jupyter UI, a .Trash-1000 folder is created. Given the permissions on this folder, we can't push it to S3. More details in ITISFoundation/osparc-issues#1296

Investigations

It is not clear why this happens only in the newest Jupyters and not on other (e.g. jupyter-math). The "Trash" feature in jupyter seems relatively old (see jupyter/notebook#1968).

Solution

The JupyterLab Trash feature can be disabled via config. This is the only way I found to solve the issue, the only implication for the user is that if they delete a file via the UI, they won't be asked confirmation (it will work in the same way as deleting via the terminal with rm).

Services affected

  • jupyterlab-axondeepseg (this PR)
  • jupyterlab-julia
  • jupyterlab-R
  • cookiecutter for jupyters

Related issues

related to: ITISFoundation/osparc-issues#1296. All the services listed above need to be fixed to resolve the issue

@elisabettai elisabettai requested a review from pcrespov as a code owner May 6, 2024 11:31
/kernels/ @elisabettai
/docker/ @pcrespov @GitHK
/docker/ @elisabettai @GitHK
Copy link
Member

Choose a reason for hiding this comment

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

there seems to be a problem here

Copy link
Contributor Author

@elisabettai elisabettai May 6, 2024

Choose a reason for hiding this comment

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

Which of the problems do you see here? 😊

@elisabettai elisabettai merged commit 92f266c into main May 6, 2024
1 check passed
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