Skip to content

✨(backend) add management command to reset a Document#1882

Open
lunika wants to merge 1 commit intomainfrom
add/clean-command
Open

✨(backend) add management command to reset a Document#1882
lunika wants to merge 1 commit intomainfrom
add/clean-command

Conversation

@lunika
Copy link
Member

@lunika lunika commented Feb 11, 2026

Purpose

We need a management command to reset a Document to an initial state and deletes everything related to it. This command can be usefull to reset a demo for example.

Proposal

  • ✨(backend) add management command to reset a Document

@lunika lunika requested a review from AntoLC February 11, 2026 14:30
@lunika lunika self-assigned this Feb 11, 2026
@lunika lunika added the backend label Feb 11, 2026
Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

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

I noticed a few problems:

  • if you reset the root, all the members are removed from the documents, even the owner, so you cannot access the document or sub documents anymore
  • I guess a demo doc is often public, the command seems to switch its visibility to private, if the command is automatized, you will have to manually change the visibility to the doc again
  • nit there is still the data in the table thread

We need a management command to reset a Document to an initial state and
deletes everything related to it. This command can be usefull to reset a
demo for example.
@lunika lunika requested a review from AntoLC February 11, 2026 18:19
Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

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

Nice, just need a doc now 😜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants