PremierLangage / premierlangage

Server for auto-evaluating exercices
Other
18 stars 9 forks source link

Direct link to Q&A #246

Open nimdanor opened 5 years ago

nimdanor commented 5 years ago

We need to create the ability to create an LTI link directly to Q & A. And a link to a course that will limit questions and answers about the course using a key word equal to the course name.

But if there is the question is general, we should find it anyway.

This must be discussed in the monday breefing.

nimdanor commented 5 years ago

Are there more interfaces in the Q&A, is there a moderator view ?

qcoumes commented 5 years ago

Why do you mean by interfaces ?

Admin have the same view, but should be able to edit/delete any question/answer/comment without the need for reputation.

nimdanor commented 5 years ago

I need a dsicription of the possibilities of the installed software. I don't know the possibilites.

i would like to give administrtive privilege to people on a restricted part of the Q&A, How is tis possible with the software currently installed ?

qcoumes commented 5 years ago

It's simple Q&A where right are tied to a reputation system. Reputation gain for actions and reputation needed to do something are set in config.py, or if absent, use these fault :

# Ask's settings
# Reputation contains the points awarded
# Right contains the points needed for doing action, -1 to disable (do not apply for the owner)
QA_SETTINGS = {
    'qa_messages'            : True,
    'qa_description_optional': False,
    'reputation'             : {
        'CREATE_QUESTION'         : 10,
        'CREATE_ANSWER'           : 20,
        'CREATE_ANSWER_COMMENT'   : 2,
        'CREATE_QUESTION_COMMENT' : 2,
        'RECEIVE_QUESTION_COMMENT': 1,
        'RECEIVE_ANSWER_COMMENT'  : 1,
        'ANSWER_ACCEPTED'         : 20,  # Half for the acceptor
        'UPVOTE_QUESTION'         : 3,
        'UPVOTE_ANSWER'           : 3,
        'DOWNVOTE_QUESTION'       : -3,
        'DOWNVOTE_ANSWER'         : -3,
    },
    'right'                  : {
        'POST_QUESTION'  : 0,
        'POST_ANSWER'    : 0,
        'POST_COMMENT'   : 0,
        'EDIT_QUESTION'  : 500,
        'EDIT_ANSWER'    : 500,
        'EDIT_COMMENT'   : -1,
        'DELETE_QUESTION': 2000,
        'DELETE_ANSWER'  : 2000,
        'DELETE_COMMENT' : 2000,
    },
}

Meaning that, by default, anyone can ask a question, answer and post a comment.

Every questions, answers and comments are visible by everyone.


So it is not possible to have a restricted part on the current Q&A.

nimdanor commented 5 years ago

Are there a systeme of tags ? if there is we could allways associate a tag to question asked in a given course?

nimdanor commented 5 years ago

how can i be an q&a admin on the prod ?

qcoumes commented 5 years ago

Yes, there's a system of tag, here for instance all question related to recusivity on pl-preprod. Currently, every question should have at least one tag.

About the roles on Q&A, they're currently tied to the role of PL. So you need to be admin on PL to be admin on Q&A.

We lack system of group and permissions to allow differents roles on different parts of the website.

nimdanor commented 5 years ago

Let's have groups ;)

nimdanor commented 5 years ago

Depends on #247

nimdanor commented 5 years ago

@nimdanor couxcou