apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
68 stars 73 forks source link

How to add comments to each exercise? #410

Closed mob-sdk closed 4 years ago

mob-sdk commented 4 years ago

How to add comments function to each exercise?

markkuriekkinen commented 4 years ago

Can you elaborate what you mean?

mob-sdk commented 4 years ago

In each exercise, add a text box where you can enter text and submit it. The entered text is displayed below the text box. Both staff and student can then enter text in the text field to submit. This way they can have some communication, like comments.

image

Just like the content of this page

markkuriekkinen commented 4 years ago

Questionnaire exercises may have text fields. However, course staff should not write their comments in the submission fields. They can write write assistant feedback to the submission in the "inspect submission" page.

There is a separate service for feedback questionnaires that allows the course staff to write comments back to the student. It is called mooc-jutut: https://github.com/Aalto-LeTech/mooc-jutut

raphendyr commented 4 years ago

I presume you want open comments between students. That is something the A+ itself doesn't support. It's also usecase that isn't yet experimented with. That said, you could add iframe to the chapter page and create a service (or use e.g. phpBB) that operates within the iframe and does what ever messaging you want (e.g. chat with websockets).

I prototyped seemless iframes with A+ in mind, so you could use that as basis for setup for above. https://www.niksula.hut.fi/~jaakko/seemless_frames/

We (Aalto) has been using tools Code Vault (student to staff code paste), piazza.com, slack and telegram for open communication between students and staff. In addition, we utilise mooc-jutut as mix of feedback and interaction. It has been designed for usecase where student may report problems,. misunderstandings or what ever as part of the learning.

I don't personally see any use for open comments for exercises, thus we are not probably looking for in A+ support for it, but as described above, that kind of feature can be implemented.

As a future note, for next redesign of A+, we have designed to include comments as attachments to submissions. Again, that is between the student and staff.

mob-sdk commented 4 years ago

image I need to share a view where one URL contains a parameter. How do I change this parameter to be a not required parameter in views? image thank you

markkuriekkinen commented 4 years ago

I really do not understand the question. You should provide more background on what you are trying to do.

mob-sdk commented 4 years ago

image add a numeric type parameter to this URL “(?P[\d]+)” image I added the parent_id_kw variable to the view function and got the value through the get_resource_object method, but now I want the parent_id parameter passed in from the URL to be unnecessary. I want to not pass this parameter in the URL or pass this parameter in the url it is like commentreply/11 or commentreply/

How can I modify the view function to make the passed parameters unnecessary, like parent id=None

image

finally, add a parameter to the following URL or not

var url = "{{ exercise|url:exercise-commentsreply }}";

{% endblock script %}

mob-sdk commented 4 years ago

In exerciseCommentsReplyView method Add a parameter,and parameter=None, and if parameter exist, then get it value if parameter does not exist, do nothing for this parameter thank you

markkuriekkinen commented 4 years ago

In the URL conf, it is usually best to have multiple routes when you have optional parameters in the URL, such as the reply ID. Multiple routes in the URL conf may refer to the same view class.

https://stackoverflow.com/questions/14351048/django-optional-url-parameters https://stackoverflow.com/questions/14429500/optional-url-parameters-in-class-based-views

In the view class, the get_resource_objects method could check if the ID parameter was supplied in the URL or not.

In Django templates, when you refer to the URL by its name, if you have multiple routes in the URL conf with different names, then those would separate the cases when you have the reply ID and when there is no ID.

markkuriekkinen commented 4 years ago

Closing since this issue has been inactive for many months.