You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArtemHolikov
changed the title
(SP:) Migration Task: Remove Fields from Quiz and Update Cooperations
(SP: 5) Migration Task: Remove Fields from Quiz and Update Cooperations
Dec 17, 2024
Description
This task involves updating the
quiz
andcooperations
collections in the database. Specifically:resourceType
field from thequiz
collection and migrate it to the correspondingcooperations
documents.availability
field from thequiz
collection and migrate it to the correspondingcooperations
documents.cooperations
document is found for a quiz, the fields will be removed without adding them tocooperations
.Tasks
Analyze Data:
cooperations
collection contain aresourceId
field referencing a valid_id
in thequiz
collection.availability
andresourceType
fields from thequiz
collection does not affect dependent functionality.Update
cooperations
:quiz
collection:cooperations
collection (match byresourceId
).resourceType
field to thecooperations
document with the appropriate value ("quiz"
or other relevant value).cooperations
.Remove Fields from
lessons
:resourceType
field from all documents in thequiz
collection.availability
field from all documents in thequiz
collection.Testing:
resourceType
field is correctly added to thecooperations
collection where applicable.resourceType
andavailability
fields are removed from all documents in thequiz
collection.quiz
collection without a matchingcooperations
document only have the fields removed.Code Implementation:
cooperations
document for each quiz.resourceType
tocooperations
if a match is found.resourceType
andavailability
fromquiz
regardless of whether a match is found.Testing Automation:
cooperations
where matches exist.resourceType
andavailability
fromquiz
.cooperations
document.The text was updated successfully, but these errors were encountered: