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

Add a status field for resources in cooperation model #966

Merged
merged 7 commits into from
Nov 26, 2024

Conversation

luiqor
Copy link
Contributor

@luiqor luiqor commented Nov 18, 2024

Add completionStatus field

  • Change resources in cooperation model to include a completionStatus field (enum: active and completed), allowing it to be marked as completed by the student/tutor in the future
  • Add enum RESOURCE_COMPLETION_STATUS_ENUM

Update swagger docs to include completionStatus field

Update docs for cooperations to include only up-to-date fields:

  • cooperations definition: add user (partner of current user) to items as server answer returns the user POST /cooperations 200 screenshot
  • add missing field in coopeartion definitions - additionalInfo screenshot
  • remove cooperationResponse as it returns the same response as cooperation
  • fix $refs to lead to actual definitions (to user, offer, quiz, finishedQuiz)
  • fix quiz and user schemas to reference them in cooperations definitions without them causing errors

@luiqor luiqor added enhancement New feature or request Backend labels Nov 18, 2024
@luiqor luiqor self-assigned this Nov 18, 2024
@luiqor luiqor linked an issue Nov 18, 2024 that may be closed by this pull request
2 tasks
@luiqor luiqor merged commit a59c242 into develop Nov 26, 2024
3 checks passed
@luiqor luiqor deleted the feature/957/status-to-cooperations-resources branch November 26, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(SP: 0.5) Add a status field for resources in cooperation model
4 participants