ita-social-projects / SpaceToStudy-BackEnd

MIT License
12 stars 5 forks source link

Removed the "availability" field from the Lesson, Quiz, Attachment entities #903 #904

Closed Olenka-Hryk closed 4 days ago

Olenka-Hryk commented 1 week ago

Removed the "availability" field from the Lesson, Quiz, and Attachment entities [ Close #903 ]

The field availability removed from the Lesson, Quiz, and Attachment entities. This is because resources are added as links within the Cooperation entity, and the availability of these resources should be set at the Cooperation level. Having availability at the entity level would be redundant and inconsistent, as it could change independently for resources added as links:

Screenshot 2024-09-06 at 23 02 00 Screenshot 2024-09-06 at 23 20 26

After changes:

Creating a New Lesson:
Screenshot 2024-09-06 at 22 32 10
Saved lesson in Lessons entity without field availability:
Screenshot 2024-09-06 at 22 33 00
Creating a New Quiz:
Screenshot 2024-09-06 at 22 39 45
Saved quiz in Quizzes entity without field availability:
Screenshot 2024-09-06 at 22 41 02
OliaHrytsak commented 1 week ago

Could you explain, how this buttons will work after this changes? They need for closing specific resourse in a specific cooperation

image

Olenka-Hryk commented 1 week ago

Could you explain, how this buttons will work after this changes? They need for closing specific resourse in a specific cooperation

image

To change the availability for some resources in a Cooperation, the availability field should be added to the top level of the Cooperation entity. This field will allow for setting the availability of resources linked within the entity. The availability field should be added alongside the resource and resourceType fields for each resource included in the cooperation. This task will be addressed in issue #905.

If I don't answer your question, can you clarify what you mean?

sonarcloud[bot] commented 4 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud