from django.urls import path

from vbv_lernwelt.self_evaluation_feedback.views import (
    add_provider_self_evaluation_feedback,
    get_self_evaluation_feedback_as_provider,
    get_self_evaluation_feedback_as_requester,
    get_self_evaluation_feedbacks_as_requester,
    release_provider_self_evaluation_feedback,
    start_self_evaluation_feedback,
)

urlpatterns = [
    # /requester/* URLs -> For the user who requests feedback
    path(
        "requester/<signed_int:course_session_id>/feedbacks/summaries",
        get_self_evaluation_feedbacks_as_requester,
        name="get_self_evaluation_feedbacks_as_requester",
    ),
    path(
        "requester/<int:learning_unit_id>/feedback/start",
        start_self_evaluation_feedback,
        name="start_self_evaluation_feedback",
    ),
    path(
        "requester/<int:learning_unit_id>/feedback",
        get_self_evaluation_feedback_as_requester,
        name="get_self_evaluation_feedback_as_requester",
    ),
    # /provider/* URLs -> For the user who is providing feedback
    path(
        "provider/<int:learning_unit_id>/feedback",
        get_self_evaluation_feedback_as_provider,
        name="get_self_evaluation_feedback_as_provider",
    ),
    path(
        "provider/feedback/<int:feedback_id>/release",
        release_provider_self_evaluation_feedback,
        name="release_self_evaluation_feedback",
    ),
    path(
        "provider/feedback/<int:feedback_id>/add-assessment",
        add_provider_self_evaluation_feedback,
        name="add_self_evaluation_feedback_assessment",
    ),
]
