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

(SP: 5) Migration Task: Remove documents that refer to non-existent users #1069

Open
PavloButynets opened this issue Dec 16, 2024 · 0 comments · May be fixed by #1071
Open

(SP: 5) Migration Task: Remove documents that refer to non-existent users #1069

PavloButynets opened this issue Dec 16, 2024 · 0 comments · May be fixed by #1071
Assignees

Comments

@PavloButynets
Copy link

PavloButynets commented Dec 16, 2024

  1. Analyze the attachments collection:
  • Identify documents where the author field references a user that no longer exists in the users collection.
  • Delete these documents.
  1. Analyze the lessons collection:
  • Check for documents where the author field refers to a user that does not exist in the users collection.
  • Delete those documents.
  1. Analyze the quizzes collection:
  • Identify documents where the author field references a non-existent user in the users collection.
  • Remove those documents.
  1. Analyze the questions collection:
  • Identify documents where the author field references a user that no longer exists in the users collection.
  • Delete these documents.
  1. Analyze the resourcescategories collection:
  • Locate documents in which the author field refers to a user that does not exist in the users collection.
  • Delete these documents.
  1. Analyze the courses collection:
  • Locate documents where the author field references a non-existent user in the users collection.
  • Remove these documents from the collection.
  1. Analyze the notes collection:
  • Search for documents with an author field that references a non-existent user in the users collection.
  • Remove the invalid documents.
@PavloButynets PavloButynets self-assigned this Dec 16, 2024
@github-project-automation github-project-automation bot moved this to Project Backlog in SpaceToStudy Dec 16, 2024
@PavloButynets PavloButynets moved this from Project Backlog to Sprint Backlog in SpaceToStudy Dec 17, 2024
@ArtemHolikov ArtemHolikov changed the title (SP:) Migration Task: Remove documents that refer to non-existent users (SP: 5) Migration Task: Remove documents that refer to non-existent users Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Sprint Backlog
1 participant