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:) Migration Task: Remove Fields from Attachments #1059

Open
Mike-Popovych opened this issue Dec 10, 2024 · 0 comments
Open

(SP:) Migration Task: Remove Fields from Attachments #1059

Mike-Popovych opened this issue Dec 10, 2024 · 0 comments
Assignees

Comments

@Mike-Popovych
Copy link
Contributor

Mike-Popovych commented Dec 10, 2024

image

Description

This task involves updating the attachments collection in the database. Specifically:

  1. Add the resourceType field to documents in the attachments collection if it does not already exist.
  2. Remove the availability field from the attachments collection.

Tasks

  1. Analyze Data:

    • Ensure that adding the resourceType field and removing the availability field from the attachments collection does not affect dependent functionality.
  2. Update attachments:

    • For each document in the attachments collection:
      • Check if the resourceType field exists.
      • If the resourceType field does not exist:
        • Add the field with the appropriate default value (e.g., "attachments" or other relevant value).
      • Remove the availability field from the document.
  3. Testing:

    • Validate that:
      • The resourceType field is added to documents in the attachments collection where it was missing.
      • The availability field is removed from all documents in the attachments collection.
  4. Code Implementation:

    • Write a migration script that:
      • Adds the resourceType field to documents in the attachments collection if it is missing.
      • Removes the availability field from all documents in the attachments collection.
@github-project-automation github-project-automation bot moved this to Project Backlog in SpaceToStudy Dec 10, 2024
@Mike-Popovych Mike-Popovych linked a pull request Dec 17, 2024 that will close this issue
@PavloButynets PavloButynets self-assigned this Dec 18, 2024
@Mike-Popovych Mike-Popovych changed the title (SP:) Migration Task: Remove Fields from Attachments and Update Cooperations (SP:) Migration Task: Remove Fields from Attachments Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Project Backlog
Development

No branches or pull requests

2 participants